diff options
author | plegall <plg@piwigo.org> | 2013-05-31 12:22:28 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2013-05-31 12:22:28 +0000 |
commit | 7f724e789e2bcb0c858ebd0e5f5fc292f8264ae6 (patch) | |
tree | df3926cd2e9162da15a2ccf8eb4b58d420bff267 | |
parent | 0b739e406a4dfb73c86d796703bc258bcb166689 (diff) |
bug 2915 fixed: really disable synchronization on synchronization and site (directories) manager screens.
git-svn-id: http://piwigo.org/svn/branches/2.5@22978 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r-- | admin/site_manager.php | 6 | ||||
-rw-r--r-- | admin/site_update.php | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/admin/site_manager.php b/admin/site_manager.php index 4730b3c77..da75a0e59 100644 --- a/admin/site_manager.php +++ b/admin/site_manager.php @@ -31,6 +31,12 @@ include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); // +-----------------------------------------------------------------------+ // | Check Access and exit when user status is not ok | // +-----------------------------------------------------------------------+ + +if (!$conf['enable_synchronization']) +{ + die('synchronization is disabled'); +} + check_status(ACCESS_ADMINISTRATOR); if (!empty($_POST) or isset($_GET['action'])) diff --git a/admin/site_update.php b/admin/site_update.php index 764aecab9..c705d3690 100644 --- a/admin/site_update.php +++ b/admin/site_update.php @@ -31,6 +31,12 @@ include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); // +-----------------------------------------------------------------------+ // | Check Access and exit when user status is not ok | // +-----------------------------------------------------------------------+ + +if (!$conf['enable_synchronization']) +{ + die('synchronization is disabled'); +} + check_status(ACCESS_ADMINISTRATOR); if (!is_numeric($_GET['site'])) |