mirror of
https://github.com/jimeh/dlist.git
synced 2026-02-18 23:46:39 +00:00
dList v2.2.5 beta
- Tested and fixed bugs on PHP 5.x. Only remaining problem is that short tags is disabled by default in PHP 5.x. As of this moment dList templates use <? ?> style tags for simplicity. - Other minor changes which i don't remember. git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@23 a5845835-ea0f-0410-a762-dd0bfe9bfde8
This commit is contained in:
@@ -4,7 +4,7 @@ class dirList {
|
||||
|
||||
/*
|
||||
|
||||
Class: dirList v2.1.1 beta
|
||||
Class: dirList v2.1.2 beta
|
||||
|
||||
Copyright © 2006 Jim Myhrberg. All rights reserved.
|
||||
zynode@gmail.com
|
||||
@@ -172,6 +172,7 @@ class dirList {
|
||||
function getDetails ($item) {
|
||||
$item = str_replace("\\", '/', $item);
|
||||
$return['name'] = basename($item);
|
||||
$return['name'] = preg_replace('/.*(?:\/|\\\\)(.*?)$/i', "$1", $item);
|
||||
|
||||
// Owner and Group
|
||||
if ( ($group = $this->getGroup($item)) != false ) $return = array_merge($return, $group);
|
||||
|
||||
@@ -4,7 +4,7 @@ class execHandler {
|
||||
|
||||
/*
|
||||
|
||||
Class: execHandler v0.7.5 beta
|
||||
Class: execHandler v0.7.6 beta
|
||||
|
||||
Copyright © 2006 Jim Myhrberg. All rights reserved.
|
||||
zynode@gmail.com
|
||||
@@ -155,16 +155,18 @@ class execHandler {
|
||||
.= "\n\n//==========================\n// Stage: ".$stage.":".$stage_priority."\n//==========================\n";
|
||||
$new_stage = true;
|
||||
}
|
||||
foreach( $this->execution_order[$stage] as $key => $code ) {
|
||||
if( $this->debug ) {
|
||||
$pr = explode('|', $key, 2);
|
||||
$pr = $pr[0];
|
||||
$this->compiled_code
|
||||
.= ( $new_stage ) ? "\n// Section: ".$code.":".$pr."\n" : "\n\n// Section: ".$code.":".$pr."\n" ;
|
||||
$this->compiled_code .= $this->clean_up_code($this->code[$stage][$code]);
|
||||
$new_stage = false;
|
||||
} else {
|
||||
$this->compiled_code .= $this->code[$stage][$code];
|
||||
if ( !empty($this->execution_order[$stage]) ) {
|
||||
foreach( $this->execution_order[$stage] as $key => $code ) {
|
||||
if( $this->debug ) {
|
||||
$pr = explode('|', $key, 2);
|
||||
$pr = $pr[0];
|
||||
$this->compiled_code
|
||||
.= ( $new_stage ) ? "\n// Section: ".$code.":".$pr."\n" : "\n\n// Section: ".$code.":".$pr."\n" ;
|
||||
$this->compiled_code .= $this->clean_up_code($this->code[$stage][$code]);
|
||||
$new_stage = false;
|
||||
} else {
|
||||
$this->compiled_code .= $this->code[$stage][$code];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ class imageThumb {
|
||||
|
||||
/*
|
||||
|
||||
Class: image v0.2 beta
|
||||
Class: imageThumb v0.2 beta
|
||||
|
||||
Copyright © 2006 Jim Myhrberg. All rights reserved.
|
||||
zynode@gmail.com
|
||||
|
||||
Reference in New Issue
Block a user