aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/index.php b/index.php
index 85f22c7..ba776d9 100644
--- a/index.php
+++ b/index.php
@@ -2,6 +2,7 @@
require_once( dirname(__FILE__) . '/bootstrap.php');
ob_start('minify');
+session_set_cookie_params(SESSION_LIFETIME, '/', HOST, true, true);
session_name(SESSION);
session_start();
@@ -121,16 +122,17 @@ require_once 'static/header.php';
<?php
require_once 'static/footer.php';
$moar->playFooter();
+include("static/piwik.html");
?>
</body>
</html>
<?php
$html = ob_get_contents();
-ob_end_clean();
-
$html = $moar->magicHeader($html);
+ob_clean();
echo $html;
if ( ! $c->bypassCache && $_SERVER["REQUEST_METHOD"] == "GET" && $_SERVER["REDIRECT_STATUS"] == 200 ) {
$c->setPageCache($token, $html, 3600);
}
+ob_end_flush();