diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-11-17 17:13:46 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-11-17 17:13:46 +0000 |
commit | caf7d0bc3914824210dfa48ecb027b528dcc7436 (patch) | |
tree | 410203725e3b63eb815bf51eacf456e81c9b894b /usr | |
parent | ca96864b4183f6d9f9455c28353f4a66f7400136 (diff) | |
download | pfsense-caf7d0bc3914824210dfa48ecb027b528dcc7436.zip pfsense-caf7d0bc3914824210dfa48ecb027b528dcc7436.tar.gz |
Use pfsense theme for ipod / iphone's
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index a7d5e92..27a2aa4 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -62,6 +62,15 @@ if($config['theme'] <> "") else $g['theme'] = "pfsense"; +/* + * If this device is an apple ipod/iphone + * switch the theme to one that works with it. + */ +$apple_ua = array (“iPhone”,”iPod”); +foreach($apple_ua as $useragent) + if(eregi($useragent,$_SERVER[’HTTP_USER_AGENT’])) + $g['theme'] = "pfsense"; + $d_landirty_path = $g['varrun_path'] . "/lan.conf.dirty"; $d_pppoeuserdirty_path = $g['varrun_path'] . "/vpn-pppoe-users-edit.dirty"; $d_hostsdirty_path = $g['varrun_path'] . "/hosts.dirty"; |