file)) { $file_path = pathinfo($p->file); } else { $file_path = pathinfo($oldfile); } $filename = $file_path['dirname'] . '/' . $file_path['basename']; $desc = get_category_info(null); $content = file_get_contents($filename); $oldtitle = get_content_tag('t', $content, 'Untitled'); $olddescription = get_content_tag('d', $content); $oldtag = get_content_tag('tag', $content); $oldcontent = remove_html_comments($content); $oldimage = get_content_tag('image', $content); $oldaudio = get_content_tag('audio', $content); $oldvideo = get_content_tag('video', $content); $oldlink = get_content_tag('link', $content); $oldquote = get_content_tag('quote', $content); $dir = $file_path['dirname']; $isdraft = explode('/', $dir); $oldurl = explode('_', $file_path['basename']); if (empty($oldtag)) { $oldtag = $oldurl[1]; } $oldmd = str_replace('.md', '', $oldurl[2]); if (isset($_GET['destination'])) { $destination = _h($_GET['destination']); } else { $destination = 'admin'; } $cat = explode('/', $dir); $category = $cat[3]; $dt = $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 if (permalink_type() == 'default') { $delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destination=' . $destination; } else { // The post URL $delete = site_url() . permalink_type() . '/' . $oldmd . '/delete?destination=' . $destination; } $tags = tag_cloud(true); $tagslang = "content/data/tags.lang"; if (file_exists($tagslang)) { $ptags = unserialize(file_get_contents($tagslang)); $tkey = array_keys($tags); if (!empty($ptags)) { $newlang = array_intersect_key($ptags, array_flip($tkey)); } else { $newlang = array_combine($tkey, $tkey); } $tmp = serialize($newlang); file_put_contents($tagslang, print_r($tmp, true), LOCK_EX); } $images = image_gallery(null, 1, 40); ?>


















" style="width:100%;overflow:auto;">