mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-10 06:36:07 +00:00
more fix
This commit is contained in:
@@ -3542,6 +3542,10 @@ $crannyimg = "<img src=\"".GP_LOCATE."img/g/g23.gif\" height=\"20\" width=\"15\"
|
||||
$q = "SELECT * FROM ".TB_PREFIX."users WHERE invited != 0";
|
||||
$array = $database->query_return($q);
|
||||
foreach($array as $user) {
|
||||
$numusers = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id = ".$user['invited']);
|
||||
if(mysql_num_rows($numusers) > 0){
|
||||
$database->updateUserField($user['id'],"invited",0,1);
|
||||
}else{
|
||||
$varray = count($database->getProfileVillages($user['id']));
|
||||
if($varray > 1){
|
||||
$usergold = $database->getUserField($user['invited'],"gold",0);
|
||||
@@ -3550,6 +3554,7 @@ $crannyimg = "<img src=\"".GP_LOCATE."img/g/g23.gif\" height=\"20\" width=\"15\"
|
||||
$database->updateUserField($user['id'],"invited",0,1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function updateGeneralAttack() {
|
||||
|
||||
@@ -46,7 +46,7 @@ Travian adminision";
|
||||
Try the new ".SERVER_NAME."!
|
||||
|
||||
|
||||
Link: <a href=".SERVER."anmelden.php?id=".$uid.">".SERVER_NAME."</a>
|
||||
Link: ".SERVER."anmelden.php?id=ref".$uid."
|
||||
|
||||
".$text."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user