edit and replace similar code in your takeupload.php
PHP Code:
$text = "Torrent: [url=$site_url/details.php?id=$id] ".$torrent."[/url] was just uploaded.";
$date=time();
mysql_query("INSERT INTO shoutbox (id, date, text) VALUES ('id', $date, " . sqlesc($text) . ")") or sqlerr(__FILE__, __LINE__);