summaryrefslogtreecommitdiffstats
path: root/usr/local/www/head.inc
diff options
context:
space:
mode:
authorErik Kristensen <ekristen@pfsense.org>2005-08-23 01:18:28 +0000
committerErik Kristensen <ekristen@pfsense.org>2005-08-23 01:18:28 +0000
commit8ab3e9ed14dc643d1f0192a67655b0691e083968 (patch)
treeb8f31194997af46f303beaad8892b7173c19178c /usr/local/www/head.inc
parent1e055202d3b8e244e65188eb1d0b261fae0c5749 (diff)
downloadpfsense-8ab3e9ed14dc643d1f0192a67655b0691e083968.zip
pfsense-8ab3e9ed14dc643d1f0192a67655b0691e083968.tar.gz
First Step in Fixing AutoComplete and Cleaning Up Code
Diffstat (limited to 'usr/local/www/head.inc')
-rwxr-xr-xusr/local/www/head.inc18
1 files changed, 18 insertions, 0 deletions
diff --git a/usr/local/www/head.inc b/usr/local/www/head.inc
index febf1c8..3246e48 100755
--- a/usr/local/www/head.inc
+++ b/usr/local/www/head.inc
@@ -18,6 +18,24 @@ else
<link rel="stylesheet" type="text/css" href="/niftycssprintCode.css" media="print">
<script type="text/javascript" src="/themes/<?php echo $g['theme']; ?>/loader.js"></script>
+<?
+ /*
+ * Find all javascript files that need to be included
+ * for this page ... from the arrays ... :)
+ * 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>';
+ }
+ }
+?>
+
<?php if (!isset($closehead)){ ?>
</head>
<?php } ?>
OpenPOWER on IntegriCloud