diff options
author | Andrew Dolgov <[email protected]> | 2005-12-09 21:34:29 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-12-09 21:34:29 +0100 |
commit | 75836f33860f26ca55ec8e8661cff4b0edc2fe5e (patch) | |
tree | 55856842d3fef1121e4765a78cab7f47f24b56b8 /login.php | |
parent | a24f525cce32a6515532ac9392a5b02838ff82be (diff) |
option to redirect to https url for login, option ENABLE_LOGIN_SSL (fixes some non-absolute redirects)
Diffstat (limited to 'login.php')
-rw-r--r-- | login.php | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -6,8 +6,11 @@ require_once "config.php"; require_once "functions.php"; + $url_path = get_script_urlpath(); + $redirect_base = "http://" . $_SERVER["SERVER_NAME"] . $url_path; + if (SINGLE_USER_MODE) { - header("Location: tt-rss.php"); + header("Location: $redirect_base/tt-rss.php"); exit; } @@ -25,7 +28,7 @@ } else { $redirect_to = "tt-rss.php"; } - header("Location: $redirect_to"); + header("Location: $redirect_base/$redirect_to"); } } |