- 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:
jim
2006-03-31 17:37:24 +00:00
parent 4f57bf92ce
commit f3a2a9e5b9
165 changed files with 268 additions and 85 deletions

View File

@@ -29,7 +29,7 @@ $config = array(
// dList internal path settings
'path_plugins' => array('plugins'),
'path_plugins' => array('plugins/*'),
'path_cache' => 'cache',

View File

@@ -12,6 +12,7 @@
Name: core
Priority: 40
Author: Jim Myhrberg
Include: output.exc.php
*/
//_SCRIPT;
@@ -26,7 +27,7 @@ if ( stristr($_SERVER['HTTP_HOST'], ':') !== false ) {
$_SERVER['SERVER_PORT'] = $http_host[1];
unset($http_host);
}
preg_match("/(.*)Port [0-9]{2,8}(.*)/", $_SERVER['SERVER_SIGNATURE'], $serverinfo);
preg_match("/(.*)Port [0-9]{2,8}(.*)/i", $_SERVER['SERVER_SIGNATURE'], $serverinfo);
$_SERVER['SERVER_SIGNATURE'] = $serverinfo[1].'Port '.$_SERVER['SERVER_PORT'].$serverinfo[2];
@@ -73,7 +74,7 @@ if ( $do_readdir ) {
//>Section> echo
print_r($dlist->list);
//print_r($dlist->list);
//_END;

View File

@@ -21,11 +21,46 @@ Author: Jim Myhrberg
//>After> core.define_constants
define('ICONS_PATH', '/icons/'.$config->iconset.'/');
define('ICONS_PATH', 'icons/'.$config->iconset.'/');
define('ICONS_URL', DLIST_URL.ICONS_PATH);
//>Section> load_config:35
$config->parse(ICONS_PATH.'config.ini', true, 'icons_');
//>Section> functions
function icons_get_url ($ext, $size, $type) {
global $config;
if ( $size == 'large' || $size == 'big' ) {
$size = $config->icons_large;
} else {
$size = $config->icons_small;
}
$icons_path = ICONS_PATH.$size.'/';
$icons_url = ICONS_URL.$size.'/';
if ( $type == 'file' ) {
if ( file_exists($icons_path.$ext.$config->icons_ext) ) {
return $icons_url.$ext.$config->icons_ext;
} else {
return $icons_url.'_file'.$config->icons_ext;
}
} elseif ( $type == 'dir' || $type == 'folder' ) {
if ( file_exists($icons_path.'_folder.'.$ext.$config->icons_ext) ) {
return $icons_url.'_folder.'.$ext.$config->icons_ext;
} else {
return $icons_url.'_folder'.$config->icons_ext;
}
}
}
function icons_get_parent ($size) {
global $config;
if ( $size == 'large' || $size == 'big' ) {
$size = $config->icons_large;
} else {
$size = $config->icons_small;
}
return ICONS_URL.$size.'/_parent'.$config->icons_ext;
}
//_END;
?>

33
exec/output.exc.php Normal file
View File

@@ -0,0 +1,33 @@
<?php die();
//
// Exec: output
//
// Copyright © 2006 Jim Myhrberg. All rights reserved.
// zynode@gmail.com
//
//_HEAD;
/* --- Configuration ---
Name: output
Priority: 40
Author: Jim Myhrberg
*/
//_SCRIPT;
//==========================
//>STAGE> init
//==========================
//==========================
//>STAGE> render
//==========================
//>Section> do_render:5
if ( $do_render ) {
//>Section> do_render.end:95
}
//_END;
?>

BIN
icons/osx/16x16/3gp.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/_file.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 630 B

BIN
icons/osx/16x16/_folder.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/_parent.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/acc.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B

BIN
icons/osx/16x16/ai.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/aif.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B

BIN
icons/osx/16x16/aiff.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B

BIN
icons/osx/16x16/as.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/avi.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/bmp.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/bz2.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 640 B

BIN
icons/osx/16x16/css.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/dmg.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 619 B

BIN
icons/osx/16x16/dng.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/doc.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 B

BIN
icons/osx/16x16/dv.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/dwg.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/dxf.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/emf.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/eps.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/exe.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 547 B

BIN
icons/osx/16x16/fla.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/flv.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/gif.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/htm.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/html.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/icns.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/ico.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/indd.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/jp2.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/jpeg.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/jpg.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/js.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/lzh.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 B

BIN
icons/osx/16x16/m3u.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/m4a.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B

BIN
icons/osx/16x16/m4b.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B

BIN
icons/osx/16x16/m4p.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B

BIN
icons/osx/16x16/mid.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/midi.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/mov.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/mp2.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 622 B

BIN
icons/osx/16x16/mp3.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B

BIN
icons/osx/16x16/mp4.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/mpe.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/mpeg.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/mpg.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/ogg.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 B

BIN
icons/osx/16x16/pdf.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/pict.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/pls.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/png.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/pps.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/ps.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/psd.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/raw.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/rtf.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/rtx.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/sit.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 B

BIN
icons/osx/16x16/sitx.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 B

BIN
icons/osx/16x16/svg.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/svgz.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/swf.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/tar.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 640 B

BIN
icons/osx/16x16/tbz.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 636 B

BIN
icons/osx/16x16/tga.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/tgz.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 636 B

BIN
icons/osx/16x16/tif.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/tiff.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/txt.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 644 B

BIN
icons/osx/16x16/uu.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 631 B

BIN
icons/osx/16x16/wav.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B

BIN
icons/osx/16x16/wmf.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
icons/osx/16x16/xls.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 615 B

BIN
icons/osx/16x16/zip.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 641 B

BIN
icons/osx/48x48/3gp.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
icons/osx/48x48/_file.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
icons/osx/48x48/_folder.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
icons/osx/48x48/_parent.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
icons/osx/48x48/acc.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
icons/osx/48x48/ai.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
icons/osx/48x48/aif.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
icons/osx/48x48/aiff.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
icons/osx/48x48/as.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
icons/osx/48x48/avi.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
icons/osx/48x48/bmp.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
icons/osx/48x48/bz2.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
icons/osx/48x48/css.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
icons/osx/48x48/dmg.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
icons/osx/48x48/dng.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
icons/osx/48x48/doc.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
icons/osx/48x48/dv.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
icons/osx/48x48/dwg.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
icons/osx/48x48/dxf.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
icons/osx/48x48/emf.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Some files were not shown because too many files have changed in this diff Show More