mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-29 09:04:26 +00:00
update
This commit is contained in:
+10
@@ -27,6 +27,16 @@ 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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user