From: <on...@us...> - 2002-09-06 03:35:48
|
Update of /cvsroot/xoops/xoops-current/html/class In directory usw-pr-cvs1:/tmp/cvs-serv19779 Modified Files: xoopslists.php Log Message: no message Index: xoopslists.php =================================================================== RCS file: /cvsroot/xoops/xoops-current/html/class/xoopslists.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** xoopslists.php 4 Aug 2002 19:39:26 -0000 1.2 --- xoopslists.php 6 Sep 2002 03:35:44 -0000 1.3 *************** *** 33,39 **** */ function &getThemesList() { ! $themes_list = array(); ! $themes_list =& XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH."/themes/"); ! return $themes_list; } --- 33,37 ---- */ function &getThemesList() { ! return XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH."/themes/"); } *************** *** 46,50 **** $handle=@opendir($dirname); while ( ($file = readdir($handle)) ) { ! if ( !ereg("^[.]{1,2}$",$file) ) { if ( is_dir($dirname.$file) ) { $dirlist[$file]=$file; --- 44,48 ---- $handle=@opendir($dirname); while ( ($file = readdir($handle)) ) { ! if ( !preg_match("/^[.]{1,2}$/",$file) ) { if ( is_dir($dirname.$file) ) { $dirlist[$file]=$file; *************** *** 66,70 **** $handle=@opendir($dirname); while ( ($file = readdir($handle)) ) { ! if ( !ereg("^[.]{1,2}$",$file) && ereg(".gif|.jpg|.png",$file) ) { $file = $prefix.$file; $filelist[$file]=$file; --- 64,68 ---- $handle=@opendir($dirname); while ( ($file = readdir($handle)) ) { ! if ( !preg_match("/^[.]{1,2}$/",$file) && preg_match("/[.gif|.jpg|.png]$/i",$file) ) { $file = $prefix.$file; $filelist[$file]=$file; |