mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fix: player deleting & password checks work as intended
This commit is contained in:
@@ -123,8 +123,11 @@ class funct {
|
||||
global $admin,$database;
|
||||
switch($post['action']){
|
||||
case "DelPlayer":
|
||||
$admin->DelPlayer($post['uid'],$post['pass']);
|
||||
header("Location: ?p=search&msg=ursdel");
|
||||
if ($admin->DelPlayer($post['uid'],$post['pass'])) {
|
||||
header("Location: ?p=search&msg=ursdel");
|
||||
} else {
|
||||
die('Invalid Admin password, cannot delete player. Please go back and retry.');
|
||||
}
|
||||
break;
|
||||
case "punish":
|
||||
$admin->Punish($post);
|
||||
|
||||
Reference in New Issue
Block a user