fix language strings in formfiles, navigation and tablelisting

This commit is contained in:
envoyr
2022-04-28 17:10:20 +02:00
parent da89315a10
commit 3d7d03b1f5
23 changed files with 496 additions and 335 deletions

View File

View File

@@ -4,16 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @author Maurice Preuß <hello@envoyr.com>
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Callbacks\Admin;
@@ -25,7 +32,7 @@ use Froxlor\UI\Listing;
return [
'admin_list' => [
'title' => $lng['admin']['admin'],
'title' => lng('admin.admin'),
'icon' => 'fa-solid fa-user',
'self_overview' => ['section' => 'admins', 'page' => 'admins'],
'columns' => [
@@ -35,32 +42,32 @@ return [
'sortable' => true,
],
'loginname' => [
'label' => $lng['login']['username'],
'label' => lng('login.username'),
'field' => 'loginname',
'callback' => [Impersonate::class, 'admin'],
'sortable' => true,
],
'name' => [
'label' => $lng['customer']['name'],
'label' => lng('customer.name'),
'field' => 'name',
],
'customers_used' => [
'label' => $lng['admin']['customers'],
'label' => lng('admin.customers'),
'field' => 'customers_used',
'class' => 'text-center',
],
'diskspace' => [
'label' => $lng['customer']['diskspace'],
'label' => lng('customer.diskspace'),
'field' => 'diskspace',
'callback' => [ProgressBar::class, 'diskspace'],
],
'traffic' => [
'label' => $lng['customer']['traffic'],
'label' => lng('customer.traffic'),
'field' => 'traffic',
'callback' => [ProgressBar::class, 'traffic'],
],
'deactivated' => [
'label' => $lng['admin']['deactivated'],
'label' => lng('admin.deactivated'),
'field' => 'deactivated',
'class' => 'text-center',
'callback' => [Text::class, 'boolean'],
@@ -77,7 +84,7 @@ return [
'actions' => [
'edit' => [
'icon' => 'fa fa-edit',
'title' => $lng['panel']['edit'],
'title' => lng('panel.edit'),
'href' => [
'section' => 'admins',
'page' => 'admins',
@@ -87,7 +94,7 @@ return [
],
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'btn-danger',
'href' => [
'section' => 'admins',

View File

@@ -4,15 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Callbacks\Text;
@@ -20,25 +28,25 @@ use Froxlor\UI\Listing;
return [
'cron_list' => [
'title' => $lng['admin']['cron']['cronsettings'],
'title' => lng('admin.cron.cronsettings'),
'icon' => 'fa-solid fa-clock-rotate-left',
'columns' => [
'c.description' => [
'label' => $lng['cron']['description'],
'label' => lng('cron.description'),
'field' => 'desc_lng_key',
'callback' => [Text::class, 'crondesc']
],
'c.lastrun' => [
'label' => $lng['cron']['lastrun'],
'label' => lng('cron.lastrun'),
'field' => 'lastrun',
'callback' => [Text::class, 'timestamp']
],
'c.interval' => [
'label' => $lng['cron']['interval'],
'label' => lng('cron.interval'),
'field' => 'interval'
],
'c.isactive' => [
'label' => $lng['cron']['isactive'],
'label' => lng('cron.isactive'),
'field' => 'isactive',
'callback' => [Text::class, 'boolean']
],
@@ -52,7 +60,7 @@ return [
'actions' => [
'edit' => [
'icon' => 'fa fa-edit',
'title' => $lng['panel']['edit'],
'title' => lng('panel.edit'),
'href' => [
'section' => 'cronjobs',
'page' => 'overview',

View File

@@ -4,16 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @author Maurice Preuß <hello@envoyr.com>
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Callbacks\Customer;
@@ -24,7 +31,7 @@ use Froxlor\UI\Listing;
return [
'customer_list' => [
'title' => $lng['admin']['customers'],
'title' => lng('admin.customers'),
'description' => 'Manage your customers',
'icon' => 'fa-solid fa-user',
'self_overview' => ['section' => 'customers', 'page' => 'customers'],
@@ -35,31 +42,31 @@ return [
'sortable' => true,
],
'c.name' => [
'label' => $lng['customer']['name'],
'label' => lng('customer.name'),
'field' => 'name',
'callback' => [Text::class, 'customerfullname'],
],
'c.loginname' => [
'label' => $lng['login']['username'],
'label' => lng('login.username'),
'field' => 'loginname',
'callback' => [Impersonate::class, 'customer'],
],
'a.loginname' => [
'label' => $lng['admin']['admin'],
'label' => lng('admin.admin'),
'field' => 'adminname',
'callback' => [Impersonate::class, 'admin'],
],
'c.email' => [
'label' => $lng['customer']['email'],
'label' => lng('customer.email'),
'field' => 'email',
],
'c.diskspace' => [
'label' => $lng['customer']['diskspace'],
'label' => lng('customer.diskspace'),
'field' => 'diskspace',
'callback' => [ProgressBar::class, 'diskspace'],
],
'c.traffic' => [
'label' => $lng['customer']['traffic'],
'label' => lng('customer.traffic'),
'field' => 'traffic',
'callback' => [ProgressBar::class, 'traffic'],
],
@@ -75,7 +82,7 @@ return [
'actions' => [
'unlock' => [
'icon' => 'fa fa-unlock',
'title' => $lng['panel']['unlock'],
'title' => lng('panel.unlock'),
'class' => 'text-warning',
'href' => [
'section' => 'customers',
@@ -87,7 +94,7 @@ return [
],
'edit' => [
'icon' => 'fa fa-edit',
'title' => $lng['panel']['edit'],
'title' => lng('panel.edit'),
'href' => [
'section' => 'customers',
'page' => 'customers',
@@ -97,7 +104,7 @@ return [
],
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'btn-danger',
'href' => [
'section' => 'customers',

View File

@@ -4,16 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @author Maurice Preuß <hello@envoyr.com>
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Callbacks\Style;
@@ -24,9 +31,9 @@ use Froxlor\UI\Listing;
return [
'domain_list' => [
'title' => $lng['admin']['domains'],
'title' => lng('admin.domains'),
'icon' => 'fa-solid fa-globe',
'empty_msg' => $lng['admin']['domain_nocustomeraddingavailable'],
'empty_msg' => lng('admin.domain_nocustomeraddingavailable'),
'self_overview' => ['section' => 'domains', 'page' => 'domains'],
'columns' => [
'd.id' => [
@@ -35,94 +42,94 @@ return [
'sortable' => true,
],
'd.domain_ace' => [
'label' => $lng['domains']['domainname'],
'label' => lng('domains.domainname'),
'field' => 'domain_ace',
],
'c.name' => [
'label' => $lng['customer']['name'],
'label' => lng('customer.name'),
'field' => 'customer.name',
'callback' => [Text::class, 'customerfullname'],
],
'c.loginname' => [
'label' => $lng['login']['username'],
'label' => lng('login.username'),
'field' => 'customer.loginname',
'callback' => [Impersonate::class, 'customer'],
],
'd.aliasdomain' => [
'label' => $lng['domains']['aliasdomain'],
'label' => lng('domains.aliasdomain'),
'field' => 'aliasdomain',
],
'd.documentroot' => [
'label' => $lng['domains']['documentroot'],
'label' => lng('domains.documentroot'),
'field' => 'documentroot',
],
'd.isbinddomain' => [
'label' => $lng['domains']['isbinddomain'],
'label' => lng('domains.isbinddomain'),
'field' => 'isbinddomain',
'callback' => [Text::class, 'boolean'],
],
'd.isemaildomain' => [
'label' => $lng['domains']['isemaildomain'],
'label' => lng('domains.isemaildomain'),
'field' => 'isemaildomain',
'callback' => [Text::class, 'boolean'],
],
'd.email_only' => [
'label' => $lng['domains']['email_only'],
'label' => lng('domains.email_only'),
'field' => 'email_only',
'callback' => [Text::class, 'boolean'],
],
'd.iswildcarddomain' => [
'label' => $lng['domains']['iswildcarddomain'],
'label' => lng('domains.iswildcarddomain'),
'field' => 'iswildcarddomain',
'callback' => [Text::class, 'boolean'],
],
'd.subcanemaildomain' => [
'label' => $lng['domains']['subcanemaildomain'],
'label' => lng('domains.subcanemaildomain'),
'field' => 'subcanemaildomain',
'callback' => [Text::class, 'boolean'],
],
'd.caneditdomain' => [
'label' => $lng['domains']['caneditdomain'],
'label' => lng('domains.caneditdomain'),
'field' => 'caneditdomain',
'callback' => [Text::class, 'boolean'],
],
'd.dkim' => [
'label' => $lng['domains']['dkim'],
'label' => lng('domains.dkim'),
'field' => 'dkim',
'callback' => [Text::class, 'boolean'],
],
'd.phpenabled' => [
'label' => $lng['admin']['phpenabled'],
'label' => lng('admin.phpenabled'),
'field' => 'phpenabled',
'callback' => [Text::class, 'boolean'],
],
'd.openbasedir' => [
'label' => $lng['domains']['openbasedir'],
'label' => lng('domains.openbasedir'),
'field' => 'openbasedir',
'callback' => [Text::class, 'boolean'],
],
'd.speciallogfile' => [
'label' => $lng['domains']['speciallogfile'],
'label' => lng('domains.speciallogfile'),
'field' => 'speciallogfile',
'callback' => [Text::class, 'boolean'],
],
'd.hsts' => [
'label' => $lng['domains']['hsts'],
'label' => lng('domains.hsts'),
'field' => 'hsts',
'callback' => [Text::class, 'boolean'],
],
'd.http2' => [
'label' => $lng['domains']['http2'],
'label' => lng('domains.http2'),
'field' => 'http2',
'callback' => [Text::class, 'boolean'],
],
'd.letsencrypt' => [
'label' => $lng['domains']['letsencrypt'],
'label' => lng('domains.letsencrypt'),
'field' => 'letsencrypt',
'callback' => [Text::class, 'boolean'],
],
'd.deactivated' => [
'label' => $lng['domains']['deactivated'],
'label' => lng('domains.deactivated'),
'field' => 'deactivated',
'callback' => [Text::class, 'boolean'],
],
@@ -136,7 +143,7 @@ return [
'actions' => [
'edit' => [
'icon' => 'fa fa-edit',
'title' => $lng['panel']['edit'],
'title' => lng('panel.edit'),
'href' => [
'section' => 'domains',
'page' => 'domains',
@@ -146,7 +153,7 @@ return [
],
'logfiles' => [
'icon' => 'fa fa-file',
'title' => $lng['panel']['viewlogs'],
'title' => lng('panel.viewlogs'),
'href' => [
'section' => 'domains',
'page' => 'logfiles',
@@ -156,7 +163,7 @@ return [
],
'domaindnseditor' => [
'icon' => 'fa fa-globe',
'title' => $lng['dnseditor']['edit'],
'title' => lng('dnseditor.edit'),
'href' => [
'section' => 'domains',
'page' => 'domaindnseditor',
@@ -166,7 +173,7 @@ return [
],
'domainssleditor' => [
'icon' => 'fa fa-shield',
'title' => $lng['panel']['ssleditor'], // @todo different certificate types by $row['domain_hascert']
'title' => lng('panel.ssleditor'), // @todo different certificate types by $row['domain_hascert']
'href' => [
'section' => 'domains',
'page' => 'domainssleditor',
@@ -177,12 +184,12 @@ return [
],
'letsencrypt' => [
'icon' => 'fa fa-shield',
'title' => $lng['panel']['letsencrypt'],
'title' => lng('panel.letsencrypt'),
'visible' => [Domain::class, 'hasLetsEncryptActivated']
],
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'btn-danger',
'href' => [
'section' => 'domains',

View File

@@ -4,26 +4,34 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Listing;
return [
'filetpl_list' => [
'title' => $lng['admin']['templates']['filetemplates'],
'title' => lng('admin.templates.filetemplates'),
'icon' => 'fa-solid fa-file-lines',
'columns' => [
'template' => [
'label' => $lng['admin']['templates']['action'],
'label' => lng('admin.templates.action'),
'field' => 'template'
],
],
@@ -33,7 +41,7 @@ return [
'actions' => [
'edit' => [
'icon' => 'fa fa-edit',
'title' => $lng['panel']['edit'],
'title' => lng('panel.edit'),
'href' => [
'section' => 'templates',
'page' => $page,
@@ -43,7 +51,7 @@ return [
],
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'btn-danger',
'href' => [
'section' => 'templates',

View File

@@ -4,16 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @author Maurice Preuß <hello@envoyr.com>
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Callbacks\Admin;
@@ -22,7 +29,7 @@ use Froxlor\UI\Listing;
return [
'fpmconf_list' => [
'title' => $lng['menue']['phpsettings']['fpmdaemons'],
'title' => lng('menue.phpsettings.fpmdaemons'),
'icon' => 'fa-brands fa-php',
'self_overview' => ['section' => 'phpsettings', 'page' => 'fpmdaemons'],
'columns' => [
@@ -30,23 +37,23 @@ return [
'field' => 'id'
],
'description' => [
'label' => $lng['admin']['phpsettings']['description'],
'label' => lng('admin.phpsettings.description'),
'field' => 'description',
],
'configs' => [
'label' => $lng['admin']['phpsettings']['activephpconfigs'],
'label' => lng('admin.phpsettings.activephpconfigs'),
'callback' => [PHPConf::class, 'configsList']
],
'reload_cmd' => [
'label' => $lng['serversettings']['phpfpm_settings']['reload'],
'label' => lng('serversettings.phpfpm_settings.reload'),
'field' => 'reload_cmd'
],
'config_dir' => [
'label' => $lng['serversettings']['phpfpm_settings']['configdir'],
'label' => lng('serversettings.phpfpm_settings.configdir'),
'field' => 'config_dir'
],
'pm' => [
'label' => $lng['serversettings']['phpfpm_settings']['configdir'],
'label' => lng('serversettings.phpfpm_settings.configdir'),
'field' => 'pm',
],
],
@@ -60,7 +67,7 @@ return [
'actions' => [
'edit' => [
'icon' => 'fa fa-edit',
'title' => $lng['panel']['edit'],
'title' => lng('panel.edit'),
'href' => [
'section' => 'phpsettings',
'page' => 'fpmdaemons',
@@ -71,7 +78,7 @@ return [
],
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'btn-danger',
'href' => [
'section' => 'phpsettings',

View File

@@ -4,15 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Callbacks\Text;
@@ -21,19 +29,19 @@ use Froxlor\UI\Listing;
return [
'integrity_list' => [
'title' => $lng['admin']['integritycheck'],
'title' => lng('admin.integritycheck'),
'icon' => 'fa-solid fa-circle-check',
'columns' => [
'displayid' => [
'label' => $lng['admin']['integrityid'],
'label' => lng('admin.integrityid'),
'field' => 'displayid'
],
'checkdesc' => [
'label' => $lng['admin']['integrityname'],
'label' => lng('admin.integrityname'),
'field' => 'checkdesc'
],
'result' => [
'label' => $lng['admin']['integrityresult'],
'label' => lng('admin.integrityresult'),
'field' => 'result',
'callback' => [Text::class, 'boolean']
]

View File

@@ -4,16 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @author Maurice Preuß <hello@envoyr.com>
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\Settings;
@@ -22,16 +29,16 @@ use Froxlor\UI\Listing;
return [
'ipsandports_list' => [
'title' => $lng['admin']['ipsandports']['ipsandports'],
'title' => lng('admin.ipsandports.ipsandports'),
'icon' => 'fa-solid fa-ethernet',
'self_overview' => ['section' => 'ipsandports', 'page' => 'ipsandports'],
'columns' => [
'ip' => [
'label' => $lng['admin']['ipsandports']['ip'],
'label' => lng('admin.ipsandports.ip'),
'field' => 'ip',
],
'port' => [
'label' => $lng['admin']['ipsandports']['port'],
'label' => lng('admin.ipsandports.port'),
'field' => 'port',
'class' => 'text-center',
],
@@ -88,7 +95,7 @@ return [
'actions' => [
'edit' => [
'icon' => 'fa fa-edit',
'title' => $lng['panel']['edit'],
'title' => lng('panel.edit'),
'href' => [
'section' => 'ipsandports',
'page' => 'ipsandports',
@@ -98,7 +105,7 @@ return [
],
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'btn-danger',
'href' => [
'section' => 'ipsandports',

View File

@@ -4,30 +4,38 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Listing;
return [
'mailtpl_list' => [
'title' => $lng['admin']['templates']['templates'],
'title' => lng('admin.templates.templates'),
'icon' => 'fa-solid fa-envelope',
'columns' => [
'language' => [
'label' => $lng['login']['language'],
'label' => lng('login.language'),
'field' => 'language'
],
'template' => [
'label' => $lng['admin']['templates']['action'],
'label' => lng('admin.templates.action'),
'field' => 'template'
],
],
@@ -38,7 +46,7 @@ return [
'actions' => [
'edit' => [
'icon' => 'fa fa-edit',
'title' => $lng['panel']['edit'],
'title' => lng('panel.edit'),
'href' => [
'section' => 'templates',
'page' => $page,
@@ -49,7 +57,7 @@ return [
],
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'btn-danger',
'href' => [
'section' => 'templates',

View File

@@ -4,16 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @author Maurice Preuß <hello@envoyr.com>
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Callbacks\Admin;
@@ -23,32 +30,32 @@ use Froxlor\Settings;
return [
'phpconf_list' => [
'title' => $lng['menue']['phpsettings']['maintitle'],
'title' => lng('menue.phpsettings.maintitle'),
'icon' => 'fa-brands fa-php',
'self_overview' => ['section' => 'phpsettings', 'page' => 'overview'],
'columns' => [
'c.description' => [
'label' => $lng['admin']['phpsettings']['description'],
'label' => lng('admin.phpsettings.description'),
'field' => 'description',
],
'domains' => [
'label' => $lng['admin']['phpsettings']['activedomains'],
'label' => lng('admin.phpsettings.activedomains'),
'field' => 'domains',
'callback' => [PHPConf::class, 'domainList']
],
'fpmdesc' => [
'label' => $lng['admin']['phpsettings']['fpmdesc'],
'label' => lng('admin.phpsettings.fpmdesc'),
'field' => 'fpmdesc',
'visible' => (bool) Settings::Get('phpfpm.enabled'),
'callback' => [PHPConf::class, 'fpmConfLink']
],
'c.binary' => [
'label' => $lng['admin']['phpsettings']['binary'],
'label' => lng('admin.phpsettings.binary'),
'field' => 'binary',
'visible' => !(bool) Settings::Get('phpfpm.enabled')
],
'c.file_extensions' => [
'label' => $lng['admin']['phpsettings']['file_extensions'],
'label' => lng('admin.phpsettings.file_extensions'),
'field' => 'file_extensions',
],
],
@@ -62,7 +69,7 @@ return [
'actions' => [
'edit' => [
'icon' => 'fa fa-edit',
'title' => $lng['panel']['edit'],
'title' => lng('panel.edit'),
'href' => [
'section' => 'phpsettings',
'page' => 'overview',
@@ -73,7 +80,7 @@ return [
],
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'btn-danger',
'href' => [
'section' => 'phpsettings',

View File

@@ -4,16 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @author Maurice Preuß <hello@envoyr.com>
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Callbacks\Text;
@@ -21,23 +28,23 @@ use Froxlor\UI\Listing;
return [
'plan_list' => [
'title' => $lng['admin']['plans']['plans'],
'title' => lng('admin.plans.plans'),
'icon' => 'fa-solid fa-clipboard-list',
'columns' => [
'p.name' => [
'label' => $lng['admin']['plans']['name'],
'label' => lng('admin.plans.name'),
'field' => 'name',
],
'p.description' => [
'label' => $lng['admin']['plans']['description'],
'label' => lng('admin.plans.description'),
'field' => 'description',
],
'p.adminname' => [
'label' => $lng['admin']['admin'],
'label' => lng('admin.admin'),
'field' => 'adminname',
],
'p.ts' => [
'label' => $lng['admin']['plans']['last_update'],
'label' => lng('admin.plans.last_update'),
'field' => 'ts',
'callback' => [Text::class, 'timestamp'],
],
@@ -51,7 +58,7 @@ return [
'actions' => [
'edit' => [
'icon' => 'fa fa-edit',
'title' => $lng['panel']['edit'],
'title' => lng('panel.edit'),
'href' => [
'section' => 'plans',
'page' => 'overview',
@@ -61,7 +68,7 @@ return [
],
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'btn-danger',
'href' => [
'section' => 'plans',

View File

@@ -4,15 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Callbacks\Ftp;
@@ -21,26 +29,26 @@ use Froxlor\UI\Listing;
return [
'backup_list' => [
'title' => $lng['error']['customerhasongoingbackupjob'],
'title' => lng('error.customerhasongoingbackupjob'),
'icon' => 'fa-solid fa-server',
'columns' => [
'destdir' => [
'label' => $lng['panel']['path'],
'label' => lng('panel.path'),
'field' => 'data.destdir',
'callback' => [Ftp::class, 'pathRelative']
],
'backup_web' => [
'label' => $lng['extras']['backup_web'],
'label' => lng('extras.backup_web'),
'field' => 'data.backup_web',
'callback' => [Text::class, 'boolean'],
],
'backup_mail' => [
'label' => $lng['extras']['backup_mail'],
'label' => lng('extras.backup_mail'),
'field' => 'data.backup_mail',
'callback' => [Text::class, 'boolean'],
],
'backup_dbs' => [
'label' => $lng['extras']['backup_dbs'],
'label' => lng('extras.backup_dbs'),
'field' => 'data.backup_dbs',
'callback' => [Text::class, 'boolean'],
]
@@ -54,7 +62,7 @@ return [
'actions' => [
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['abort'],
'title' => lng('panel.abort'),
'class' => 'btn-warning',
'href' => [
'section' => 'extras',

View File

@@ -4,26 +4,32 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @author Maurice Preuß <hello@envoyr.com>
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Callbacks\Style;
use Froxlor\UI\Callbacks\Domain;
use Froxlor\UI\Listing;
return [
'domain_list' => [
'title' => $lng['admin']['domains'],
'title' => lng('admin.domains'),
'icon' => 'fa-solid fa-globe',
'self_overview' => ['section' => 'domains', 'page' => 'domains'],
'columns' => [
@@ -31,12 +37,12 @@ return [
'field' => 'aliasdomainid'
],
'd.domain_ace' => [
'label' => $lng['domains']['domainname'],
'label' => lng('domains.domainname'),
'field' => 'domain_ace',
'callback' => [Domain::class, 'domainExternalLinkInfo'],
],
'd.documentroot' => [
'label' => $lng['panel']['path'],
'label' => lng('panel.path'),
'field' => 'documentroot',
'callback' => [Domain::class, 'domainTarget'],
]
@@ -48,7 +54,7 @@ return [
'actions' => [
'edit' => [
'icon' => 'fa fa-edit',
'title' => $lng['panel']['edit'],
'title' => lng('panel.edit'),
'href' => [
'section' => 'domains',
'page' => 'domains',
@@ -59,7 +65,7 @@ return [
],
'logfiles' => [
'icon' => 'fa fa-file',
'title' => $lng['panel']['viewlogs'],
'title' => lng('panel.viewlogs'),
'href' => [
'section' => 'domains',
'page' => 'logfiles',
@@ -69,7 +75,7 @@ return [
],
'domaindnseditor' => [
'icon' => 'fa fa-globe',
'title' => $lng['dnseditor']['edit'],
'title' => lng('dnseditor.edit'),
'href' => [
'section' => 'domains',
'page' => 'domaindnseditor',
@@ -79,7 +85,7 @@ return [
],
'domainssleditor' => [
'icon' => 'fa fa-shield',
'title' => $lng['panel']['ssleditor'], // @todo different certificate types by $row['domain_hascert']
'title' => lng('panel.ssleditor'), // @todo different certificate types by $row['domain_hascert']
'href' => [
'section' => 'domains',
'page' => 'domainssleditor',
@@ -90,12 +96,12 @@ return [
],
'letsencrypt' => [
'icon' => 'fa fa-shield',
'title' => $lng['panel']['letsencrypt'],
'title' => lng('panel.letsencrypt'),
'visible' => [Domain::class, 'hasLetsEncryptActivated']
],
'haslias' => [
'icon' => 'fa fa-arrow-up-right-from-square',
'title' => $lng['domains']['hasaliasdomains'],
'title' => lng('domains.hasaliasdomains'),
'href' => [
'section' => 'domains',
'page' => 'domains',
@@ -106,12 +112,12 @@ return [
],
'isassigned' => [
'icon' => 'fa-check-to-slot',
'title' => $lng['domains']['isassigneddomain'],
'title' => lng('domains.isassigneddomain'),
'visible' => [Domain::class, 'isAssigned']
],
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'btn-danger',
'href' => [
'section' => 'domains',

View File

@@ -4,16 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @author Maurice Preuß <hello@envoyr.com>
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\Settings;
@@ -23,32 +30,32 @@ use Froxlor\UI\Listing;
return [
'email_list' => [
'title' => $lng['menue']['email']['emails'],
'title' => lng('menue.email.emails'),
'icon' => 'fa-solid fa-envelope',
'self_overview' => ['section' => 'email', 'page' => 'emails'],
'columns' => [
'm.email_full' => [
'label' => $lng['emails']['emailaddress'],
'label' => lng('emails.emailaddress'),
'field' => 'email_full',
],
'm.destination' => [
'label' => $lng['emails']['forwarders'],
'label' => lng('emails.forwarders'),
'field' => 'destination',
// @todo formatting
],
'm.popaccountid' => [
'label' => $lng['emails']['account'],
'label' => lng('emails.account'),
'field' => 'popaccountid',
'callback' => [Email::class, 'account'],
],
'm.iscatchall' => [
'label' => $lng['emails']['catchall'],
'label' => lng('emails.catchall'),
'field' => 'iscatchall',
'callback' => [Text::class, 'boolean'],
'visible' => Settings::Get('catchall.catchall_enabled') == '1'
],
'm.quota' => [
'label' => $lng['emails']['quota'],
'label' => lng('emails.quota'),
'field' => 'quota',
'visible' => Settings::Get('system.mail_quota_enabled') == '1'
]
@@ -63,7 +70,7 @@ return [
'actions' => [
'edit' => [
'icon' => 'fa fa-edit',
'title' => $lng['panel']['edit'],
'title' => lng('panel.edit'),
'href' => [
'section' => 'email',
'page' => 'emails',
@@ -73,7 +80,7 @@ return [
],
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'btn-danger',
'href' => [
'section' => 'email',

View File

@@ -4,16 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @author Maurice Preuß <hello@envoyr.com>
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\Settings;
@@ -22,25 +29,25 @@ use Froxlor\UI\Listing;
return [
'ftp_list' => [
'title' => $lng['menue']['ftp']['accounts'],
'title' => lng('menue.ftp.accounts'),
'icon' => 'fa-solid fa-users',
'self_overview' => ['section' => 'ftp', 'page' => 'accounts'],
'columns' => [
'username' => [
'label' => $lng['login']['username'],
'label' => lng('login.username'),
'field' => 'username',
],
'description' => [
'label' => $lng['panel']['ftpdesc'],
'label' => lng('panel.ftpdesc'),
'field' => 'description'
],
'homedir' => [
'label' => $lng['panel']['path'],
'label' => lng('panel.path'),
'field' => 'homedir',
'callback' => [Ftp::class, 'pathRelative']
],
'shell' => [
'label' => $lng['panel']['shell'],
'label' => lng('panel.shell'),
'field' => 'shell',
'visible' => Settings::Get('system.allow_customer_shell') == '1'
]
@@ -54,7 +61,7 @@ return [
'actions' => [
'edit' => [
'icon' => 'fa fa-edit',
'title' => $lng['panel']['edit'],
'title' => lng('panel.edit'),
'href' => [
'section' => 'ftp',
'page' => 'accounts',
@@ -64,7 +71,7 @@ return [
],
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'btn-danger',
'href' => [
'section' => 'ftp',

View File

@@ -4,16 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @author Maurice Preuß <hello@envoyr.com>
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Callbacks\Ftp;
@@ -22,34 +29,34 @@ use Froxlor\UI\Listing;
return [
'htaccess_list' => [
'title' => $lng['menue']['extras']['pathoptions'],
'title' => lng('menue.extras.pathoptions'),
'icon' => 'fa-solid fa-folder',
'self_overview' => ['section' => 'extras', 'page' => 'htaccess'],
'columns' => [
'path' => [
'label' => $lng['panel']['path'],
'label' => lng('panel.path'),
'field' => 'path',
'callback' => [Ftp::class, 'pathRelative']
],
'options_indexes' => [
'label' => $lng['extras']['view_directory'],
'label' => lng('extras.view_directory'),
'field' => 'options_indexes',
'callback' => [Text::class, 'boolean']
],
'error404path' => [
'label' => $lng['extras']['error404path'],
'label' => lng('extras.error404path'),
'field' => 'error404path'
],
'error403path' => [
'label' => $lng['extras']['error403path'],
'label' => lng('extras.error403path'),
'field' => 'error403path'
],
'error500path' => [
'label' => $lng['extras']['error500path'],
'label' => lng('extras.error500path'),
'field' => 'error500path'
],
'options_cgi' => [
'label' => $lng['extras']['execute_perl'],
'label' => lng('extras.execute_perl'),
'field' => 'options_cgi',
'callback' => [Text::class, 'boolean'],
'visible' => $cperlenabled
@@ -66,7 +73,7 @@ return [
'actions' => [
'edit' => [
'icon' => 'fa fa-edit',
'title' => $lng['panel']['edit'],
'title' => lng('panel.edit'),
'href' => [
'section' => 'extras',
'page' => 'htaccess',
@@ -76,7 +83,7 @@ return [
],
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'btn-danger',
'href' => [
'section' => 'extras',

View File

@@ -4,16 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @author Maurice Preuß <hello@envoyr.com>
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Callbacks\Ftp;
@@ -21,16 +28,16 @@ use Froxlor\UI\Listing;
return [
'htpasswd_list' => [
'title' => $lng['menue']['extras']['directoryprotection'],
'title' => lng('menue.extras.directoryprotection'),
'icon' => 'fa-solid fa-lock',
'self_overview' => ['section' => 'extras', 'page' => 'htpasswds'],
'columns' => [
'username' => [
'label' => $lng['login']['username'],
'label' => lng('login.username'),
'field' => 'username'
],
'path' => [
'label' => $lng['panel']['path'],
'label' => lng('panel.path'),
'field' => 'path',
'callback' => [Ftp::class, 'pathRelative']
]
@@ -42,7 +49,7 @@ return [
'actions' => [
'edit' => [
'icon' => 'fa fa-edit',
'title' => $lng['panel']['edit'],
'title' => lng('panel.edit'),
'href' => [
'section' => 'extras',
'page' => 'htpasswds',
@@ -52,7 +59,7 @@ return [
],
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'btn-danger',
'href' => [
'section' => 'extras',

View File

@@ -4,16 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @author Maurice Preuß <hello@envoyr.com>
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Callbacks\Mysql;
@@ -22,25 +29,25 @@ use Froxlor\UI\Listing;
return [
'mysql_list' => [
'title' => $lng['menue']['mysql']['databases'],
'title' => lng('menue.mysql.databases'),
'icon' => 'fa-solid fa-database',
'self_overview' => ['section' => 'mysql', 'page' => 'mysqls'],
'columns' => [
'databasename' => [
'label' => $lng['mysql']['databasename'],
'label' => lng('mysql.databasename'),
'field' => 'databasename',
],
'description' => [
'label' => $lng['mysql']['databasedescription'],
'label' => lng('mysql.databasedescription'),
'field' => 'description'
],
'size' => [
'label' => $lng['mysql']['size'],
'label' => lng('mysql.size'),
'field' => 'size',
'callback' => [Text::class, 'size']
],
'dbserver' => [
'label' => $lng['mysql']['mysql_server'],
'label' => lng('mysql.mysql_server'),
'field' => 'dbserver',
'callback' => [Mysql::class, 'dbserver'],
'visible' => $count_mysqlservers > 1
@@ -55,7 +62,7 @@ return [
'actions' => [
'edit' => [
'icon' => 'fa fa-edit',
'title' => $lng['panel']['edit'],
'title' => lng('panel.edit'),
'href' => [
'section' => 'mysql',
'page' => 'mysqls',
@@ -65,7 +72,7 @@ return [
],
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'btn-danger',
'href' => [
'section' => 'mysql',

View File

@@ -4,15 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Callbacks\Impersonate;
@@ -22,11 +30,11 @@ use Froxlor\UI\Listing;
return [
'apikeys_list' => [
'title' => $lng['menue']['main']['apikeys'],
'title' => lng('menue.main.apikeys'),
'icon' => 'fa-solid fa-key',
'columns' => [
'a.loginname' => [
'label' => $lng['login']['username'],
'label' => lng('login.username'),
'field' => 'loginname',
'callback' => [Impersonate::class, 'apiAdminCustomerLink']
],
@@ -41,11 +49,11 @@ return [
'callback' => [Text::class, 'shorten'],
],
'ak.allowed_from' => [
'label' => $lng['apikeys']['allowed_from'],
'label' => lng('apikeys.allowed_from'),
'field' => 'allowed_from',
],
'ak.valid_until' => [
'label' => $lng['apikeys']['valid_until'],
'label' => lng('apikeys.valid_until'),
'field' => 'valid_until',
'callback' => [Text::class, 'timestampUntil'],
]
@@ -60,12 +68,12 @@ return [
'actions' => [
'show' => [
'icon' => 'fa fa-eye',
'title' => $lng['apikeys']['clicktoview'],
'title' => lng('apikeys.clicktoview'),
'modal' => [Text::class, 'apikeyDetailModal'],
],
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'btn-danger',
'href' => [
'section' => 'index',

View File

@@ -4,15 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Callbacks\Dns;
@@ -57,7 +65,7 @@ return [
'actions' => [
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'text-danger',
'href' => [
'section' => 'domains',

View File

@@ -4,16 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @author Maurice Preuß <hello@envoyr.com>
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\Settings;
@@ -24,33 +31,33 @@ use Froxlor\UI\Listing;
return [
'sslcertificates_list' => [
'title' => $lng['domains']['ssl_certificates'],
'title' => lng('domains.ssl_certificates'),
'icon' => 'fa-solid fa-shield',
'columns' => [
'd.domain' => [
'label' => $lng['domains']['domainname'],
'label' => lng('domains.domainname'),
'field' => 'domains.domain_ace',
'callback' => [Domain::class, 'domainWithCustomerLink'],
],
'c.domain' => [
'label' => $lng['ssl_certificates']['certificate_for'],
'label' => lng('ssl_certificates.certificate_for'),
'field' => 'domain',
'callback' => [SSLCertificate::class, 'domainWithSan'],
],
'c.issuer' => [
'label' => $lng['ssl_certificates']['issuer'],
'label' => lng('ssl_certificates.issuer'),
'field' => 'issuer',
],
'c.validfromdate' => [
'label' => $lng['ssl_certificates']['valid_from'],
'label' => lng('ssl_certificates.valid_from'),
'field' => 'validfromdate',
],
'c.validtodate' => [
'label' => $lng['ssl_certificates']['valid_until'],
'label' => lng('ssl_certificates.valid_until'),
'field' => 'validtodate',
],
'c.letsencrypt' => [
'label' => $lng['panel']['letsencrypt'],
'label' => lng('panel.letsencrypt'),
'field' => 'letsencrypt',
'class' => 'text-center',
'callback' => [Text::class, 'boolean'],
@@ -68,7 +75,7 @@ return [
'actions' => [
'delete' => [
'icon' => 'fa fa-trash',
'title' => $lng['panel']['delete'],
'title' => lng('panel.delete'),
'class' => 'btn-danger',
'href' => [
'section' => 'domains',

View File

@@ -4,15 +4,23 @@
* This file is part of the Froxlor project.
* Copyright (c) 2010 the Froxlor Team (see authors).
*
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code. You can also view the
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* @copyright (c) the authors
* @author Froxlor team <team@froxlor.org> (2010-)
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
* @package Tabellisting
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you can also view it online at
* http://files.froxlor.org/misc/COPYING.txt
*
* @copyright the authors
* @author Froxlor team <team@froxlor.org>
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\UI\Callbacks\Text;
@@ -21,25 +29,25 @@ use Froxlor\UI\Listing;
return [
'syslog_list' => [
'title' => $lng['menue']['logger']['logger'],
'title' => lng('menue.logger.logger'),
'icon' => 'fa-solid fa-file-lines',
'columns' => [
'date' => [
'label' => $lng['logger']['date'],
'label' => lng('logger.date'),
'field' => 'date',
'callback' => [Text::class, 'timestamp'],
],
'type' => [
'label' => $lng['logger']['type'],
'label' => lng('logger.type'),
'field' => 'type',
'callback' => [SysLog::class, 'typeDescription'],
],
'user' => [
'label' => $lng['logger']['user'],
'label' => lng('logger.user'),
'field' => 'user',
],
'text' => [
'label' => $lng['logger']['action'],
'label' => lng('logger.action'),
'field' => 'text',
]
],