MantisBT - Piwigo
View Issue Details
0002915Piwigosynchronizationpublic2013.05.31 10:362013.06.14 23:33
hoedlmoser 
plg 
normalminoralways
closedfixed 
Linux3.2.41-2+deb7u2
2.5.1 
2.5.22.5.2 
any
MySQL: 5.5.31-0+wheezy1
PHP: 5.4.4-14+deb7u1
Apache/2.2.22 (Debian)
0002915: synchronization not really disabled
as I described in http://piwigo.org/forum/viewtopic.php?id=22178 [^] synchronization is, even disabled with $conf['enable_synchronization'] = false;, still available with a direct link eg http://piwigo.kmplabs.org/admin.php?page=site_update&site=1. [^]

something like the following should do the job:
--- admin/site_update.php 2013-01-01 13:35:02.000000000 +0100
+++ admin/site_update.php 2013-05-31 10:31:47.000000000 +0200
@@ -33,6 +33,11 @@
 // +-----------------------------------------------------------------------+
 check_status(ACCESS_ADMINISTRATOR);
 
+if (!$conf['enable_synchronization'])
+{
+ die ('synchronization is disabled');
+}
+
 if (!is_numeric($_GET['site']))
 {
   die ('site param missing or invalid');
1. set $conf['enable_synchronization'] = false; in local/config/config.inc.php
2. browse to http://<your [^] piwigo site>/admin.php?page=site_update&site=1
synchronization
Issue History
2013.05.31 10:36hoedlmoserNew Issue
2013.05.31 10:36hoedlmoserbrowser => any
2013.05.31 10:36hoedlmoserDatabase engine and version => MySQL: 5.5.31-0+wheezy1
2013.05.31 10:36hoedlmoserPHP version => PHP: 5.4.4-14+deb7u1
2013.05.31 10:36hoedlmoserWeb server => Apache/2.2.22 (Debian)
2013.05.31 10:42hoedlmoserTag Attached: synchronization
2013.05.31 14:22svnCheckin
2013.05.31 14:22svnNote Added: 0007013
2013.05.31 14:23svnCheckin
2013.05.31 14:23svnNote Added: 0007014
2013.06.14 23:33plgAssigned To => plg
2013.06.14 23:33plgStatusnew => closed
2013.06.14 23:33plgResolutionopen => fixed
2013.06.14 23:33plgFixed in Version => 2.5.2
2013.06.14 23:33plgTarget Version => 2.5.2

Notes
(0007013)
svn   
2013.05.31 14:22   
[Subversion] r22978 by plg on branch 2.5

-----[Subversion commit log]----------------------------------------------------
bug 2915 fixed: really disable synchronization on synchronization and site (directories) manager screens.
(0007014)
svn   
2013.05.31 14:23   
[Subversion] r22979 by plg on trunk

-----[Subversion commit log]----------------------------------------------------
merge r22978 from branch 2.5 to trunk

bug 2915 fixed: really disable synchronization on synchronization and site (directories) manager screens.