mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 11:49:56 +03:00

also added whitespace no wrap to checkboxs label and set the h1 of the page via maintenance.php
55 lines
1.7 KiB
PHP
55 lines
1.7 KiB
PHP
<?php
|
|
// +-----------------------------------------------------------------------+
|
|
// | This file is part of Piwigo. |
|
|
// | |
|
|
// | For copyright and license information, please view the COPYING.txt |
|
|
// | file that was distributed with this source code. |
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
if (!defined('PHPWG_ROOT_PATH'))
|
|
{
|
|
die ("Hacking attempt!");
|
|
}
|
|
|
|
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
|
|
include_once(PHPWG_ROOT_PATH.'admin/include/image.class.php');
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
// | Check Access and exit when user status is not ok |
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
check_status(ACCESS_ADMINISTRATOR);
|
|
|
|
if (isset($_GET['action']))
|
|
{
|
|
check_pwg_token();
|
|
}
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
// | tabs |
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
|
|
$my_base_url = get_root_url().'admin.php?page=';
|
|
|
|
if (isset($_GET['tab']))
|
|
{
|
|
check_input_parameter('tab', $_GET, false, '/^(actions|env)$/');
|
|
$page['tab'] = $_GET['tab'];
|
|
}
|
|
else
|
|
{
|
|
$page['tab'] = 'actions';
|
|
}
|
|
|
|
|
|
$tabsheet = new tabsheet();
|
|
$tabsheet->set_id('maintenance');
|
|
$tabsheet->select($page['tab']);
|
|
$tabsheet->assign();
|
|
|
|
include(PHPWG_ROOT_PATH.'admin/maintenance_'.$page['tab'].'.php');
|
|
|
|
$template->assign(
|
|
array('ADMIN_PAGE_TITLE' => l10n('Maintenance'))
|
|
);
|