Also, one last thing. How would I integrate stripslashes into the POST array?
Edit: Nevermind, I just did
$post = stripslashes($_POST['text']);
if(is_dir("$direct"))
{
if(is_writable("$direct"))
{
if($fh = fopen($direct.'/'.$file, "w"))
{
if(!fwrite ($fh, $post))
{
user_error("fwrite() error", E_USER_WARNING);
}
fclose($fh);
and it works. However, I still need to know about vulnerability.