summaryrefslogtreecommitdiffstats
path: root/usr/local/www/head.inc
diff options
context:
space:
mode:
authorErik Kristensen <ekristen@pfsense.org>2005-09-11 06:17:32 +0000
committerErik Kristensen <ekristen@pfsense.org>2005-09-11 06:17:32 +0000
commitd772ac32580e088437a9bbedfc2a348d2760a5aa (patch)
tree76e18857992df67b3e5c5582f23603c8f32cd237 /usr/local/www/head.inc
parent8bf392242477d3e3317448d8fd6b64152dc89d33 (diff)
downloadpfsense-d772ac32580e088437a9bbedfc2a348d2760a5aa.zip
pfsense-d772ac32580e088437a9bbedfc2a348d2760a5aa.tar.gz
Added SAJAX support.
System Meters are updated via AJAX now. Started XHTML/CSS cleanup.
Diffstat (limited to 'usr/local/www/head.inc')
-rwxr-xr-xusr/local/www/head.inc19
1 files changed, 5 insertions, 14 deletions
diff --git a/usr/local/www/head.inc b/usr/local/www/head.inc
index 9e71869..04a55b0 100755
--- a/usr/local/www/head.inc
+++ b/usr/local/www/head.inc
@@ -13,9 +13,9 @@ else
<html>
<head>
<title><?=gentitle($pgtitle);?></title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="/themes/<?php echo $g['theme']; ?>/all.css" media="all" />
- <link rel="stylesheet" type="text/css" href="/niftycssprintCode.css" media="print">
+ <link rel="stylesheet" type="text/css" href="/niftycssprintCode.css" media="print" />
<script type="text/javascript" src="/themes/<?php echo $g['theme']; ?>/loader.js"></script>
<script type="text/javascript">var theme = "<?php echo $g['theme']; ?>"</script>
@@ -26,31 +26,22 @@ else
* Coded by: Erik Kristensen
*/
- ## Make Sure $page_filename has been set ##
- ## if it hasn't been don't bother ... :P ##
- /*
- if ($page_filename) {
- include('includes/javascript.inc.php');
-
- foreach ($top_javascript_files["$page_filename"] as $file) {
- echo '<script type="text/javascript" src="/javascript/'.$file.'"></script>';
- }
- }
- */
$dir = trim(basename($_SERVER["PHP_SELF"]), '.php');
$path = "/usr/local/www/javascript/" . $dir . "/";
if (is_dir($path)) {
if ($dh = opendir($path)) {
while (($file = readdir($dh)) !== false) {
- "here<br>";
if (is_dir($file)) continue;
echo "\t".'<script type="text/javascript" src="/javascript/'.$dir.'/'.$file.'"></script>'."\n";
}
closedir($dh);
}
}
+
?>
+
+
<?php if (!isset($closehead)){ ?>
</head>
<?php } ?>
OpenPOWER on IntegriCloud