' . "\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); } $user = $_SESSION['user']; $filename = $post_date . '_' . $post_tag . '_' . $post_url . '.md'; $dir = '../../content/' . $user. '/blog/'; if(is_dir($dir)) { file_put_contents($dir . $filename, print_r($post_content, true)); } else { mkdir($dir, 0777, true); file_put_contents($dir . $filename, print_r($post_content, true)); } header('location: ../index.php'); } if (login()) { ?> Create post
Title:


Tag:


Url: