mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 02:46:30 +00:00
Empty commit
This commit is contained in:
parent
918a2b9a12
commit
fd62c25012
@ -239,9 +239,9 @@ function next_hour() {
|
||||
$Users = $DB->to_array();
|
||||
foreach ($Users as $UserID) {
|
||||
list($UserID) = $UserID;
|
||||
$DB->query("SELECT Invites FROM users_main WHERE ID=$UserID");
|
||||
list($Invites) = $DB->next_record();
|
||||
if ($Invites < 10) {
|
||||
$DB->query("SELECT Invites, PermissionID FROM users_main WHERE ID=$UserID");
|
||||
list($Invites, $PermID) = $DB->next_record();
|
||||
if (($Invites < 2 && $Classes[$PermID]['Level'] <= $Classes[POWER]['Level']) || ($Invites < 4 && $PermID == ELITE)) {
|
||||
$DB->query("UPDATE users_main SET Invites=Invites+1 WHERE ID=$UserID");
|
||||
$Cache->begin_transaction('user_info_heavy_'.$UserID);
|
||||
$Cache->update_row(false, array('Invites' => '+1'));
|
||||
|
Loading…
Reference in New Issue
Block a user