ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/reports/php/historical/browser.php
(Generate patch)

Comparing projects/cms/source/reports/php/historical/browser.php (file contents):
Revision 1.31 by pjm2, Thu Mar 8 20:55:29 2001 UTC vs.
Revision 1.32 by pjm2, Tue Mar 13 18:44:30 2001 UTC

# Line 47 | Line 47 | function isReportEmpty($filename, $minFileSize) {
47   }
48  
49  
50 < # return an array of subdirectories in the current directory.
51 < function getdirArray($dir='./',$sort='asort') {
52 <    global $dir_file_count;
53 <    if ( is_dir($dir) ) {
54 <        $fd = @opendir($dir);
55 <        while ( ($part = @readdir($fd)) == TRUE ) {
56 <            clearstatcache();
57 <            if ($part != "." && $part != "..") {
58 <                if (preg_match("/^[0-9]{4}\-[0-9]{2}\-[0-9]{2}$/", $part)) {
59 <                    $dir_array[] = $part;
60 <                }
61 <            }
62 <        }
63 <        if($fd == TRUE) {
64 <            closedir($fd);
65 <        }
66 <        if (is_array($dir_array)) {
67 <            $sort($dir_array);
68 <            $dir_file_count = count($dir_array);
69 <            Return $dir_array;
70 <        } else {
71 <            Return FALSE;
72 <        }
73 <    } else {
74 <        Return FALSE;
75 <    }
76 < }
50 > include("iutils.inc.php");
51  
52   ?>
53  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines