listDirectory($_GET['dir']);
} else {
$dirArray = $lister->listDirectory('.');
}
?>
listBreadcrumbs(); ?>
/
$fileInfo):
if ($get_type === "ADtvMedia" and $name === "..") {
continue;
}
if($fileInfo['icon_class'] === "fa-folder") {
$type = "folder";
} else if($fileInfo['icon_class'] === "fa-level-up") {
$type = "level";
} else {
$type = "file";
// file extension to filter
// for make it nicer
$except = array(
'avi',
'mp4',
'mov',
'mkv',
'mpg',
'mpeg',
);
$ext = implode('|', $except);
// formating filenames for the browser
if (preg_match('/^02 #/', $name) === 1) {
$name_exp = explode('#' , $name);
$name_end = preg_split("/[-.]/", $name_exp[4]);
$in_sec = $name_end[0] * 60 + $name_end[1];
$len = gmdate("H:i:s", $in_sec);
$name = $len . ' | ' . $name_exp[2] . '|' . $name_exp[3];
} elseif (preg_match_all('/#/', $name) === 2) {
$name_exp = explode('#' , $name);
$name_end = preg_split("/[-.]/", $name_exp[2]);
$in_sec = $name_end[0] * 60 + $name_end[1];
$len = gmdate("H:i:s", $in_sec);
$name = $len . ' | ' . $name_exp[0] . '|' . $name_exp[1];
} elseif (preg_match('/# [0-9-]+.('.$ext.')$/', $name) === 1) {
$name_exp = explode('#' , $name);
$name_end = preg_split("/[-.]/", end($name_exp));
$in_sec = $name_end[0] * 60 + $name_end[1];
$len = gmdate("H:i:s", $in_sec);
$name_pre = preg_replace('/# [0-9-]+.('.$ext.')$/', '', $name);
$name = $len . ' | ' . $name_pre;
}
$name = str_replace('ยง', '?', $name);
}?>
" data-href="">
containsIndex($fileInfo['file_path'])): ?>
externalLinksNewWindow()): ?>target="_blank">