|
|
Строка 1: |
Строка 1: |
| <html> | | <html> |
− | <?php | + | <body> |
− | $agent = $_SERVER["HTTP_USER_AGENT"];
| + | <form align=left> |
− | | + | <iframe src="https://quazar.cc/home/ua.php" width="100%" height="35px" frameBorder="0"></iframe> |
− | if( preg_match('/MSIE (\d+\.\d+);/', $agent) ) {
| + | </iframe> |
− | echo "You're using Internet Explorer";
| + | </form> |
− | } else if (preg_match('/Chrome[\/\s](\d+\.\d+)/', $agent) ) {
| + | </body> |
− | echo "You're using Chrome";
| |
− | } else if (preg_match('/Edge\/\d+/', $agent) ) {
| |
− | echo "You're using Edge";
| |
− | } else if ( preg_match('/Firefox[\/\s](\d+\.\d+)/', $agent) ) {
| |
− | echo "You're using Firefox";
| |
− | } else if ( preg_match('/OPR[\/\s](\d+\.\d+)/', $agent) ) {
| |
− | echo "You're using Opera";
| |
− | } else if (preg_match('/Safari[\/\s](\d+\.\d+)/', $agent) ) {
| |
− | echo "You're using Safari";
| |
− | }
| |
− | | |
− | echo $_SERVER['HTTP_USER_AGENT'] . "\n\n";
| |
− | $browser = get_browser(null, true);
| |
− | print_r($browser);
| |
− | ?>
| |
| </html> | | </html> |