1<?php 2/** 3 * ZWIdoku Plugin: Submit the article. 4 * 5 * @license LGPL 2 (http://www.gnu.org/licenses/gpl.html) 6 * @author S.Chekanov 7 * @based_on "pageindex" plugin by Kite <Kite@puzzlers.org> 8 * @based_on "externallink" plugin by Otto Vainio <plugins@valjakko.net> 9 * @based_on "pagelist" plugin by Esther Brunner <wikidesign@gmail.com> 10 * 11 */ 12 13 14if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../../').'/'); 15if(!defined('DOKU_LIB')) define('DOKU_LIB',realpath(dirname(__FILE__).'/../../').'/'); 16if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_LIB.'plugins/'); 17//define('DOKU_MAIN',realpath(dirname(__FILE__).'/../../../').'/'); 18 19// must be run within Dokuwiki 20if(!defined('DOKU_INC')) die("Cannot find installed DokuWiki"); 21 22 23 24//require_once(DOKU_INC.'/inc/pageutils.php'); 25require_once(DOKU_INC.'/inc/init.php'); 26require_once(DOKU_INC.'/inc/template.php'); 27 28 29 $ID = cleanID(getID()); 30 $onlyCode = $INPUT->str('onlyCode'); 31 $insideTag = $INPUT->str('insideTag'); 32 33 if (empty($conf['useacl']) || auth_quickaclcheck($ID) >= AUTH_READ) { 34 $file = rawWiki($ID); 35 $fileLastMod = wikiFN($ID); 36 $lastMod = @filemtime($fileLastMod); // from page 37 $NS=getNS($ID); 38 39 $filepath = str_replace(":", "/", $ID); 40 // list all revisions 41 $path="data/attic/". $filepath."*"; 42 $files = glob($path); 43 44 45 $changes="data/meta/".$filepath .".changes"; 46 $indexed="data/meta/".$filepath .".indexed"; 47 $meta="data/meta/".$filepath .".meta"; 48 49 echo "Submit article: " . $ID . " NS:" . $NS ." (not implemented) " . $lastMod; 50 51 52 } 53 54 55 56 57 58 59 60 61 62?> 63