Ticket #431: fck-php-connector.diff
File fck-php-connector.diff, 1.1 KB (added by , 17 years ago) |
---|
-
commands.php
30 30 // Array that will hold the folders names. 31 31 $aFolders = array() ; 32 32 33 $oCurrentFolder = opendir( $sServerDir ) ;33 $oCurrentFolder = @opendir( $sServerDir ) ; 34 34 35 while ( $sFile = readdir( $oCurrentFolder ) )35 while ( $sFile = @readdir( $oCurrentFolder ) ) 36 36 { 37 if ( $sFile != '.' && $sFile != '..' && is_dir( $sServerDir . $sFile ) )37 if ( $sFile != '.' && $sFile != '..' && @is_dir( $sServerDir . $sFile ) ) 38 38 $aFolders[] = '<Folder name="' . ConvertToXmlAttribute( $sFile ) . '" />' ; 39 39 } 40 40 41 closedir( $oCurrentFolder ) ;41 @closedir( $oCurrentFolder ) ; 42 42 43 43 // Open the "Folders" node. 44 44 echo "<Folders>" ; … … 60 60 $aFolders = array() ; 61 61 $aFiles = array() ; 62 62 63 $oCurrentFolder = opendir( $sServerDir ) ;63 $oCurrentFolder = @opendir( $sServerDir ) ; 64 64 65 while ( $sFile = readdir( $oCurrentFolder ) )65 while ( $sFile = @readdir( $oCurrentFolder ) ) 66 66 { 67 67 if ( $sFile != '.' && $sFile != '..' ) 68 68 {