file)) { $url = $p->file; } else { $url = $oldfile; } $content = file_get_contents($url); $oldtitle = get_content_tag('t', $content, 'Untitled'); $olddescription = get_content_tag('d', $content); $oldquote = get_content_tag('quote', $content); $oldcontent = remove_html_comments($content); $dir = substr($url, 0, strrpos($url, '/')); $isdraft = explode('/', $dir); $oldurl = explode('_', $url); $oldtag = $oldurl[1]; $oldmd = str_replace('.md', '', $oldurl[2]); if (isset($_GET['destination'])) { $destination = $_GET['destination']; } else { $destination = 'admin'; } $replaced = substr($oldurl[0], 0, strrpos($oldurl[0], '/')) . '/'; $dt = str_replace($replaced, '', $oldurl[0]); $t = str_replace('-', '', $dt); $time = new DateTime($t); $timestamp = $time->format("Y-m-d H:i:s"); // The post date $postdate = strtotime($timestamp); // The post URL $delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destination=' . $destination; ?>
Title *


Tag *


Url (optional)

If the url leave empty we will use the post title.

Year, Month, Day

Hour, Minute, Second


Meta Description (optional)


Featured Quote *



Delete Delete

URL

Upload