# The pehapee skript.
# Spetsiali foor katalog viuving foor gal named direktoris.
# meid bai Sült (tse) 2005.06.28
#
//function ShowDirectory($dir, $i, $maxDepth){
//}
?>
eekevad.2014 särkide kavandid:
#phpinfo() ?>
$BCol1="#F8FFFF";
$BCol2="#FFFFEE";
$Bak=$BCol2;
$couDir=0;
if ($dh = opendir(getcwd())) {
while (($file = readdir($dh)) !== false) {
// if(is_dir($file) && (substr($file,0,3)=="gal")){
if($file != "." && $file != ".." && $file != "index.php" ){
$DirList[$couDir]=$file;
$couDir++;
}
}
sort($DirList);
for($cou=0; $cou < $couDir;$cou++){
($Bak==$BCol1)?$Bak=$BCol2:$Bak=$BCol1;
echo "";
echo "$DirList[$cou] |
\n";
}
closedir($dh);
}
?>