"")
$g['theme'] = $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", "iPad");
foreach($apple_ua as $useragent)
if(strstr($_SERVER['HTTP_USER_AGENT'], $useragent))
$g['theme'] = "pfsense";
$pagetitle = gentitle( $pgtitle );
?>
"; ?>
\n"; ?>
\n";
echo "\t\n";
}
echo "\t\n";
echo "\t\n";
echo "\t\n";
echo "\t\n";
if(file_exists("{$g['www_path']}/javascript/global.js"))
echo "\t\n";
/*
* Find all javascript files that need to be included
* for this page ... from the arrays ... :)
* Coded by: Erik Kristensen
*/
$dir = trim(basename($_SERVER["SCRIPT_FILENAME"]), '.php');
$path = "{$g['www_path']}/javascript/" . $dir . "/";
if (is_dir($path)) {
if ($dh = opendir($path)) {
while (($file = readdir($dh)) !== false) {
if (is_dir($file))
continue;
echo "\t\n";
}
closedir($dh);
}
}
if (!isset($closehead))
echo "";
?>