From d0824170ac012bddf75693f9670b0055d2da5ad9 Mon Sep 17 00:00:00 2001 From: Thomas Nilsen Date: Wed, 21 Nov 2018 11:42:04 +0100 Subject: [PATCH] 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 --- classes/user.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/user.php b/classes/user.php index 707ba04..f613373 100644 --- a/classes/user.php +++ b/classes/user.php @@ -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; }