Revision 8
Added by stefan about 20 years ago
| functions.php | ||
|---|---|---|
| 74 | 74 |
$dir = dir($directory); |
| 75 | 75 |
while (false !== $entry = $dir->read()) {
|
| 76 | 76 |
// Skip pointers |
| 77 |
if(substr($entry, 0, 1) == '.' || $entry == 'CVS') {
|
|
| 77 |
if(substr($entry, 0, 1) == '.' || $entry == '.svn') {
|
|
| 78 | 78 |
continue; |
| 79 | 79 |
} |
| 80 | 80 |
// Add dir and contents to list |
| ... | ... | |
| 98 | 98 |
$dir = dir($directory); |
| 99 | 99 |
while (false !== $entry = $dir->read()) {
|
| 100 | 100 |
// Skip pointers |
| 101 |
if(substr($entry, 0, 1) == '.' || $entry == 'CVS') {
|
|
| 101 |
if(substr($entry, 0, 1) == '.' || $entry == '.svn') {
|
|
| 102 | 102 |
continue; |
| 103 | 103 |
} |
| 104 | 104 |
// Chmod the sub-dirs contents |
| ... | ... | |
| 163 | 163 |
if($handle = opendir(WB_PATH.MEDIA_DIRECTORY.$directory)) {
|
| 164 | 164 |
// Loop through the dirs to check the home folders sub-dirs are not shown |
| 165 | 165 |
while(false !== ($file = readdir($handle))) {
|
| 166 |
if(substr($file, 0, 1) != '.' AND $file != 'CVS' AND $file != 'index.php') {
|
|
| 166 |
if(substr($file, 0, 1) != '.' AND $file != '.svn' AND $file != 'index.php') {
|
|
| 167 | 167 |
if(is_dir(WB_PATH.MEDIA_DIRECTORY.$directory.'/'.$file)) {
|
| 168 | 168 |
if($directory != '/') { $file = $directory.'/'.$file; } else { $file = '/'.$file; }
|
| 169 | 169 |
foreach($home_folders AS $hf) {
|
Also available in: Unified diff
All occurrences of "CVS" in the code are replace by ".svn"