Running Shoes Review - What to wear, where to run

Running Shoes Review Page List

\n"; echo " http://".$_SERVER['SERVER_NAME']; echo "$prefix/"; echo "\n"; function get_extension($name) { $array = explode(".", $name); $retval = strtolower(array_pop($array)); return $retval; } /* Recursion, here we go.. */ function list_dir($chdir) { /* some globals, some cleaning */ global $root, $prefix, $showsize, $display, $excludedir, $excludefile; unset($sdirs); unset($sfiles); chdir($chdir); $self = basename($_SERVER['PHP_SELF']); /* open current directory */ $handle = opendir('.'); /* read directory. If the item is a directory, place it in $sdirs, if it's a filetype we want * and not this file, put it in $sfiles */ while ($file = readdir($handle)) { if(is_dir($file) && $file != "." && $file != ".." && !in_array($file, $excludedir)) { $sdirs[] = $file; } elseif(is_file($file) && $file != "$self" && array_key_exists(get_extension($file), $display) && !in_array($file, $excludefile)) { $sfiles[] = $file; } } /* count the slashes to determine how deep we're in the directory tree and how many * nice bars we need to add */ $dir = getcwd(); $dir1 = str_replace($root, "", $dir."/"); $count = substr_count($dir1, "/") + substr_count($dir1, "\\"); /* display directory names and recursively list all of them */ if(is_array($sdirs)) { sort($sdirs); reset($sdirs); for($y=0; $y"; for($z=1; $z<=$count; $z++) { echo "   "; } if(is_array($sfiles)) { echo ""; } else { echo ""; } echo " $sdirs[$y]"; list_dir($dir."/".$sdirs[$y]); } } chdir($chdir); /* iterate through the array of files and display them */ if(is_array($sfiles)) { sort($sfiles); reset($sfiles); $sizeof = sizeof($sfiles); /* what file types shall be displayed? */ for($y=0; $y<$sizeof; $y++) { echo ""; for($z=1; $z<=$count; $z++) { echo "   "; } if($y == ($sizeof -1)) { echo ""; } else { echo ""; } echo " "; echo "$sfiles[$y]"; if($showsize) { $fsize = @filesize($sfiles[$y])/1024; printf(" (%.2f kB)", $fsize); } echo ""; echo ""; } echo ""; for($z=1; $z<=$count; $z++) { echo "   "; } echo "\n"; } } list_dir($root); echo "\n"; ?>

© Copyright 2005 RunningShoesReview.com, All Rights Reserved | Trademarks property their respective owners | Page list