You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

25 lines
503 B

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