';
if ($handle = opendir('users'.$place)) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
// COLORIZE IT
if ($i == 1)
{ $num = 1; $i = 2; }
else if ($i = 2)
{ $num = 2; $i = 1; }
// TEXT
$fileTypesOne = array("txt","php","html","js","rb","py");
$firstarray = explode(".",$file);
$ext = $firstarray[sizeOf($firstarray)-1];
if (in_array($ext,$fileTypesOne))
{ echo "
| $file |
\n"; }
// IMAGE
$fileTypesTwo = array("jpg","png","gif");
$secondarray = explode(".",$file);
$ext = $secondarray[sizeOf($secondarray)-1];
else if(in_array($ext,$fileTypesTwo))
{ echo "| $file |
\n"; }
// Movie
$fileTypesThree = array("txt","php","html","js","rb","py");
$thirdarray = explode(".",$file);
$ext = $thirdarray[sizeOf($thirdarray)-1];
else if(in_array($ext,$fileTypesThree))
{ echo "| $file |
\n"; }
// ELSE
else
{ echo "$file$i
|
\n"; }
}
}
closedir($handle);
}
echo '';
}
?>