updated portal so that it forwards to the originally requested address, like in the past
parent
9716edf454
commit
ed023c514f
|
@ -256,11 +256,13 @@ function check_portal($db, $settings, $ip)
|
|||
for ($i = 0; $i < 20; $i++) {
|
||||
// token length is set to 20 characters
|
||||
$index = random_int(0, 51);
|
||||
// we have 62 to choose, so 0 to 61
|
||||
// we have 52 to choose, so 0 to 51
|
||||
$random_string .= $characters[$index];
|
||||
}
|
||||
|
||||
$request = '/' . $random_string;
|
||||
// $request = '/' . $random_string;
|
||||
|
||||
$request = $_SERVER['REQUEST_URI'] . $random_string;
|
||||
|
||||
header( 'HTTP/1.1 202 Accepted' );
|
||||
header( 'Cache-Control: no-store', FALSE );
|
||||
|
@ -393,7 +395,6 @@ function post_block_bot($db, $settings, $visitor_ip)
|
|||
// portal took over
|
||||
function redirect_target()
|
||||
{
|
||||
//REWRITE ? Always goes to landing page now.
|
||||
$target = $_POST['portal'];
|
||||
|
||||
header( "refresh:0;url=$target" );
|
||||
|
|
Loading…
Reference in New Issue