customer-extras overviews
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
return array(
|
||||
'backup' => array(
|
||||
'title' => $lng['extras']['backup'],
|
||||
'image' => 'icons/backup_big.png',
|
||||
'image' => 'fa-solid fa-server',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['extras']['backup'],
|
||||
@@ -33,8 +33,9 @@ return array(
|
||||
),
|
||||
'path_protection_info' => array(
|
||||
'label' => $lng['extras']['path_protection_label'],
|
||||
'type' => 'label',
|
||||
'value' => $lng['extras']['path_protection_info']
|
||||
'type' => 'infotext',
|
||||
'value' => $lng['extras']['path_protection_info'],
|
||||
'classes' => 'fw-bold text-danger'
|
||||
),
|
||||
'backup_web' => array(
|
||||
'label' => $lng['extras']['backup_web'],
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
return array(
|
||||
'htaccess_add' => array(
|
||||
'title' => $lng['extras']['pathoptions_add'],
|
||||
'image' => 'icons/htpasswd_add.png',
|
||||
'image' => 'fa-solid fa-folder',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['extras']['pathoptions_add'],
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
return array(
|
||||
'htaccess_edit' => array(
|
||||
'title' => $lng['extras']['pathoptions_edit'],
|
||||
'image' => 'icons/htpasswd_edit.png',
|
||||
'image' => 'fa-solid fa-folder',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['extras']['pathoptions_edit'],
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
return array(
|
||||
'htpasswd_add' => array(
|
||||
'title' => $lng['extras']['directoryprotection_add'],
|
||||
'image' => 'icons/htpasswd_add.png',
|
||||
'image' => 'fa-solid fa-lock',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['extras']['directoryprotection_add'],
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
return array(
|
||||
'htpasswd_edit' => array(
|
||||
'title' => $lng['extras']['directoryprotection_edit'],
|
||||
'image' => 'icons/htpasswd_edit.png',
|
||||
'image' => 'fa-solid fa-lock',
|
||||
'sections' => array(
|
||||
'section_a' => array(
|
||||
'title' => $lng['extras']['directoryprotection_edit'],
|
||||
|
||||
87
lib/tablelisting/customer/tablelisting.htaccess.php
Normal file
87
lib/tablelisting/customer/tablelisting.htaccess.php
Normal file
@@ -0,0 +1,87 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
* @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
|
||||
*
|
||||
*/
|
||||
|
||||
use Froxlor\UI\Callbacks\Ftp;
|
||||
use Froxlor\UI\Callbacks\Text;
|
||||
use Froxlor\UI\Listing;
|
||||
|
||||
return [
|
||||
'htaccess_list' => [
|
||||
'title' => $lng['menue']['extras']['pathoptions'],
|
||||
'icon' => 'fa-solid fa-folder',
|
||||
'columns' => [
|
||||
'path' => [
|
||||
'label' => $lng['panel']['path'],
|
||||
'column' => 'path',
|
||||
'format_callback' => [Ftp::class, 'pathRelative']
|
||||
],
|
||||
'option_indexes' => [
|
||||
'label' => $lng['extras']['view_directory'],
|
||||
'column' => 'option_indexes',
|
||||
'format_callback' => [Text::class, 'boolean']
|
||||
],
|
||||
'error404path' => [
|
||||
'label' => $lng['extras']['error404path'],
|
||||
'column' => 'error404path'
|
||||
],
|
||||
'error403path' => [
|
||||
'label' => $lng['extras']['error403path'],
|
||||
'column' => 'error403path'
|
||||
],
|
||||
'error500path' => [
|
||||
'label' => $lng['extras']['error500path'],
|
||||
'column' => 'error500path'
|
||||
],
|
||||
'options_cgi' => [
|
||||
'label' => $lng['extras']['execute_perl'],
|
||||
'column' => 'options_cgi',
|
||||
'format_callback' => [Text::class, 'boolean'],
|
||||
'visible' => $cperlenabled
|
||||
]
|
||||
],
|
||||
'visible_columns' => Listing::getVisibleColumnsForListing('htaccess_list', [
|
||||
'path',
|
||||
'option_indexes',
|
||||
'error404path',
|
||||
'error403path',
|
||||
'error500path',
|
||||
'options_cgi'
|
||||
]),
|
||||
'actions' => [
|
||||
'edit' => [
|
||||
'icon' => 'fa fa-edit',
|
||||
'href' => [
|
||||
'section' => 'extras',
|
||||
'page' => 'htaccess',
|
||||
'action' => 'edit',
|
||||
'id' => ':id'
|
||||
],
|
||||
],
|
||||
'delete' => [
|
||||
'icon' => 'fa fa-trash',
|
||||
'class' => 'text-danger',
|
||||
'href' => [
|
||||
'section' => 'extras',
|
||||
'page' => 'htaccess',
|
||||
'action' => 'delete',
|
||||
'id' => ':id'
|
||||
],
|
||||
]
|
||||
]
|
||||
]
|
||||
];
|
||||
63
lib/tablelisting/customer/tablelisting.htpasswd.php
Normal file
63
lib/tablelisting/customer/tablelisting.htpasswd.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
* @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
|
||||
*
|
||||
*/
|
||||
|
||||
use Froxlor\UI\Callbacks\Ftp;
|
||||
use Froxlor\UI\Listing;
|
||||
|
||||
return [
|
||||
'htpasswd_list' => [
|
||||
'title' => $lng['menue']['extras']['directoryprotection'],
|
||||
'icon' => 'fa-solid fa-lock',
|
||||
'columns' => [
|
||||
'username' => [
|
||||
'label' => $lng['login']['username'],
|
||||
'column' => 'username'
|
||||
],
|
||||
'path' => [
|
||||
'label' => $lng['panel']['path'],
|
||||
'column' => 'path',
|
||||
'format_callback' => [Ftp::class, 'pathRelative']
|
||||
]
|
||||
],
|
||||
'visible_columns' => Listing::getVisibleColumnsForListing('htpasswd_list', [
|
||||
'username',
|
||||
'path'
|
||||
]),
|
||||
'actions' => [
|
||||
'edit' => [
|
||||
'icon' => 'fa fa-edit',
|
||||
'href' => [
|
||||
'section' => 'extras',
|
||||
'page' => 'htpasswds',
|
||||
'action' => 'edit',
|
||||
'id' => ':id'
|
||||
],
|
||||
],
|
||||
'delete' => [
|
||||
'icon' => 'fa fa-trash',
|
||||
'class' => 'text-danger',
|
||||
'href' => [
|
||||
'section' => 'extras',
|
||||
'page' => 'htpasswds',
|
||||
'action' => 'delete',
|
||||
'id' => ':id'
|
||||
],
|
||||
]
|
||||
]
|
||||
]
|
||||
];
|
||||
Reference in New Issue
Block a user