// The contents of this file is subject to a license. // Read license.txt and readme.txt for more information. function SetLastMsg($path) { global $handler; @count_mysql_query("UPDATE uo_chat_last SET utime='".time()."' WHERE chat='$path'", $handler, "lastmsg.php: SetLastMsg() 1/1"); return (time()); } function GetLastMsg($path) { global $handler; $result = @count_mysql_query("SELECT utime FROM uo_chat_last WHERE chat='$path'", $handler, "lastmsg.php: GetLastMsg() 1/1"); $row = mysql_fetch_row($result); @mysql_free_result($result); return $row[0]; } ?>