1<?php 2 3/** 4 * DoukWiki webdavclient PlugIn - CRON service 5 * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html 6 * @author Andreas Böhler <dev@aboehler.at> 7 */ 8 9if(!defined('DOKU_INC')) define('DOKU_INC', dirname(__FILE__).'/../../../'); 10if (!defined('DOKU_DISABLE_GZIP_OUTPUT')) define('DOKU_DISABLE_GZIP_OUTPUT', 1); 11require_once(DOKU_INC.'inc/init.php'); 12session_write_close(); //close session 13 14// Load the helper plugin 15$hlp = null; 16$hlp =& plugin_load('helper', 'webdavclient'); 17 18global $conf; 19 20if(is_null($hlp)) 21{ 22 if($conf['allowdebug']) 23 dbglog('Error loading helper plugin'); 24 die('Error loading helper plugin'); 25} 26 27$cron = $hlp->getConfig('use_cron'); 28if($cron === 0) 29{ 30 if($conf['allowdebug']) 31 dbglog('CRON support is disabled'); 32 die('CRON support is disabled'); 33} 34 35$hlp->syncAllConnections(); 36 37echo 'CRON done.'; 38