just want to share.
if someone use NexusPHP.
you can try this code, with same place paste the coding above.
Code:
$text = "New Torrent Uploaded : CLICK HERE! ".$torrent."";
$userid = "putyoursystemID";
$username = "SYSTEM";
//$date=time();
$date=time()-6;
mysql_query("INSERT INTO shoutbox (id, userid, date, text) VALUES ('id'," . sqlesc($userid) . ", $date, " . sqlesc($text) . ")") or sqlerr(__FILE__, __LINE__);
just remove "username" in the mysql_query line.