updates, edits and shit...

- changed configuration system, so at the point init.php runs only settings needed by init.php are set, the rest are loaded later if init.php doesn't redirect to an index file...

git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@8 a5845835-ea0f-0410-a762-dd0bfe9bfde8
This commit is contained in:
jim
2006-03-31 11:15:36 +00:00
parent 49ccc270a1
commit 4f57bf92ce
9 changed files with 85 additions and 31 deletions

View File

@@ -2,32 +2,33 @@
/*
dList v0.7 beta
dList v2.0 beta
Copyright © 2006 Jim Myhrberg. All rights reserved.
zynode@gmail.com
*/
require_once('config.php');
require_once('resources/init.php');
require_once('libs/speedometer.lib.php');
require_once('libs/config.lib.php');
$config = new config($config);
$config->parse_php_file('config.php');
require_once('libs/speedometer.lib.php');
require_once('libs/dirlist.lib.php');
require_once('libs/exechandler.lib.php');
// initialize config object
$config = new config($config);
// initialize debug stopwatch
if ($config->debug) $debug_time = new speedometer();
if ($config->debug) $debug_timer = new speedometer();
// initialize config object
// initialize execHandler and main scripts
$exec = new execHandler();
$exec->cache_dir = 'cache/exec/';
$exec->cache_dir = $config->path_cache.'/exec/';
// debug?
if ( $config->debug ) $exec->debug = true;
@@ -38,17 +39,17 @@ $exec->addPath(
'exec/core.exc.php',
'exec/*',
'templates/'.$config->template.'/render.exc.php',
'plugins/*.exc.php',
)
);
$exec->addPath($config->path_plugins);
$exec->cache();
include($exec->include_file);
if ($config->debug) {
$debug_time->end();
echo "<br />\npage generated in ".$debug_time->time." sec.<br />\n";
$debug_timer->end();
echo "<br />\npage generated in ".$debug_timer->time." sec.<br />\n";
}