summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-11-17 17:13:46 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-11-17 17:13:46 +0000
commitcaf7d0bc3914824210dfa48ecb027b528dcc7436 (patch)
tree410203725e3b63eb815bf51eacf456e81c9b894b /usr
parentca96864b4183f6d9f9455c28353f4a66f7400136 (diff)
downloadpfsense-caf7d0bc3914824210dfa48ecb027b528dcc7436.zip
pfsense-caf7d0bc3914824210dfa48ecb027b528dcc7436.tar.gz
Use pfsense theme for ipod / iphone's
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/guiconfig.inc9
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";
OpenPOWER on IntegriCloud