CRON scripts

GetRekt

Member
Aug 1, 2014
75
5
Ubercms cron

How do I make this
Code:
<?php

if (!defined('UBER') || !UBER)
{
    exit;
}

dbquery("UPDATE user_stats SET DailyRespectPoints = '5'");

?>
I want to make a credit reset script but for VIP ranks 2-6
 

Data

Posting Freak
May 19, 2013
593
97
Set it up as a cron, best thing to do I guess.
Code:
<?php 
$select = mysql_fetch_assoc(mysql_query("SELECT * FROM users WHERE rank >= 2"));
mysql_query("UPDATE user_stats SET DailyRespectPoints = '5' WHERE id = '{$select['id']}'");
echo 'Done.';
?>
I don't know if this will work, but that is similar how it should be done.
Then setup a cronjob to run every 24 hours.
 

Users who are viewing this thread

Top