From 0c5fcd90febcd57aaef456fafe7fc4fa45159e0d Mon Sep 17 00:00:00 2001 From: "Pierre Habouzit (MadCoder" Date: Wed, 29 Dec 2004 10:02:56 +0000 Subject: [PATCH] simplification git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-171 --- ChangeLog | 8 +++++++- htdocs/clear_all_cache.php | 11 +++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6bdd212..088ec45 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,7 +4,13 @@ VERSION 0.9.4 29 Jan 2004 New : * Core : - - new SQL access API : gain in security and code factorization. -MC + - New SQL access API : gain in security and code factorization. -MC + - Drop magic_quote_gpc (DB API takes care of it itself). -MC + - Drop cache algorithm (was complex for no gain). -MC + + * Validation : + - quite a lot of rewrite, simplifications. -MC + - now possible to add comments without any action. -MC * Skins : - Openweb : update. -MC diff --git a/htdocs/clear_all_cache.php b/htdocs/clear_all_cache.php index f4a41f6..6a01b7f 100644 --- a/htdocs/clear_all_cache.php +++ b/htdocs/clear_all_cache.php @@ -20,14 +20,9 @@ ***************************************************************************/ require_once("xorg.inc.php"); -new_admin_page('index.tpl'); -$page->clear_all_cache(); +new_skinned_page('index.tpl', AUTH_COOKIE); $page->clear_compiled_tpl(); -$ref = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''; -if($ref && strpos($ref,'clear_all_cache.php')===false) { - header("Location: {$_SERVER['HTTP_REFERER']}"); -} else { - header("Location: index.php"); -} +header("Location: " . (empty($_SERVER['HTTP_REFERER']) ? 'index.php' : $_SERVER['HTTP_REFERER'])); + ?> -- 2.1.4