Update of /cvsroot/xoops/xoops-current/html/class
In directory usw-pr-cvs1:/tmp/cvs-serv29866
Modified Files:
xoopslogger.php xoopslists.php
Log Message:
no message
Index: xoopslogger.php
===================================================================
RCS file: /cvsroot/xoops/xoops-current/html/class/xoopslogger.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** xoopslogger.php 18 Sep 2002 11:08:44 -0000 1.1
--- xoopslogger.php 18 Sep 2002 11:11:39 -0000 1.2
***************
*** 21,24 ****
--- 21,25 ----
// Author: Kazumi Ono (AKA onokazu) //
// URL: http://www.myweb.ne.jp/, http://www.xoops.org/, http://jp.xoops.org/ //
+ // Project: The XOOPS Project //
// ------------------------------------------------------------------------- //
Index: xoopslists.php
===================================================================
RCS file: /cvsroot/xoops/xoops-current/html/class/xoopslists.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** xoopslists.php 6 Sep 2002 03:35:44 -0000 1.3
--- xoopslists.php 18 Sep 2002 11:11:39 -0000 1.4
***************
*** 19,22 ****
--- 19,26 ----
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
// ------------------------------------------------------------------------- //
+ // Author: The XOOPS Project //
+ // URL: http://www.xoops.org/ //
+ // Project: The XOOPS Project //
+ // ------------------------------------------------------------------------- //
if ( !defined("XOOPS_LISTS_INCLUDED") ) {
***************
*** 41,45 ****
function &getDirListAsArray($dirname) {
$dirlist = array();
- //$dirname = str_replace(".", "", $dirname);
$handle=@opendir($dirname);
while ( ($file = readdir($handle)) ) {
--- 45,48 ----
***************
*** 57,65 ****
/*
* gets list of image file names in a directory
*/
function &getImgListAsArray($dirname, $prefix="") {
$filelist = array();
- //$dirname = str_replace(".", "", $dirname);
$handle=@opendir($dirname);
while ( ($file = readdir($handle)) ) {
--- 60,85 ----
/*
+ * gets list of all files in a directory
+ */
+ function &getFileListAsArray($dirname, $prefix="") {
+ $filelist = array();
+ $handle=@opendir($dirname);
+ while ( ($file = readdir($handle)) ) {
+ if (!preg_match("/^[.]{1,2}$/",$file)) {
+ $file = $prefix.$file;
+ $filelist[$file]=$file;
+ }
+ }
+ closedir($handle);
+ asort($filelist);
+ reset($filelist);
+ return $filelist;
+ }
+
+ /*
* gets list of image file names in a directory
*/
function &getImgListAsArray($dirname, $prefix="") {
$filelist = array();
$handle=@opendir($dirname);
while ( ($file = readdir($handle)) ) {
|