register_hook('DOKUWIKI_DONE', 'BEFORE', $this, 'process_feed'); } function action_plugin_news() { global $newsUpdated; $this->helper = $this->loadHelper('news', true); } /** check permissions and send page to be processed */ function process_feed(&$event, $param) { global $ID,$INFO; $perm = $this->helper->has_permission(); if($perm == 2 && $INFO['perm'] != 1) { //INFO['perm'] = 1 when logging out msg($this->getLang('no_permission')); return; } if($this->helper->pageUpdated() ) { $metafile = $this->helper->getMetaFN('wasupdated','.meta') ; io_saveFile($metafile,time() . "\n" . $ID ."\n"); $this->helper->saveFeedData($ID); } } }