HowTo-videos - puppylinux.org - deutsch
$thebasedir$topdir

"; $webuserdir = ereg_replace("httpdocs","web_users" ,$thebasedir); $topdir = ereg_replace($thebasedir,"" ,$topdir); $topdir = ereg_replace($webuserdir,"" ,$topdir); print "Home"; print "   "; print "Dotpups"; print "   "; print "Pawcasts"; print "   "; print "\"Puppy-releases\""; print "   "; print "ISOs"; print "   "; print "\"various"; print "   "; print "

$topdir

"; $verzeichnisse=array(); $dateien=array(); $handle=opendir("."); while ($file= readdir ($handle)) { #print $file; if ($file != "." && $file != "..") { if (is_dir($file)){ #echo "V-$file
n"; if ($file != "info_files"){ array_push($verzeichnisse,$file); } } if (is_file($file)){ #echo "D-$file
n"; if ($file != "index.php"){ if (substr("$file",0,1) != "."){ array_push($dateien,$file); } } } } if ($file==".." && (dirname($startverz)!=$wurzel)){ #array_push($verzeichnisse,$file); } } closedir($handle); asort($verzeichnisse); asort($dateien); print ""; print ""; foreach ($verzeichnisse as $verz){ print "\n"; } print ""; foreach ($dateien as $datei){ $filetype = "\"[FILE]\""; if (preg_match("/\.png$/i" , $datei)){ $filetype = "\"[bitmap]\""; } if (preg_match("/\.gif$/i" , $datei)){ $filetype = "\"[bitmap]\""; } if (preg_match("/\.jpg$/i" , $datei)){ $filetype = "\"[bitmap]\""; } if (preg_match("/\.xpm$/i" , $datei)){ $filetype = "\"[bitmap]\""; } if (preg_match("/\.bmp$/i" , $datei)){ $filetype = "\"[bitmap]\""; } if (preg_match("/\.pup$/i" , $datei)){ $filetype = "\"[archive]\""; } if (preg_match("/\.zip$/i" , $datei)){ $filetype = "\"[archive]\""; } if (preg_match("/\.tgz$/i" , $datei)){ $filetype = "\"[archive]\""; } if (preg_match("/\.gz$/i" , $datei)){ $filetype = "\"[archive]\""; } if (preg_match("/\.tar$/i" , $datei)){ $filetype = "\"[archive]\""; } if (preg_match("/\.bz2$/i" , $datei)){ $filetype = "\"[archive]\""; } if (preg_match("/\.rar$/i" , $datei)){ $filetype = "\"[archive]\""; } if (preg_match("/\.sfs$/i" , $datei)){ $filetype = "\"[archive]\""; } if (preg_match("/\.fs$/i" , $datei)){ $filetype = "\"[archive]\""; } if (preg_match("/vmlinuz$/i" , $datei)){ $filetype = "\"[binary]\""; } if (preg_match("/\.exe$/i" , $datei)){ $filetype = "\"[binary]\""; } if (preg_match("/\.ogg$/i" , $datei)){ $filetype = "\"[audio]\""; } if (preg_match("/\.mp3$/i" , $datei)){ $filetype = "\"[audio]\""; } if (preg_match("/\.wav$/i" , $datei)){ $filetype = "\"[audio]\""; } if (preg_match("/\.mpg$/i" , $datei)){ $filetype = "\"[video]\""; } if (preg_match("/\.avi$/i" , $datei)){ $filetype = "\"[video]\""; } if (preg_match("/\.mpeg$/i" , $datei)){ $filetype = "\"[video]\""; } if (preg_match("/\.iso$/i" , $datei)){ $filetype = "\"[iso-image]\""; } print "\n"; } print "
\"[UP]\"
\"[DIR]\"  $verz"; $status=stat("$verz"); #echo date("l, F dS",$modified[9]); $groesse = $status[7]; $zeitstempel=date("l, d.m.y, H:i",$status[9]); $zeitstempel=preg_replace( "/^[^,]*,/" , "" , $zeitstempel); print " $zeitstempel
$filetype  $datei"; $status=stat("$datei"); #echo date("l, F dS",$modified[9]); $groesse = $status[7]; $zeitstempel=date("l, d.m.y, H:i",$status[9]); $zeitstempel=preg_replace( "/^[^,]*,/" , "" , $zeitstempel); print "  $groesse   $zeitstempel
"; ?>