diff options
author | deva <deva> | 2010-03-01 08:27:57 +0000 |
---|---|---|
committer | deva <deva> | 2010-03-01 08:27:57 +0000 |
commit | 9e701aea428bb62f892ad9fa2fdafb93b5465d3a (patch) | |
tree | c722efe871a8e61b7d98cc1805f794936bc1e96a /htdocs | |
parent | 9d6e3ab0be248bde75ed5b70dbab5f24d2bfeac5 (diff) |
Moved vars out from config.php and into the config module.
Diffstat (limited to 'htdocs')
-rw-r--r-- | htdocs/index.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/htdocs/index.php b/htdocs/index.php index 25f5ad1..37aebc3 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -39,7 +39,7 @@ if($config->value('splash') == "true") { <link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml" /> <link rel="author" title="Bent Bisballe Nyeng" href="http://www.aasimon.org"/> <link href="/favicon.ico" rel="shortcut icon"/> - <link rel="stylesheet" type="text/css" href="<?php echo $CSS; ?>" media="screen"/> + <link rel="stylesheet" type="text/css" href="<?php echo $config->value('css'); ?>" media="screen"/> </head> <body> <div class="splash"> @@ -69,8 +69,8 @@ if($config->value('splash') == "true") { <link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml" /> <link rel="author" title="Bent Bisballe Nyeng" href="http://www.aasimon.org"/> <link href="/favicon.ico" rel="shortcut icon"/> - <link rel="stylesheet" type="text/css" href="<?php echo $CSS; ?>" media="screen"/> - <link rel="stylesheet" type="text/css" href="handheld.css" media="handheld"/> + <link rel="stylesheet" type="text/css" href="<?php echo $config->value('css'); ?>" media="screen"/> +<!-- <link rel="stylesheet" type="text/css" href="handheld.css" media="handheld"/> --> <link rel="stylesheet" type="text/css" href="admin.css" media="screen"/> <script type="text/javascript"> // <!-- @@ -90,8 +90,8 @@ if($config->value('splash') == "true") { </head> <body><?php - include_once($UTIL_DIR."/preload.php"); -preload("design/mors/style.css"); +include_once($UTIL_DIR."/preload.php"); +preload($config->value('css')); if($page == "admin") { include($UTIL_DIR."/admin.php"); @@ -118,7 +118,7 @@ if(sizeof($menu)) { <div class="content"> <?php if($page && $page != "admin") $_p = $pages->getPage($page); -else $_p = $pages->getPage($config->value('default')); +else $_p = $pages->getPage($config->value('defaultpage')); if($_p) $_p->show(); ?> </div> |