corrected landing page for mobile
parent
443398c71b
commit
9fd65c1bd6
|
@ -504,16 +504,16 @@ function check_portal($db, $settings, $ip)
|
||||||
$random_string = '';
|
$random_string = '';
|
||||||
|
|
||||||
for ($i = 0; $i < 20; $i++) {
|
for ($i = 0; $i < 20; $i++) {
|
||||||
// token length is set to 250 characters
|
// token length is set to 20 characters
|
||||||
$index = random_int(0, 51);
|
$index = random_int(0, 51);
|
||||||
// we have 62 to choose, so 0 to 61
|
// we have 62 to choose, so 0 to 61
|
||||||
$random_string .= $characters[$index];
|
$random_string .= $characters[$index];
|
||||||
}
|
}
|
||||||
$request = '/' . $random_string;
|
$request = '/mob/' . $random_string;
|
||||||
// $request = $_SERVER['REQUEST_URI'] . '/' . $random_string;
|
// $request = $_SERVER['REQUEST_URI'] . '/' . $random_string;
|
||||||
// $request = $_SERVER['REQUEST_URI'];
|
// $request = $_SERVER['REQUEST_URI'];
|
||||||
// header( 'HTTP/1.1 202 Accepted' );
|
header( 'HTTP/1.1 202 Accepted' );
|
||||||
// header( 'Cache-Control: no-store', FALSE );
|
header( 'Cache-Control: no-store', FALSE );
|
||||||
|
|
||||||
$html_string = "<!DOCTYPE html><html><head><style>"
|
$html_string = "<!DOCTYPE html><html><head><style>"
|
||||||
. "body {font-size:30px;background-color: black;"
|
. "body {font-size:30px;background-color: black;"
|
||||||
|
|
Loading…
Reference in New Issue