File size: 543B
<?
require("functionChat.ssp");
$r = GetRandom();
openDB();
$result = checkpass($login,$pass,"*");
$friends = mysql_result($result,0, "friends");
if ($friends != "") $friends = $friends.$dlm.trim($to);
else $friends = trim($to);
if (strlen($friends) > $notelim) LogResult($ErrorMess,$NotesFull,"prev");
$sqlUpd = "update users set friends='$friends' where nick='$login' and pass = '$pass'";
mysql_query($sqlUpd) or die(mysql_error());
mysql_close();
LogResult($OKMess,$menu[56],"prev");
?>