From 44870defdcddbfceede437950fd9e3342f84ebf0 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Tue, 28 Oct 2014 23:47:28 +0100 Subject: Added experimental CDN support. --- action.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'action.php') diff --git a/action.php b/action.php index a4d47f1..c045deb 100644 --- a/action.php +++ b/action.php @@ -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"; -- cgit v1.2.3