mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-14 16:46:08 +00:00
update sitters
This commit is contained in:
-11
@@ -27,15 +27,6 @@ if(isset($_GET['newdid'])) {
|
||||
else {
|
||||
$building->procBuild($_GET);
|
||||
}
|
||||
if (isset($_POST['uid'])){
|
||||
if ($_POST['uid'] != $session->uid){
|
||||
die();
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
}elseif($_POST['uid'] == $session->uid){
|
||||
$database->updateUserField($session->uid,"password",md5($_POST['pw']),1);
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
}
|
||||
}
|
||||
if(isset($_GET['s'])){
|
||||
$automation->isWinner();
|
||||
}
|
||||
@@ -158,8 +149,6 @@ else if (isset($_GET['s'])) {
|
||||
if($_GET['s'] > 4 or $session->sit == 1) {
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?uid=".preg_replace("/[^a-zA-Z0-9_-]/","",$session->uid));
|
||||
}
|
||||
}else{
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?uid=".preg_replace("/[^a-zA-Z0-9_-]/","",$session->uid));
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user