I have the following code in my announce:
PHP Code:
if ($upthis > 0 || $downthis > 0)
{
$ressite = mysql_query("SELECT * FROM downup WHERE user=$userid AND torrent=$torrentid") or err("DownUpStats Error");
$rowsite = mysql_fetch_array($ressite);
if (!$rowsite)
mysql_query("INSERT INTO downup (torrent, user, added, uploaded, downloaded) VALUES ($torrentid, $userid, NOW(), $upthis, $downthis)");
else
mysql_query("UPDATE downup SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis, lastseen = NOW() WHERE user=$userid AND torrent=$torrentid") or err("Tracker error 4");
Now i want to give VIP's freeleech. How can i modify this code so VIP's get freeleech.
I think i have to chance someting in this piece of code, but maybe i am wrong.