mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
14 lines
400 B
Smarty
14 lines
400 B
Smarty
<?php
|
|
////////////// made by alq0rsan /////////////////////////
|
|
if($session->access != BANNED){
|
|
if($session->gold >= 100 && $session->sit == 0 && $session->goldclub == 0) {
|
|
mysqli_query($GLOBALS['link'],"UPDATE ".TB_PREFIX."users set goldclub = 1, gold = gold - 100 where `id`='".$session->uid."'");
|
|
}
|
|
header("Location: plus.php?id=3");
|
|
exit;
|
|
|
|
}else{
|
|
header("Location: banned.php");
|
|
exit;
|
|
}
|
|
?> |