add contents

This commit is contained in:
Trevor Batley
2025-10-09 15:04:29 +11:00
parent 170362eec1
commit bce7dd054a
2537 changed files with 301282 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
define('DOKU_INC', realpath(dirname(__FILE__)) . '/../../../../');
require_once(DOKU_INC.'inc/init.php');
require_once(DOKU_INC.'inc/io.php');
global $INPUT;
$cname = $INPUT->str('draft_id');
$cname = urldecode($cname);
if(!preg_match("#/data/cache/\w/[a-f0-9]{32}\.draft$#i", $cname)) return;
$ckgedit_cname = $cname . '.fckl';
if(file_exists($cname)) {
io_lock($cname);
if(file_exists($ckgedit_cname)) {
unlink($ckgedit_cname);
}
unlink($cname);
exit;
}
echo "done";