mirror of
https://github.com/jimeh/dlist.git
synced 2026-02-19 07:56:41 +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:
@@ -84,7 +84,7 @@ class Path {
|
|||||||
class Sort {
|
class Sort {
|
||||||
|
|
||||||
//>Section> sort.get_url
|
//>Section> sort.get_url
|
||||||
function get_url ($sortby) {
|
function get_url ($sortby, $desc=false) {
|
||||||
global $config;
|
global $config;
|
||||||
$return = array();
|
$return = array();
|
||||||
$current_sort = ( empty($_REQUEST['sort']) ) ? $config->default_sort : $_REQUEST['sort'] ;
|
$current_sort = ( empty($_REQUEST['sort']) ) ? $config->default_sort : $_REQUEST['sort'] ;
|
||||||
@@ -97,6 +97,7 @@ class Sort {
|
|||||||
} else {
|
} else {
|
||||||
if ($sortby != $config->default_sort) {
|
if ($sortby != $config->default_sort) {
|
||||||
$return[] = 'sort='.$sortby;
|
$return[] = 'sort='.$sortby;
|
||||||
|
if ( $desc == true ) $return[] = 'order=desc';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
dList v2.2.4 beta
|
dList v2.2.5 beta
|
||||||
|
|
||||||
Copyright © 2006 Jim Myhrberg. All rights reserved.
|
Copyright © 2006 Jim Myhrberg. All rights reserved.
|
||||||
zynode@gmail.com
|
zynode@gmail.com
|
||||||
|
|||||||
@@ -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.
|
Copyright © 2006 Jim Myhrberg. All rights reserved.
|
||||||
zynode@gmail.com
|
zynode@gmail.com
|
||||||
@@ -172,6 +172,7 @@ class dirList {
|
|||||||
function getDetails ($item) {
|
function getDetails ($item) {
|
||||||
$item = str_replace("\\", '/', $item);
|
$item = str_replace("\\", '/', $item);
|
||||||
$return['name'] = basename($item);
|
$return['name'] = basename($item);
|
||||||
|
$return['name'] = preg_replace('/.*(?:\/|\\\\)(.*?)$/i', "$1", $item);
|
||||||
|
|
||||||
// Owner and Group
|
// Owner and Group
|
||||||
if ( ($group = $this->getGroup($item)) != false ) $return = array_merge($return, $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.
|
Copyright © 2006 Jim Myhrberg. All rights reserved.
|
||||||
zynode@gmail.com
|
zynode@gmail.com
|
||||||
@@ -155,16 +155,18 @@ class execHandler {
|
|||||||
.= "\n\n//==========================\n// Stage: ".$stage.":".$stage_priority."\n//==========================\n";
|
.= "\n\n//==========================\n// Stage: ".$stage.":".$stage_priority."\n//==========================\n";
|
||||||
$new_stage = true;
|
$new_stage = true;
|
||||||
}
|
}
|
||||||
foreach( $this->execution_order[$stage] as $key => $code ) {
|
if ( !empty($this->execution_order[$stage]) ) {
|
||||||
if( $this->debug ) {
|
foreach( $this->execution_order[$stage] as $key => $code ) {
|
||||||
$pr = explode('|', $key, 2);
|
if( $this->debug ) {
|
||||||
$pr = $pr[0];
|
$pr = explode('|', $key, 2);
|
||||||
$this->compiled_code
|
$pr = $pr[0];
|
||||||
.= ( $new_stage ) ? "\n// Section: ".$code.":".$pr."\n" : "\n\n// Section: ".$code.":".$pr."\n" ;
|
$this->compiled_code
|
||||||
$this->compiled_code .= $this->clean_up_code($this->code[$stage][$code]);
|
.= ( $new_stage ) ? "\n// Section: ".$code.":".$pr."\n" : "\n\n// Section: ".$code.":".$pr."\n" ;
|
||||||
$new_stage = false;
|
$this->compiled_code .= $this->clean_up_code($this->code[$stage][$code]);
|
||||||
} else {
|
$new_stage = false;
|
||||||
$this->compiled_code .= $this->code[$stage][$code];
|
} 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.
|
Copyright © 2006 Jim Myhrberg. All rights reserved.
|
||||||
zynode@gmail.com
|
zynode@gmail.com
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
<table border="0" cellspacing="1" cellpadding="0" id="list">
|
<table border="0" cellspacing="1" cellpadding="0" id="list">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="icon"></th>
|
<th class="icon"></th>
|
||||||
<? foreach ($fields as $key => $value): ?><th class="<?=$key?>"><a href="<?=Sort::get_url($key)?>"><?=$lang->$key?></a></th><? endforeach ?>
|
<? foreach ($fields as $key => $value):
|
||||||
|
$reverse = ($key == 'mtime') ? true : false;
|
||||||
|
?><th class="<?=$key?>"><a href="<?=Sort::get_url($key, $reverse)?>"><?=$lang->$key?></a></th><? endforeach ?>
|
||||||
</tr>
|
</tr>
|
||||||
<? if ( !$is_root ): ?>
|
<? if ( !$is_root ): ?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ if ( !empty($_COOKIE['dList_simple_viewMode']) && !empty($config->tpl_modes[$_CO
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//>Section> include_phtml
|
//>Section> include_phtml
|
||||||
include(TPL_PATH.'index.phtml');
|
include(TPL_PATH.'index.phtml');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user