From 2036626b560f22efd59673187a2de3b1319fcf8a Mon Sep 17 00:00:00 2001 From: root Date: Thu, 25 Sep 2014 10:26:56 +0200 Subject: version 4.0 --- bootstrap/index.php | 63 ++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 57 insertions(+), 6 deletions(-) (limited to 'bootstrap/index.php') diff --git a/bootstrap/index.php b/bootstrap/index.php index 32b4a97..21cbda7 100644 --- a/bootstrap/index.php +++ b/bootstrap/index.php @@ -1,22 +1,52 @@ getToken($_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]. $_SERVER["QUERY_STRING"], $a); + if ( $c->exists($token)){ + header("X-Cache: Hit"); + echo $c->getValue($token); + ob_end_flush(); + exit; + } +} else { + header("X-Cache: Miss "); +} $db = new db(); -$user = new jg(); +if ( ! isset($_SESSION["username"])) + $u = null; +else + $u = $_SESSION["username"]; + +$user = new jg($u); ?> - - + + + echo " Junge Gemeinde Adlershof @@ -29,6 +59,8 @@ require_once 'static/header.php';
setKey($token, $html, 3600); +} +ob_end_flush(); -- cgit v1.2.3