mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 11:19:55 +03:00
35 lines
No EOL
1 KiB
PHP
35 lines
No EOL
1 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!");
|
|
}
|
|
|
|
if (!$conf['enable_extensions_install'] and !$conf['enable_core_update'])
|
|
{
|
|
die('update system is disabled');
|
|
}
|
|
|
|
include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
|
|
|
|
$my_base_url = get_root_url().'admin.php?page=updates';
|
|
|
|
if (isset($_GET['tab']))
|
|
$page['tab'] = $_GET['tab'];
|
|
else
|
|
$page['tab'] = 'pwg';
|
|
|
|
$tabsheet = new tabsheet();
|
|
$tabsheet->set_id('updates');
|
|
$tabsheet->select($page['tab']);
|
|
$tabsheet->assign();
|
|
|
|
include(PHPWG_ROOT_PATH.'admin/updates_'.$page['tab'].'.php');
|
|
|
|
?>
|