1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-09-19 15:11:40 +02:00

Make some adjustments to redirect modification

PHP takes the prize for the weirdest concat symbol
This commit is contained in:
Chaoyi Zha 2015-11-01 15:45:20 -05:00
parent 1b68443628
commit 3a19efda8e
2 changed files with 4 additions and 4 deletions

View File

@ -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 {

View File

@ -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;
. "<option value='true'>Hide public interface (for private shorteners)</option>"
. "</select>";
echo "If public interface is hidden, redirect index page to: <input type=\"text\" class='form-control' style='width:650px' name=\"li_index_redirect\" value=\"\your-main-site.com\">"
. "<small><i>Notice: if this setting is enabled, you will need to go to http://PATHTOPOLR/login.php before you can access the index page.</i></small>"
echo "If public interface is hidden, redirect index page to: <input type=\"text\" class='form-control' style='width:650px' name=\"li_index_redirect\" placeholder=\"http://your-main-site.com\">"
. "<i>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.</i>"
. "<br /><br />";