HordeSync wird nun nicht jedes mal automatisch aufgerufen sondern einmal pro nacht per Cronjob

This commit is contained in:
Andreas Österreicher
2014-11-06 12:56:31 +00:00
parent 0df6ddfe0f
commit 5466f7ce9a
+3 -3
View File
@@ -681,7 +681,7 @@ if(defined('LVPLAN_HORDE_SYNC') && LVPLAN_HORDE_SYNC===true)
$users = array_unique($users);
if(count($users)>0)
{
if($fp = fopen($uidfile, 'w'))
if($fp = fopen($uidfile, 'a'))
{
foreach($users as $uid)
{
@@ -690,8 +690,8 @@ if(defined('LVPLAN_HORDE_SYNC') && LVPLAN_HORDE_SYNC===true)
fclose($fp);
//Horde Syncro starten
chdir(DOC_ROOT.'../system/hordelvplansync/');
exec('php5 synchordelvplan.php lvplanupdate.txt >>/var/log/sync/synchordelvplan.log 2>&1');
//chdir(DOC_ROOT.'../system/hordelvplansync/');
//exec('php5 synchordelvplan.php lvplanupdate.txt >>/var/log/sync/synchordelvplan.log 2>&1');
}
}
}