View Single Post
  #1  
Old 20th July 2009, 23:34
godfather35 godfather35 is offline
Member
 
Join Date: Jul 2008
P2P
Posts: 1
Default How to give VIP freeleech
I have the following code in my announce:


PHP Code:
if ($upthis || $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.
Reply With Quote