referral program disable
This commit is contained in:
parent
ee9631a82d
commit
b01e832617
|
|
@ -748,7 +748,11 @@ function inReferralProgram($user)
|
|||
}
|
||||
return false;
|
||||
*/
|
||||
if ($GLOBALS['user']->isOwner())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function isSignupKeyUserGenerated($signupkey)
|
||||
|
|
@ -757,9 +761,12 @@ function isSignupKeyUserGenerated($signupkey)
|
|||
$key->bindParam(":ke", $signupkey, PDO::PARAM_STR);
|
||||
$key->execute();
|
||||
if ($key->rowCount() > 0)
|
||||
{
|
||||
if (!banned($key->fetch(PDO::FETCH_OBJ)->userGen))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -4996,6 +5003,8 @@ function banUser($uid, $reason, $banexpiration, $bantype)
|
|||
$isstaffcheck->execute();
|
||||
|
||||
if ($isstaffcheck->rowCount() == 0)
|
||||
{
|
||||
if (!banned($uid))
|
||||
{
|
||||
kickUserIfInGame($uid, "You've been banned from Alphaland, '".$reason."'");
|
||||
|
||||
|
|
@ -5012,6 +5021,7 @@ function banUser($uid, $reason, $banexpiration, $bantype)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue