', $content); if(isset($arr[1])) { $oldtitle = ltrim(rtrim(str_replace('' . "\n\n" . $_POST['content']; } if(!empty($bio_title) && !empty($bio_content)) { if(get_magic_quotes_gpc()) { $bio_content = stripslashes($bio_content); } $dir = '../../content/' . $user. '/'; if(is_dir($dir)) { file_put_contents($dir . $filename, print_r($bio_content, true)); } else { mkdir($dir, 0777, true); file_put_contents($dir . $filename, print_r($bio_content, true)); } header('location: ../index.php'); } if (login()) { ?>