1<?php
2define('DOKU_INC', realpath(dirname(__FILE__)) . '/../../../../');
3require_once(DOKU_INC.'inc/init.php');
4require_once(DOKU_INC.'inc/io.php');
5
6$cname = $_REQUEST['draft_id'];
7$cname = urldecode($cname);
8$fckg_cname = $cname . '.fckl';
9
10
11if(file_exists($cname)) {
12   @io_lock($cname);
13   if(file_exists($fckg_cname)) {
14      unlink($fckg_cname);
15   }
16   unlink($cname);
17
18  exit;
19}
20
21echo "done";
22
23