* @based_on "externallink" plugin by Otto Vainio * @based_on "pagelist" plugin by Esther Brunner * */ if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../../').'/'); if(!defined('DOKU_LIB')) define('DOKU_LIB',realpath(dirname(__FILE__).'/../../').'/'); if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_LIB.'plugins/'); //define('DOKU_MAIN',realpath(dirname(__FILE__).'/../../../').'/'); // must be run within Dokuwiki if(!defined('DOKU_INC')) die("Cannot find installed DokuWiki"); //require_once(DOKU_INC.'/inc/pageutils.php'); require_once(DOKU_INC.'/inc/init.php'); require_once(DOKU_INC.'/inc/template.php'); ///echo $_GET['p']; //echo DOKU_MAIN; //die(); $CURRENT_URL="https://enhub.org/dokuwiki"; $ID = cleanID(getID()); $onlyCode = $INPUT->str('onlyCode'); $insideTag = $INPUT->str('insideTag'); if (empty($conf['useacl']) || auth_quickaclcheck($ID) >= AUTH_READ) { $file = rawWiki($ID); $fileLastMod = wikiFN($ID); $lastMod = @filemtime($fileLastMod); // from page $NS=getNS($ID); $filepath = str_replace(":", "/", $ID); // list all revisions $path="data/attic/". $filepath."*"; $files = glob($path); $changes="data/meta/".$filepath .".changes"; $indexed="data/meta/".$filepath .".indexed"; $meta="data/meta/".$filepath .".meta"; //$pagemeta=pageinfo(); //print_r($pagemeta); //echo "Open this article to edit: " . $ID . " NS:" . $NS ." (not implemented) " . $lastMod; /* if ($_FILES["file"]["error"] > 0) { echo "Error: " . $_FILES["file"]["error"] . "
"; } else { echo "Upload: " . $_FILES["file"]["name"] . "
"; echo "Type: " . $_FILES["file"]["type"] . "
"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " kB
"; echo "Stored in: " . $_FILES["file"]["tmp_name"]; } */ $OpenS="/dokuwiki/lib/plugins/zwidoku/open_file.php"; $str = <<

Submit ZWI file

EOD; echo file_get_contents(DOKU_INC.'/lib/plugins/zwidoku/html_start'); if (!empty($_SERVER['REMOTE_USER'])) { echo ''; echo $str; } else { echo "
Please login to this editor in order to upload a ZWI file.
"; } echo file_get_contents(DOKU_INC.'/lib/plugins/zwi_doku/html_end'); } // end ?>