Moar Debug Output

This commit is contained in:
seiichiro 2022-01-10 15:32:45 +01:00
parent 0767d38311
commit 11c034bb88

View file

@ -46,7 +46,6 @@ if (isset($_GET['f'])) {
if ($_GET['f'] != '') {
$t = array('(' => '\(', ')' => '\)');
$f = strtr($_GET['f'], $t);
error_log('----------'.$f.'----------');
$files = array_values(preg_grep('/.*'.$f.'.*/i', $files));
$filter='&f='.$_GET['f'];
}
@ -59,6 +58,8 @@ $files = array_reverse($files);
// Get Files for current Page
$curfiles = array_slice($files, ($page-1)*$slice ,$slice, true);
print_r($curfiles);
// Prepare Generic Data for Template
$data['dir'] = $dir;
$data['slice'] = $slice;