diff options
Diffstat (limited to 'action.php')
| -rw-r--r-- | action.php | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -8,7 +8,7 @@ if ( ! isset($_GET["page"]) || $_GET["page"] != "action" ){ if ( ! isset($_GET["task"]) || $_GET["task"] == "" ){ header($_SERVER["SERVER_PROTOCOL"] . "400 Wrong Request"); - header("Location: /?page=index"); + header("Location: ".DOMAIN."?page=index"); ob_clean(); exit; } @@ -27,7 +27,7 @@ switch($_GET["task"]){ } else if ( $user->login($_POST["name"], $_POST["password"]) ){ $goto = preg_replace("/;/", "&", $_GET["goto"]); header($_SERVER["SERVER_PROTOCOL"] . " 302 Moved"); - header("Location: /?page=" . $goto); + header("Location: ".DOMAIN."?page=" . $goto); ob_clean(); exit; } else { @@ -68,7 +68,7 @@ switch($_GET["task"]){ print_login("database"); else { header($_SERVER["SERVER_PROTOCOL"] . " 302 Moved"); - header("Location: /?page=" . $_GET["goto"]); + header("Location: ".DOMAIN."?page=" . $_GET["goto"]); ob_clean(); exit; } @@ -97,7 +97,7 @@ switch($_GET["task"]){ } if ( $result = $db->doQuery($sql) ){ header($_SERVER["SERVER_PROTOCOL"] . " 302 Moved"); - header("Location: /?page=" . $_GET["goto"]); + header("Location: ".DOMAIN."?page=" . $_GET["goto"]); $c->flush(); } } @@ -120,7 +120,7 @@ switch($_GET["task"]){ } if ( $result = $db->doQuery($sql) ){ header($_SERVER["SERVER_PROTOCOL"] . " 302 Moved"); - header("Location: /?page=" . $_GET["goto"]); + header("Location: ".DOMAIN."?page=" . $_GET["goto"]); $c->flush(); } break; @@ -143,7 +143,7 @@ switch($_GET["task"]){ } if ( $result = $db->doQuery($sql) ){ header($_SERVER["SERVER_PROTOCOL"] . " 302 Moved"); - header("Location: /?page=liste"); + header("Location: ".DOMAIN."?page=liste"); $c->flush(); exit; } else { @@ -235,7 +235,7 @@ switch($_GET["task"]){ $body = "Hello, someone requested a new password for '".$result_ar[1]."' on https://jungegemeinde.iamfabulous.de. -The new password is '". $password ."'. Remember to change it immediately at https://jungegemeinde.iamfabulous.de/?page=account after successfull login. +The new password is '". $password ."'. Remember to change it immediately at ".DOMAIN."?page=account after successfull login. Kindly regards, JG Adlershof"; |
