mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Use pfsense theme for ipod / iphone's
This commit is contained in:
parent
ca96864b41
commit
caf7d0bc39
@ -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";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user