forked from pellcorp/opendb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrowserSupport.php
60 lines (49 loc) · 2 KB
/
browserSupport.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/*
Open Media Collectors Database
Copyright (C) 2001,2006 by Jason Pell
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// This must be first - includes config.php
require_once("./include/begin.inc.php");
if($_OpendbBrowserSniffer->isBrowserSupported())
$pageTitle = get_opendb_lang_var('browser_supported');
else
$pageTitle = get_opendb_lang_var('browser_not_supported');
echo _theme_header($pageTitle, FALSE);
echo("<h1>".$pageTitle."</h1>");
if(!$_OpendbBrowserSniffer->isBrowserSupported())
{
echo("<p class=\"error\">".
get_opendb_lang_var('browser_not_supported_text').
"</p>");
$supportedBrowsers = array(
array('url'=>'http://www.mozilla.com/firefox/', 'icon'=>'firefox.jpg'),
array('url'=>'http://www.microsoft.com/windows/products/winfamily/ie/default.mspx', 'icon'=>'icon_ie7.gif'),
array('url'=>'http://www.apple.com/safari/', 'icon'=>'safari.png'),
);
echo("<ul class=\"browsers\">");
while(list(,$browser_r) = each($supportedBrowsers))
{
if(file_exists('./images/browsers/'.$browser_r['icon']))
$browser_r['icon'] = './images/browsers/'.$browser_r['icon'];
else
$browser_r['icon'] = NULL;
echo("<li><a href=\"".$browser_r['url']."\" title=\"".$browser_r['name']."\"><img src=\"".$browser_r['icon']."\"></a></li>");
}
echo("</ul>");
}
echo _theme_footer();
// Cleanup after begin.inc.php
require_once("./include/end.inc.php");
?>