PHP Classes

File: browser_not_ok.php

Recommend this page to a friend!
  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: 16 years ago
Size: 1,342 bytes


Class file image Download
$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=';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=';id=0&amp;t=82'><img
    alt='Get Firefox!'
    title='Get Firefox!'

<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='' title='Happy browsing explained'>browsehappy</a>.</p>

<a href=''
    title='Browse Happy: Switch to a safer browser today' target='_blank'><img
        alt='Browse Happy logo'
        height='15' /></a>

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

For more information send a message to info at phpclasses dot org.