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