mirror of
https://github.com/jimeh/dlist.git
synced 2026-02-19 07:56:41 +00:00
- added language support (still needs some tweaking, and swedish language file needs correct locale settings)
- removed timer.exc.php and put the needed intializer directly in view.php to get a more accurate reading from $timer->end() - updated .htaccess settings to they for once work 100% as they should, and added httpd_dlist.conf to respository to keep track of any changes/updates needed to the .htaccess file or apache config file (depending how you implement dList) git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@11 a5845835-ea0f-0410-a762-dd0bfe9bfde8
This commit is contained in:
14
view.php
14
view.php
@@ -2,7 +2,7 @@
|
||||
|
||||
/*
|
||||
|
||||
dList v2.0 beta
|
||||
dList v2.1.1 beta
|
||||
|
||||
Copyright © 2006 Jim Myhrberg. All rights reserved.
|
||||
zynode@gmail.com
|
||||
@@ -23,8 +23,12 @@ require_once('libs/dirlist.lib.php');
|
||||
require_once('libs/exechandler.lib.php');
|
||||
|
||||
|
||||
// initialize debug stopwatch
|
||||
if ($config->debug) $debug_timer = new speedometer();
|
||||
// initialize $timer
|
||||
$timer = new speedometer();
|
||||
|
||||
|
||||
// autodetect dList's install URL if not set
|
||||
if ( empty($config->dlist_url) ) $config->dlist_url = preg_replace("/(.*)\/(.*?)$/i", "$1/", $_SERVER['SCRIPT_NAME']);
|
||||
|
||||
|
||||
// initialize execHandler and main scripts
|
||||
@@ -55,10 +59,8 @@ include($exec->include_file);
|
||||
|
||||
|
||||
|
||||
|
||||
if ($config->debug) {
|
||||
$debug_timer->end();
|
||||
echo "<br />\npage generated in ".$debug_timer->time." sec.<br />\n";
|
||||
echo "<br />\npage generated in ".$timer->end(8)." sec.<br />\n";
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user