diff options
Diffstat (limited to 'usr/local/www/head.inc')
-rwxr-xr-x | usr/local/www/head.inc | 19 |
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 } ?> |