1<?php 2define('DOKU_INC', realpath(dirname(__FILE__)) . '/../../../../'); 3require_once(DOKU_INC.'inc/init.php'); 4require_once(DOKU_INC.'inc/io.php'); 5global $INPUT; 6 7$cname = $INPUT->str('draft_id'); 8$cname = urldecode($cname); 9if(!preg_match("#/data/cache/\w/[a-f0-9]{32}\.draft$#i", $cname)) return; 10$ckgedit_cname = $cname . '.fckl'; 11 12 13if(file_exists($cname)) { 14 io_lock($cname); 15 if(file_exists($ckgedit_cname)) { 16 unlink($ckgedit_cname); 17 } 18 unlink($cname); 19 20 exit; 21} 22 23echo "done"; 24 25