View Single Post
  #65  
Old 24th May 2009, 13:07
Morbidawn's Avatar
Morbidawn Morbidawn is offline
Senior Member
 
Join Date: Sep 2008
P2P
Posts: 34
Default
I`m having problems with seding the torrents, if I use this code in upload.php

Code:
<p><tr><td class=colhead align=center><? print("" .ANNOUNCE_URL. "")?> <b><?= $announce_urls[0] ?>?passkey=<?= $CURUSER['passkey'] ?></b></td></tr></p>
My passkey at the end of the http://powerstrike2.sytes.net/announce.php is allways changing like this :

After any refresh i get a new passkey :

The tracker's announce url is https://powerstrike2.sytes.net/annou...81a2f5fd82f29f

The tracker's announce url is https://powerstrike2.sytes.net/annou...1663d5b20e553e

The tracker's announce url is https://powerstrike2.sytes.net/annou...d67be7e2a14c6e

So I figured I`ll remove this from upload.php

Code:
<p><tr><td class=colhead align=center><? print("" .ANNOUNCE_URL. "")?> <b><?= $announce_urls[0] ?>?passkey=<?= $CURUSER['passkey'] ?></b></td></tr></p>
For it to remain

Code:
<td class=colhead align=center><? print("" .ANNOUNCE_URL. "")?> <b><?= $announce_urls[0] ?></b>
Then it gives me : "Failure: Invalid passkey (0 -)"

Click the image to open in full size.

If I leave the upload code the way it is, when i`m uploading a torrents, and try to seed it, it gives me the "Tracker sending invalid data: <NULL>."

aldough i`ve removed

Code:
/////////////////////Fix Increase ratio using Firefox //////////////////////
$headers = getallheaders();
if (isset($headers["Cookie"]) || isset($headers["Accept-Language"]) || isset($headers["Accept-Charset"]))
err("Anti-Cheater= You cannot use this agent");
///////////////////end of fix//////////////////////
from the anounce.php file as it was writen in the instal info note.

Click the image to open in full size. Click the image to open in full size.

What should i do ?

Quote:
Originally Posted by RikT View Post
You need to add this sql query into your db this will stop the passkey keep changing

Code:
ALTER TABLE users ADD passkey VARCHAR(32) NOT NULL;
hope this helps you
How do you add that code in the database?
Reply With Quote