WarezCoders Forum

The Official Forum of The Warez Coders

Skip to content

How can we reset the list every 30 days?

Moderator: WarezCoders Team

How can we reset the list every 30 days?

Postby Amazing on Mon Feb 22, 2010 12:45 pm

Nice & easy one this :D (fingers crossed)

How can we have the list reset every 30 days or so?
making all the in / outs all 0 at the end of the month etc?

Many Thanks
Amazing
 
Posts: 33
Joined: Fri Aug 29, 2008 12:29 am

Re: How can we reset the list every 30 days?

Postby jomasaco on Mon Feb 22, 2010 1:08 pm

see if you can understand

Code: Select all
<br><input type="submit" value="Reset Link Exchange" name="rle"


Code: Select all
        if(isset($_POST['rle']))
            
$rle $_POST['rle']; 

Code: Select all
  if(isset($rle)) {
   
mysql_query("UPDATE wcle_sites SET vin=0, vout=0");
   
mysql_query("TRUNCATE TABLE wcle_log");
   echo 
'<div align="center" style="color:green;">Link Exchange Table Reseted</div>';
   } 
Image
Piratez.bz the Warez Webmasters Forum
jomasaco
 
Posts: 303
Joined: Wed Aug 20, 2008 3:49 am

Re: How can we reset the list every 30 days?

Postby Amazing on Mon Feb 22, 2010 10:09 pm

Nope, don't understand sorry mate lol

I take it I have to add it into the admins index.php somewhere?
Amazing
 
Posts: 33
Joined: Fri Aug 29, 2008 12:29 am


Return to WCLE

Who is online

Users browsing this forum: No registered users and 1 guest

cron