View Single Post
  #2  
Old 16th September 2008, 15:31
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
in takeupload.php add this shows new torrent uploaded in shoutbox plus gives the uploader 3 gigs every time to their account

////////new torrent upload detail sent to shoutbox//////////
$text = "New Torrent Uploaded ".htmlspecialchars($torrent)." please thank the uploader!!";
$userid = "0";
$username = "shoutbot";
$date=time();
mysql_query("INSERT INTO shoutbox (userid, username, date, text) VALUES (" . sqlesc($userid) . ", " . sqlesc($username) . ", $date, " . sqlesc($text) . ")") or sqlerr(__FILE__, __LINE__);

/////////////////////////////END///////////////////////////////////
mysql_query("UPDATE users SET uploaded = uploaded + 3221225472 WHERE id = ". $CURUSER['id']);
header("Location: $BASEURL/details.php?id=$id&uploaded=1");

add it between this
*******************/
code goes here

header("Location: $BASEURL/details.php?id=$id&uploaded=1");
Reply With Quote
The Following User Says Thank You to wMan For This Useful Post:
kolo (18th December 2009)