//IF THE CONFIG FILE DOESN'T EXIST THEN HEAD OVER TO CONFIG.PHP if ( !file_exists( "./.fl_config" ) ) header( "Location: config.php" ); else { //LOAD FILE $config_file=file("./.fl_config"); //GET RID OF USERNAME/PASSWORD INFO array_shift($config_file); array_shift($config_file); //CONFIGURE THE HTML HOWEVER YOU WANT print( "
" ); ?> print( " Please select file below:" ); //PRINT OUT THE FILES foreach($config_file as $file ) { //PRINT OUT EACH FILE if ( file_exists( "./" . chop( $file ) ) ) { if ( strstr( $file, ".html" ) ) { $lines=file("./" . chop($file)); $data=""; foreach( $lines as $line ) { $data.=chop($line) . "\n"; } if ( strstr( $data, "
" ); } ?>" ) && strstr( $data, " " ) ) { $title=preg_replace( "|(.*?)(.*?)( .*)|is", "\\2", $data); $title=trim($title); } else $title=""; if ( empty( $title ) ) $title=$file; } else $title=$file; print( "" ); } } print( " $title