mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-04 03:44:23 +00:00
@@ -95,8 +95,12 @@ class Profile {
|
||||
global $database,$session,$form;
|
||||
if($post['pw2'] == $post['pw3']) {
|
||||
if($database->login($session->username,$post['pw1'])) {
|
||||
if ($_POST['uid'] != $session->uid){
|
||||
die("Hacking Attempr");
|
||||
} else {
|
||||
$database->updateUserField($post['uid'],"password",md5($post['pw2']),1);
|
||||
}
|
||||
}
|
||||
else {
|
||||
$form->addError("pw",LOGIN_PW_ERROR);
|
||||
}
|
||||
@@ -161,4 +165,4 @@ class Profile {
|
||||
}
|
||||
};
|
||||
$profile = new Profile;
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user