mirror of
https://github.com/jimeh/dlist.git
synced 2026-02-19 07:56:41 +00:00
- added full icon support (still needs tweaking)
- very simple but powerful template system working (also needs tweaking, a fair amount of it) - other fixes to both dirlist.lib.php, exechandler.lib.php, config.lib.php and more... git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@9 a5845835-ea0f-0410-a762-dd0bfe9bfde8
This commit is contained in:
14
view.php
14
view.php
@@ -9,11 +9,15 @@
|
||||
|
||||
*/
|
||||
|
||||
// initialization script - checks for index files
|
||||
require_once('resources/init.php');
|
||||
|
||||
// initialize config object
|
||||
require_once('libs/config.lib.php');
|
||||
$config = new config($config);
|
||||
$config->parse_php_file('config.php');
|
||||
|
||||
// include required libs
|
||||
require_once('libs/speedometer.lib.php');
|
||||
require_once('libs/dirlist.lib.php');
|
||||
require_once('libs/exechandler.lib.php');
|
||||
@@ -23,11 +27,12 @@ require_once('libs/exechandler.lib.php');
|
||||
if ($config->debug) $debug_timer = new speedometer();
|
||||
|
||||
|
||||
// initialize config object
|
||||
|
||||
|
||||
// initialize execHandler and main scripts
|
||||
$exec = new execHandler();
|
||||
$exec->update_frequency = 0;
|
||||
|
||||
|
||||
// configure cache dir for compiled code
|
||||
$exec->cache_dir = $config->path_cache.'/exec/';
|
||||
|
||||
// debug?
|
||||
@@ -38,7 +43,7 @@ $exec->addPath(
|
||||
array(
|
||||
'exec/core.exc.php',
|
||||
'exec/*',
|
||||
'templates/'.$config->template.'/render.exc.php',
|
||||
'templates/'.$config->template.'/*.exc.php',
|
||||
)
|
||||
);
|
||||
$exec->addPath($config->path_plugins);
|
||||
@@ -47,6 +52,7 @@ include($exec->include_file);
|
||||
|
||||
|
||||
|
||||
|
||||
if ($config->debug) {
|
||||
$debug_timer->end();
|
||||
echo "<br />\npage generated in ".$debug_timer->time." sec.<br />\n";
|
||||
|
||||
Reference in New Issue
Block a user