00014                         {
00015     $host = 
"mikroskop.homepage.t-online.de";
00016     $user = 
"kontakt@mikroskop.homepage.t-online.de";
00017     $pass = 
"sa8turm";
00018 
00019     
$ftp = @ftp_connect( $host );
00020     
if( !
$ftp ) {
00021       echo 
"Konnte keine Verbindung zu $host herstellen.<br>\n";
00022       flush();
00023       ftp_quit($ftp);
00024       
exit();
00025     }
00026     
$succ = @ftp_login( $ftp, $user, $pass );
00027     
if( !
$succ ) {
00028       echo 
"Anmeldung an $host fehlgeschlagen.<br>\n";
00029       flush();
00030       ftp_quit($ftp);
00031       
exit();
00032     }
00033     
00034     $tmp = @ftp_rawlist( $ftp, ROOT_DIR );
00035     foreach( $tmp as $d ) {
00036       
if( substr( $d, 0, 1 ) == 
"d" ) {
00037         $pattern = 
"/.*?\d\d:\d\d (.*)/";
00038         preg_match($pattern, $d, $match);
00039         array_push( $this->rDirs, 
ROOT_DIR . $match[1] );
00040       }
00041     }
00042 
00043     $this->ftp = 
$ftp;
00044   }