simplification
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Wed, 29 Dec 2004 10:02:56 +0000 (10:02 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:27:00 +0000 (23:27 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-171

ChangeLog
htdocs/clear_all_cache.php

index 6bdd212..088ec45 100644 (file)
--- 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
index f4a41f6..6a01b7f 100644 (file)
  ***************************************************************************/
 
 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']));
+
 ?>