From 3a19efda8ea57ac1e949d8ac17f2700f691669c2 Mon Sep 17 00:00:00 2001 From: Chaoyi Zha Date: Sun, 1 Nov 2015 15:45:20 -0500 Subject: [PATCH] Make some adjustments to redirect modification PHP takes the prize for the weirdest concat symbol --- index.php | 2 +- setup.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index 61abc67..2d5a0a3 100644 --- a/index.php +++ b/index.php @@ -5,7 +5,7 @@ if (!@include('config.php')) { @session_start(); if (strlen($_SESSION['username']) < 1 && $li_show_front === true) { if ($li_index_redirect) { - header("Location: " + $redirect_link); + header("Location: " . $li_index_redirect); die(); } else { diff --git a/setup.php b/setup.php index 25495e1..91f6269 100644 --- a/setup.php +++ b/setup.php @@ -101,7 +101,7 @@ \$theme = "{$_POST['t']}"; \$ip = {$_POST['ipfetch']}; \$li_show_front = {$_POST['li_show_front']}; -\$li_index_redirect = {$_POST['li_index_redirect']}; +\$li_index_redirect = '{$_POST['li_index_redirect']}'; \$unstr = "{$rstr}"; PHP; @@ -286,8 +286,8 @@ PHP; . "" . ""; - echo "If public interface is hidden, redirect index page to: " - . "Notice: if this setting is enabled, you will need to go to http://PATHTOPOLR/login.php before you can access the index page." + echo "If public interface is hidden, redirect index page to: " + . "Notice: if this setting is enabled, you will need to go to http://PATHTOPOLR/login.php before you can access the index page. Leave the field blank to show a generic index page." . "

";