From 606fb2346a21906e0e647272e201364a47ed97c1 Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 3 Oct 2008 20:50:38 +0000 Subject: bug 861 completed: $conf['check_upgrade_feed'] is tested to allow this script execution. git-svn-id: http://piwigo.org/svn/trunk@2645 68402e56-0260-453c-a942-63ccdbb3a9ee --- upgrade_feed.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'upgrade_feed.php') diff --git a/upgrade_feed.php b/upgrade_feed.php index ab89a050b..1d04ba650 100644 --- a/upgrade_feed.php +++ b/upgrade_feed.php @@ -27,11 +27,18 @@ include_once(PHPWG_ROOT_PATH.'include/functions.inc.php'); include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); include_once(PHPWG_ROOT_PATH.'admin/include/functions_upgrade.php'); include(PHPWG_ROOT_PATH.'include/mysql.inc.php'); +include(PHPWG_ROOT_PATH . 'include/config_default.inc.php'); +@include(PHPWG_ROOT_PATH. 'include/config_local.inc.php'); // +-----------------------------------------------------------------------+ // | Check Access and exit when it is not ok | // +-----------------------------------------------------------------------+ +if (!$conf['check_upgrade_feed']) +{ + die("upgrade feed is not active"); +} + prepare_conf_upgrade(); define('PREFIX_TABLE', $prefixeTable); -- cgit v1.2.3