Bravo List
Register
Go Back   > Bravo List > Source Code > Trackers > Torrent Strike
Reply
  #1  
Old 14-09-18, 14:24
modswat's Avatar
modswat modswat is offline
Member
 
Join Date: May 2015
Posts: 4
Default Shoutbox torrent detail
PHP Code:
////////new torrent upload detail sent to shoutbox//////////
$text "New Torrent Uploaded [size=3][color=red]".htmlspecialchars($torrent)."[/color][/size] 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']); 


I copyed this code in takeupload.php
In my shoutboxClick the image to open in full size.

If i upload a torrent the announce works, but the user who is posting after is announcing the torrent.
How to fix this.
Reply With Quote
  #2  
Old 14-09-18, 17:15
Napon's Avatar
Napon Napon is offline
Senior Member
 
Join Date: Feb 2016
P2P
Posts: 313
Default
Did you add user call it shoutBot must be id 2 and set up in php file's id 2
So it looks like this has
userid = "2";


If you do not it will call on the id of you....
so 0 id no good too you
Reply With Quote
  #3  
Old 14-09-18, 20:27
modswat's Avatar
modswat modswat is offline
Member
 
Join Date: May 2015
Posts: 4
Default
Fixed!! Thanks!
Reply With Quote
  #4  
Old 15-09-18, 00:01
Napon's Avatar
Napon Napon is offline
Senior Member
 
Join Date: Feb 2016
P2P
Posts: 313
Default
Happy to help out
Reply With Quote
Reply

Tags
detail , shoutbox , torrent

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 19:20. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2018, vBulletin Solutions Inc.