|
|||
|
Here I'll post some stuff for Gen4 script,it will be small things but usefull for some PTC owners
1. Available Referrals on header stats Go to theme/GeN4/t.php and find: Code:
if($set['showstats']) {
$total = "SELECT COUNT(*) AS users, SUM(totalclicks) AS clicks FROM `users`";
$total = mysql_fetch_array(mysql_query($total));
$totalusers = $total['users'];
$totalclicks = $total['clicks'];
$online = mysql_query("SELECT * FROM users WHERE lastaction >= unix_timestamp() - 60*5");
$online = mysql_num_rows($online);
$total_withdrew = mysql_query("SELECT SUM(withdrew) FROM `users`;");
$total_withdrew = mysql_fetch_array($total_withdrew);
$total_withdrew = $total_withdrew[0];
}
Code:
$tsp = time()-60*60*24*$set['refs_minactdays'];
if(!$set['refs_minactdays']) $tsp = 0;
$user = mysql_query("SELECT * FROM users WHERE `username` != '{$ir['username']}' AND upline='' AND `activeclicks` >= {$set['refs_minclicks']} AND lastaction >= $tsp;");
$users = mysql_num_rows($user);
$avail = $users;
Code:
<div class="infocounter"> Code:
<img src="../themes/GeN4/images/totalusers.png" width="16" height="16" alt="" /> Referrals Available: <?php echo $users; ?><br /> Referrals Available: xxxI'll add more stuff later
|