- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
if(empty($name) or empty($text) or !preg_match("/[a-zа-я]/i",$name) or !preg_match("/[a-zа-я]/i",$text))
{
echo "<font color=\"#f00000\">";
if(empty($name) or !preg_match("/[a-zа-я]/i",$name))
{
if(empty($name)) echo "" . $lang['10'] . "<br />";
else { echo "" . $lang['11'] . "<br />";}
}
if(empty($text) or !preg_match("/[a-zа-я]/i",$text) )
if(empty($text)) echo "" . $lang['12'] . "<br />";
else {
echo "" . $lang['13'] . "<br />";
}
echo "</font><br /><a href='index.php?act=add'>" . $lang['14'] . "</a><br />";
}
else
{
$text=stripslashes(htmlspecialchars($text, ENT_QUOTES));
$new_date=stripslashes(htmlspecialchars($new_date, ENT_QUOTES));
$name=stripslashes(htmlspecialchars($name, ENT_QUOTES));
$sms="$name:|:$new_date:|:$text
";
$sms=antimat($sms);
$fp=@fopen($file,"a+");
@fwrite($fp,$sms);
fclose($fp);
if(@fwrite) echo "" . $lang['15'] . " <a href=\"index.php\">" . $lang['16'] . "</a>.<br />";
else { echo "" . $lang['32'] . ""; }
}