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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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