Login   Register  
PHP Classes
elePHPant
Icontem

File: browser_not_ok.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Grant Rodney Paton-Simpson  >  Sniff Response  >  browser_not_ok.php  >  Download  
File: browser_not_ok.php
Role: Example script
Content type: text/plain
Description: Example response
Class: Sniff Response
Detect the browser type and capabilities category
Author: By
Last change: Replaced faulty object reference ($obj_sniff replaced with $this)
Date: 8 years ago
Size: 1,342 bytes
 

Contents

Class file image Download
<!--require_once('classes/class.SniffResponse4.php');
$obj_sniff = new SniffResponse4();-->

<h1>Simple Upgrade Needed</h1>

<p>Your web browser (
<?php echo $this->getBrowser() . " " $this->getVersion() ?>
) is not suitable for viewing this website.</p>
<p>It may even pose a security risk to your computer.</p>

<p>Please upgrade to a newer browser.</p>

<p>We recommend <a href='http://www.spreadfirefox.com/?q=affiliates&amp;id=0&amp;t=82' title='Upgrade browser'>Firefox</a> - which is free, easy to use, and more secure than your current browser.</p>

<a href='http://www.spreadfirefox.com/?q=affiliates&amp;id=0&amp;t=82'><img
    border='0'
    alt='Get Firefox!'
    title='Get Firefox!'
    src='images/get_firefox.gif'></a>

<p>Opera and Internet Explorer 6+ are options as well, although Internet Explorer has fewer features.</p>

<p>To learn more about what makes a good browser please visit <a href='http://browsehappy.com/' title='Happy browsing explained'>browsehappy</a>.</p>

<a href='http://browsehappy.com/' 
    title='Browse Happy: Switch to a safer browser today' target='_blank'><img
        border='0'
        src='images/bh_80x15.gif' 
        alt='Browse Happy logo' 
        width='80' 
        height='15' /></a>

<?php 
echo "<p>Technical message: HTTP_USER_AGENT is $_SERVER[HTTP_USER_AGENT]</p>";
exit; 
?>