From 7075c0b8519cc6b3c8e4a53dddf78f7ded598456 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 1 Oct 2014 00:43:34 +0200 Subject: cache buster, more glyphicons, improved caching --- functions.php | 51 +++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 39 insertions(+), 12 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 854489f..fcebb9f 100644 --- a/functions.php +++ b/functions.php @@ -95,7 +95,7 @@ if( isset($_GET["goto"]) && $_GET["goto"] != "" ) {
- +
@@ -111,6 +111,8 @@ if( isset($_GET["goto"]) && $_GET["goto"] != "" ) { } function print_logout(){ + global $cache; + $cache = false; global $user; if ( $user->isLoggedIn() ){ $user->logout(); @@ -186,7 +188,8 @@ function print_list($option = false){ ".htmlentities($row['handynummer'])." ".htmlentities($row['email'])." ".htmlentities($row['geburtstag'])." - + + "; $count++; } @@ -194,8 +197,8 @@ function print_list($option = false){ -
token; ?>> - + +
@@ -251,7 +254,7 @@ function print_update_list($id){ - + @@ -264,7 +267,7 @@ function print_update_list($id){
- +
@@ -313,7 +316,7 @@ function print_add_entry_to_list(){ - +

Error 404 - Not Found

@@ -340,7 +345,13 @@ function print_404(){
- + +

Wir haben die Seite '' nicht gefunden!

@@ -439,7 +450,7 @@ function print_register($option = false){
- +
@@ -452,6 +463,8 @@ function print_register($option = false){ } function print_account($option = false){ + global $cache; + $cache = false; lredirect("account"); global $user; ?> @@ -530,7 +543,7 @@ function print_account($option = false){
- +
@@ -581,7 +594,7 @@ function print_recover($option = false){
- +
@@ -593,13 +606,15 @@ function print_recover($option = false){ } function print_download(){ + global $cache; + $cache = false; if ( ! isset($_GET["type"]) || $_GET["type"] == "plain" ) $type = "plain"; else $type = "csv"; lredirect("download;type=".$type); - header($_SERVER["SERVER_PROTOCOL"] . " 301 Moved"); + header($_SERVER["SERVER_PROTOCOL"] . " 302 Moved"); header("Refresh: 2; ".DOMAIN."/?page=action&task=download&type=".$type); ?>

Download

@@ -613,6 +628,18 @@ function print_download(){ flush(); + global $cache; + $cache = false; +?> +

Cache flushed!

+
+[^\S ]+/s', // strip whitespaces after tags, except space -- cgit v1.2.3