detectportal/public/index.php

19 lines
469 B
PHP
Raw Normal View History

2021-07-19 22:09:55 +02:00
<?php
if ($_SERVER['REDIRECT_URL']=='/ip'){
print($_SERVER['REMOTE_ADDR']);
die("\n");
}
$ua = $_SERVER['HTTP_USER_AGENT'];
if ($_SERVER['REDIRECT_URL']=='/ua'){
print($ua);
die("\n");
}
2024-12-07 16:14:26 +01:00
// $slash = strrchr($ua,'/');
// $ffversion = intval(substr($slash,1));
// if ($ffversion >= 89){
// die('<meta http-equiv="refresh" content="0;url=https://support.mozilla.org/kb/captive-portal"/>');
// } else {
2021-07-19 22:09:55 +02:00
die('success');
2024-12-07 16:14:26 +01:00
// }
2021-08-01 18:53:19 +02:00