(cp f4de473) issue #1852 ability to disable core/extensions updates

This commit is contained in:
plegall
2023-01-21 12:02:27 +01:00
parent a58005dc79
commit 1ef00ca7bb
11 changed files with 86 additions and 19 deletions
+12 -7
View File
@@ -1,16 +1,21 @@
<?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. |
// +-----------------------------------------------------------------------+
<?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';