', $content); if(isset($arr[1])) { $oldtitle = ltrim(rtrim(str_replace('' . "\n\n" . $_POST['content']; } if(!empty($post_title) && !empty($post_tag) && !empty($post_url) && !empty($post_content)) { if(get_magic_quotes_gpc()) { $post_content = stripslashes($post_content); } $newurl = $oldurl[0] . '_' . $post_tag . '_' . $post_url . '.md'; if($url === $newurl) { file_put_contents($url, print_r($post_content, true)); } else { rename($url, $newurl); file_put_contents($newurl, print_r($post_content, true)); } header('location: ../index.php'); } if (login()) { ?> Edit post
Title:


Tag:


Url: