free silver and 2xup
hey can someone check if I have correct in announce.php
PHP Code:
and this one use for userfree PHP Code:
and this Quote:
thanks for help |
And what about the free cell, what are the values there?
I already have three samples there - bril, yes, silver, no. Here is the code from my announce.php, remake it for yourself, the principle should be the same. Code:
dbconn(); |
I think we dont use same source, I use TBDev08 I just need an answer if is correct my code.
Thanks |
Quote:
|
nice
|
I propose this option with a minimum of edits and a minimum of queries in the announcer (will not hammer the database constantly).
Database query: Code:
ALTER TABLE `torrents` ADD `free` enum('bril','yes','silver','no') DEFAULT 'no'; to stay like this: Code:
$res = mysql_query("SELECT id, banned, free, seeders + leechers AS numpeers, UNIX_TIMESTAMP(added) AS ts FROM torrents WHERE " . hash_where("info_hash", $info_hash)); Code:
switch($torrent['free']){ Code:
$rz = mysql_query("SELECT id, uploaded, downloaded, class, userfree, parked FROM users WHERE passkey=".sqlesc($passkey)." AND enabled = 'yes' ORDER BY last_access DESC LIMIT 1") or err("Tracker error 2"); |
Quote:
think this must work |
Quote:
Code:
if ($torrent['free'] == 'yes'){$downthis = 0;} |
so must tested if is work or no
|
All times are GMT +2. The time now is 17:55. |
Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.