From eb002c40a430e4fba2da85077dfd19ae6b422b01 Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 31 May 2013 12:23:45 +0000 Subject: merge r22978 from branch 2.5 to trunk bug 2915 fixed: really disable synchronization on synchronization and site (directories) manager screens. git-svn-id: http://piwigo.org/svn/trunk@22979 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/site_update.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'admin/site_update.php') 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'])) -- cgit v1.2.3