aboutsummaryrefslogtreecommitdiffstats
path: root/upgrade_feed.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2008-10-03 20:50:38 +0000
committerplegall <plg@piwigo.org>2008-10-03 20:50:38 +0000
commit606fb2346a21906e0e647272e201364a47ed97c1 (patch)
tree09987ba7c5106836fec3b2b38041242c050393f0 /upgrade_feed.php
parent54cf9362f50b03ed00125f8a220e15a85ceaa106 (diff)
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
Diffstat (limited to '')
-rw-r--r--upgrade_feed.php7
1 files changed, 7 insertions, 0 deletions
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);