mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2024-11-23 12:48:39 -05:00
Fix admin url (#68)
* Add prerequisite checks to install script. - Pryx/server-status#31 * Add option to use existing URL for privacy policy. Pryx/server-status#41 - Also moved the gitbug icon to the left of the footer as it looked like it was part of the imprint/policy link. - Fixed Imprint & Privacy policy text so that it will be translated. * Admin page is redirected to wrong URL on save. Fix Pryx/server-status#67
This commit is contained in:
parent
e36f37f350
commit
d0824170ac
@ -473,7 +473,7 @@ class User
|
||||
$stmt->bind_param("si",$_POST["username"],$id);
|
||||
$stmt->execute();
|
||||
$stmt->close();
|
||||
header("Location: /admin/?do=user&id=".$id);
|
||||
header("Location: ".WEB_URL."/admin/?do=user&id=".$id);
|
||||
}
|
||||
}
|
||||
|
||||
@ -507,7 +507,7 @@ class User
|
||||
$stmt->bind_param("ssi",$_POST["name"],$_POST["surname"],$id);
|
||||
$stmt->execute();
|
||||
$stmt->close();
|
||||
header("Location: /admin/?do=user&id=".$id);
|
||||
header("Location: ".WEB_URL."/admin/?do=user&id=".$id);
|
||||
}
|
||||
}
|
||||
|
||||
@ -646,7 +646,7 @@ class User
|
||||
$stmt->bind_param("sd", $email, $id);
|
||||
$stmt->execute();
|
||||
$stmt->get_result();
|
||||
header("Location: /admin/?do=user&id=".$id);
|
||||
header("Location: ".WEB_URL."/admin/?do=user&id=".$id);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user