Documenten ABK

Documenten ABK

read())) {
// skip hidden files and directories
if (($entry[0] !== “.”) && (!is_dir(“$dir$entry”))) $filelist[] = array(
“name” => “$dir$entry”,
“lastmod” => filemtime(“$dir$entry”)
);
}
$d->close();
// sort on filename
if ($order === “asc”) usort($filelist, create_function(‘$a,$b’, “return strnatcmp(strtolower(\$a[‘$field’]), strtolower(\$b[‘$field’]));”));
if ($order === “desc”) usort($filelist, create_function(‘$b,$a’, “return strnatcmp(strtolower(\$a[‘$field’]), strtolower(\$b[‘$field’]));”));
foreach($filelist as $file) {
if (!preg_match(“/” . $mask . “/i”, basename($file[‘name’]))) continue;
echo “

  • “;
    if ($update === “yes”) echo “Update: ” . date(‘d-m-Y H:i’, $file[‘lastmod’]) . ” “;
    echo “” . htmlspecialchars(basename($file[‘name’]), ENT_QUOTES) . “
  • \n”;
    }
    }
    function createclicklink($file, $descr)
    {
    echo “Update: ” . date(“d-m-Y H:i”, filemtime(“{$file}”)) . ” {$descr}“;
    }
    function maillink($mail)
    {
    echo “{$mail}“;
    }
    ?>