honor jpeg orientation
[bizou.git] / index.php
index d598060..e77be4e 100644 (file)
--- a/index.php
+++ b/index.php
@@ -55,7 +55,7 @@ $folders = array();
 $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"))
        {
@@ -77,9 +77,11 @@ if (dirname($simplePath) !== '')
 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';