include("class.php");
$path = $_get['path'];
if($path == ""){
$path = "dir";
}else{
if(!strstr($path,"dir")){
$path = "dir/".$path;
}else{
$path = $path;
}
}
$newdir = new dirver();
$newdir -> setpath($path);
$newdir -> dirdata();
$files = $newdir -> getfiles();
$dirs = $newdir -> getdirs();
//print_r($files);
//print_r($dirs);
echo('');
$max = 3;
$j = 0;
if(count($dirs) == 2){
echo'';
print("");
print(" ");
print("");
echo '';
}else{
echo'';
while($j <= (count($dirs) -1)){
print("';
if(($j + 1) != count($dirs)){
echo '
';
}
}
$j++;
}
echo '';
}
$i = 0;
if(count($files) == 2){
echo'';
print(" ");
print($newdir -> change2line($files[0]));
print("");
print(" ");
print($newdir -> change2line($files[1]));
print("");
print("");
print(" ");
print("");
echo '';
}else{
echo'';
while($i <= (count($files) -1)){
print(" ");
print($newdir -> change2line($files[$i]));
print("");
if(($i + 1) % 3 == 0){
echo '';
if(($i + 1) != count($files)){
echo '
';
}
}
$i++;
}
echo '';
}
?>
class.php
'.$basename.'';
return $tmp;
}
function getfiletype($file){
if($file != ""){
$tmp = explode(".",$file);
$type = $tmp[count($tmp)-1];
return $type;
}
}
function getfiles(){
return $this -> files;
}
function getdirs(){
return $this -> dirs;
}
//
}