1<?php 2/** 3 * @license http://www.cecill.info/licences/Licence_CeCILL-B_V1-fr.html 4 * @author Francois Merciol <dokuplugin@merciol.fr> 5 * 6 * Plugin Schedule: manage events per wiki @groups 7 8 */ 9 10if (!defined ('DOKU_INC')) 11 define ('DOKU_INC', realpath (dirname (__FILE__).'/../../../').'/'); 12require_once (DOKU_INC.'inc/init.php'); 13require_once (DOKU_INC.'inc/common.php'); 14require_once (DOKU_INC.'inc/auth.php'); 15 16// ============================================================ 17if (isset ($_SERVER['REMOTE_USER'])) 18 $INFO['userinfo'] = $auth->getUserData ($auth->cleanUser ($_SERVER['REMOTE_USER'])); 19$schdplug =& plugin_load ('syntax', 'schedule_block'); 20$scheduleRoot = new scheduleRoot ($schdplug); 21 22switch ($_REQUEST ['schedule']['action']) { 23case 'clear': 24 $schedules = new schedules ($scheduleRoot, $_REQUEST ['schedule']['ns']); 25 $schedules->clearCache (); 26 break; 27case 'clearAll': 28 $scheduleRoot->clearCache (); 29 break; 30} 31 32// ============================================================ 33