1<? 2/** 3 * DokuWiki Plugin DokuSmartcache 4 * 5 * @license GPL 3 http://www.gnu.org/licenses/gpl.html 6 * @author Simon-Shlomo Poil <simon.shlomo@poil.dk> 7 */ 8 9$_POST['call'](); 10 11function smartcheck() { 12print date ("m/d/Y H:i:s",filemtime(('/var/www/data/pages/'.(str_replace(':','/',$_POST['id'])).'.txt'))); 13} 14 15function smartcheck2(){ 16if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../../').'/'); 17require_once(DOKU_INC.'inc/init.php'); 18if(isset($_SERVER['REMOTE_USER'])){ 19print 'X'; 20}else{ 21print $_POST['re']; 22} 23 24 25} 26?> 27