New torrent showing in shoutbox:
In
takeupload.php
Above this :
PHP Code:
header("Location: $BASEURL/details.php?id=$id&uploaded=1");
Add:
PHP Code:
////////new torrent upload detail sent to shoutbox//////////
$text = "[color=red][b][i]New Torrent: [url=http://lastfile.1x.biz/details.php?id=$id] ".$torrent."[/url][/i][/b][/color][b][i][/i][/b][i][/i]";
$userid = "105";
$username = "uploader";
$date=time();
mysql_query("INSERT INTO shoutbox (id, userid, username, date, text) VALUES ('id'," . sqlesc($userid) . ", " . sqlesc($username) . ", $date, " . sqlesc($text) . ")") or sqlerr(__FILE__, __LINE__);
/////////////////////////////END///////////////////////////////////
Create a
System user and fill this lines with your data:
$text = "
New Torrent: http://yourdomain.com/details.php?id=$id] ".$torrent."[/b]";
$userid = "
System user ID";
$username = "
Here goes SYSTEM username";