$imageFiles = array();
$otherFiles = array();
-foreach (scandir($realDir) as $file) if ($file != '.' and $file != '..')
+foreach (scandir($realDir) as $file) if ($file[0] != '.')
{
if (is_dir("$realDir/$file"))
{
else
$parentLink = "";
+plugins_include("before_tpl.php");
+
///// template starts here /////
header('Content-Type: text/html; charset=utf-8');
-header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + 3600));
+header('Cache-Control: max-age=3600');
require 'template.php';