mirror of
https://github.com/jimeh/dlist.git
synced 2026-02-19 07:56:41 +00:00
- updated configuration file.
- edited init script so it will only look for specific file names. "index.html", "index.php", so on, instead of running glob() on "index.*". - moved internal timer to seperate exec file. git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@7 a5845835-ea0f-0410-a762-dd0bfe9bfde8
This commit is contained in:
@@ -19,9 +19,6 @@ Author: Jim Myhrberg
|
||||
//>STAGE> init
|
||||
//==========================
|
||||
|
||||
//>Section> start_timer:10
|
||||
$timer = new speedometer();
|
||||
|
||||
|
||||
//>Section> port_correction:20
|
||||
if ( stristr($_SERVER['HTTP_HOST'], ':') !== false ) {
|
||||
@@ -38,7 +35,7 @@ define('DIR_URL', $dir_url);
|
||||
define('DIR_PATH', $dir_path);
|
||||
define('QUERY_STRING', $query_string);
|
||||
|
||||
define('DLIST_URL', $config->url);
|
||||
define('DLIST_URL', $config->dlist_url);
|
||||
define('TEMPLATE', $config->template);
|
||||
define('TPL_PATH', 'templates/'.TEMPLATE.'/');
|
||||
define('TPL_URL', DLIST_URL.TPL_PATH);
|
||||
@@ -59,7 +56,7 @@ $do_sort_reverse = false;
|
||||
//>Section> readdir
|
||||
if ( $do_readdir ) {
|
||||
//>Section> readdir.start
|
||||
$dlist = new dirlist();
|
||||
$dlist = new dirList();
|
||||
//>Section> readdir.options
|
||||
if ( empty($do_sort_items) ) {
|
||||
$dlist->sort_items = false;
|
||||
@@ -75,10 +72,6 @@ if ( $do_readdir ) {
|
||||
//==========================
|
||||
|
||||
|
||||
//>Section> end_timer:10
|
||||
$timer->end();
|
||||
|
||||
|
||||
//>Section> echo
|
||||
print_r($dlist->list);
|
||||
print_r($config);
|
||||
|
||||
36
exec/timer.exc.php
Normal file
36
exec/timer.exc.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php die();
|
||||
|
||||
//
|
||||
// Exec: timer
|
||||
//
|
||||
// Copyright © 2006 Jim Myhrberg. All rights reserved.
|
||||
// zynode@gmail.com
|
||||
//
|
||||
|
||||
//_HEAD;
|
||||
/* --- Configuration ---
|
||||
Name: timer
|
||||
Priority: 10
|
||||
Author: Jim Myhrberg
|
||||
*/
|
||||
//_SCRIPT;
|
||||
|
||||
//==========================
|
||||
//>STAGE> init
|
||||
//==========================
|
||||
|
||||
|
||||
//>Section> start
|
||||
$timer = new speedometer();
|
||||
|
||||
|
||||
//==========================
|
||||
//>STAGE> render
|
||||
//==========================
|
||||
|
||||
|
||||
//>Section> end
|
||||
$timer->end();
|
||||
|
||||
//_END;
|
||||
?>
|
||||
Reference in New Issue
Block a user