Размер файла: 838B
<?php
include 'include/head.php';
require_once("noauth.php");
if(file_exists("users/$address.class"))
{
$letter=trim($letter);
$name=trim($name);
$letter=htmlspecialchars($letter);
$name=htmlspecialchars($name);
$letter = str_replace("messcode","(...)",$letter);
$name = str_replace("messcode(...)","",$name);
$write = fopen("letters/$address.class", "a");
fputs ($write,"<br><u><a href=\"sendmess.php?value_user=$name&pass=$pass&name=$name\">$name</a></u>($time1|$IP)<br/>- $letter\r\n");
fclose ($write);
echo "Letter sent!";
echo '<meta http-equiv="refresh" content="2; url=letters.php?name='.$name.'&pass='.$pass.'">';
}
else
{
echo "User <u>$address</u> is not exist!";
echo '<meta http-equiv="refresh" content="2; url=sendmess.php?name='.$name.'&pass='.$pass.'">';
}
include 'include/foot.php';
?>