new browser B- Name intval B- Version true allowed array MSIE Firefox

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
$B = new browser();
$N = $B->Name;
$V = intval($B->Version);
$E = true;
$allowed = array(
'MSIE' => 7,
'Firefox' => 3
);
foreach($allowed as $k => $v){
if($k == $N && $V >= $v)
$E = false;
}
if( $E )
die('УБЕЙ СЕБЯ И СВОЙ БРАУЗЕР');