mirror of
https://github.com/cydrobolt/polr.git
synced 2024-11-09 19:52:28 +01:00
Make some adjustments to redirect modification
PHP takes the prize for the weirdest concat symbol
This commit is contained in:
parent
1b68443628
commit
3a19efda8e
@ -5,7 +5,7 @@ if (!@include('config.php')) {
|
|||||||
@session_start();
|
@session_start();
|
||||||
if (strlen($_SESSION['username']) < 1 && $li_show_front === true) {
|
if (strlen($_SESSION['username']) < 1 && $li_show_front === true) {
|
||||||
if ($li_index_redirect) {
|
if ($li_index_redirect) {
|
||||||
header("Location: " + $redirect_link);
|
header("Location: " . $li_index_redirect);
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -101,7 +101,7 @@
|
|||||||
\$theme = "{$_POST['t']}";
|
\$theme = "{$_POST['t']}";
|
||||||
\$ip = {$_POST['ipfetch']};
|
\$ip = {$_POST['ipfetch']};
|
||||||
\$li_show_front = {$_POST['li_show_front']};
|
\$li_show_front = {$_POST['li_show_front']};
|
||||||
\$li_index_redirect = {$_POST['li_index_redirect']};
|
\$li_index_redirect = '{$_POST['li_index_redirect']}';
|
||||||
\$unstr = "{$rstr}";
|
\$unstr = "{$rstr}";
|
||||||
PHP;
|
PHP;
|
||||||
|
|
||||||
@ -286,8 +286,8 @@ PHP;
|
|||||||
. "<option value='true'>Hide public interface (for private shorteners)</option>"
|
. "<option value='true'>Hide public interface (for private shorteners)</option>"
|
||||||
. "</select>";
|
. "</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\">"
|
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\">"
|
||||||
. "<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>"
|
. "<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 />";
|
. "<br /><br />";
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user