// ##### Flister 1.6 ##### - Ne módosítsd, a beállításokat a core/config.php-ban találod
header('Content-Type: text/html; charset=ISO-8859-2');
include ('core/function.php'); include('core/config.php');
if(!isset($_GET['path'])){
$selfdir = "./";
}else{
$selfdir = (substr($_GET['path'], -1, 1)=="/")?$_GET['path']:$_GET['path']."/";
$selfdir = trim(str_replace("../","",$selfdir));
}
$get_path = substr($selfdir,0,-1);
if(strlen($_SERVER['DOCUMENT_ROOT'])>2){
if(preg_match("/".str_replace("/", "\/", $_SERVER['DOCUMENT_ROOT'])."/i", $selfdir)){
include('core/tiltott_konyvtar.php');
exit;
}
}
if (in_array($get_path, $no_list)){
include('core/tiltott_konyvtar.php');
exit;
}
$mappak=array(); $fajlok=array();
if(@is_dir($selfdir)){
$handle=opendir($selfdir);
while ($file = readdir($handle)) {
if ((!in_array($file, $default_no_list)) and (!in_array($selfdir.$file, $no_list))){
$system = explode(".",$file);
$kit = strtolower($system[count($system)-1]);
if (!in_array($kit, $no_ex)){
$ezfajl = $selfdir.$file;
if (is_dir($ezfajl)) $mappak[]=$file;
if (is_file($ezfajl)) $fajlok[]=$file;
}//kiterjesztés ell.
}//if-t zárja
}
}else{
include('core/nem_letezo_konyvtar.php');
exit;
}
natcasesort($mappak); natcasesort($fajlok);
$order = strtolower(trim($_GET['order']));
if($order=="desc"){
$fajlok = array_reverse($fajlok);
if($order_folder) $mappak = array_reverse($mappak);
$add = "&order=desc";
}
if(!$root_folder_name) $root_folder_name=".";
$mypath = explode("/",$selfdir);
for ($i=0; $i".($mypath[$i]=="."?$root_folder_name:$mypath[$i])."";
}
$akt_dir = (count($mypath2)>0)?implode(" » ",$mypath2)." » ":"";
$all = array_merge($mappak, $fajlok);
$note = getNote("$selfdir/more_note.txt");
?>