[ Index ]
 

Code source de SPIP Agora 1.4

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/Agora1-4/ecrire/ -> admin_vider.php (source)

   1  <?php
   2  /*****************************************************
   3  * This file is part of Agora, web based content management system.
   4  *
   5  * Agora is free software; you can redistribute it and/or modify
   6  * it under the terms of the GNU General Public License as published by
   7  * the Free Software Foundation; version 2 of the License.
   8  *
   9  * Agora is distributed in the hope that it will be useful,
  10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12  * GNU General Public License for more details (file "COPYING").
  13  *
  14  * Copyright © Arnaud Martin, Antoine Pitrou et Philippe Rivière.
  15  * List of authors detailed in "copyright_fr.html" file.
  16  * E-mail : agora@sig.premier-ministre.gouv.fr
  17  * Web site : http://www.agora.gouv.fr
  18  *****************************************************/
  19  include  ("inc.php");
  20  
  21  /*
  22  -------------Ajout Clever Age abstraction BD---------
  23  */
  24  require_once (dirname(__FILE__). "/include/bd/inc_index_articles_factory.php");
  25  /*
  26  ----------------fin zone d'ajout---------------------
  27  */
  28  
  29  include_ecrire  ("inc_admin.php");
  30  
  31  //----------------Zone de modifications Clever Age elebescond@clever-age.com----------
  32  debut_page(_T('onglet_vider_cache'), "administration", "cache");
  33  /*
  34  debut_page(_T('titre_page_admin_vider'), "administration", "base");
  35  */
  36  //----------------Fin Zone de modifications Clever Age elebescond@clever-age.com----------
  37  
  38  echo "<br><br><br>";
  39  gros_titre (_T('titre_admin_vider'));
  40  //----------------Zone de modifications Clever Age elebescond@clever-age.com----------
  41  /*
  42  barre_onglets("administration", "vider");
  43  */
  44  //----------------Fin Zone de modifications Clever Age elebescond@clever-age.com----------
  45  
  46  debut_gauche();
  47  
  48  debut_boite_info();
  49  
  50  echo _T('info_gauche_admin_vider');
  51  
  52  fin_boite_info();
  53  
  54  debut_droite();
  55  
  56  //----------------Zone de modifications Clever Age elebescond@clever-age.com----------
  57  $authorization = &recuperer_instance_authorization('viderCache', $GLOBALS['connect_id_auteur']);
  58  
  59  if (!$authorization->isAuthorizedAction()) {
  60      echo _T('avis_non_acces_page');
  61      fin_page();
  62      exit;
  63  }
  64  /*    
  65  if ($connect_statut != 'minirezo' OR !$connect_toutes_rubriques) {
  66      echo _T('avis_non_acces_page');
  67      fin_page();
  68      exit;
  69  }
  70  */
  71  //----------------Fin Zone de modifications Clever Age elebescond@clever-age.com----------
  72  
  73  if ($purger_index == "oui") {
  74      if (verifier_action_auteur("purger_index", $hash)) {
  75          //include_ecrire('inc_index.php');
  76          include_once (dirname(__FILE__). '/inc_index.php');
  77          purger_index();
  78          creer_liste_indexation();
  79      }
  80  }
  81  
  82  //
  83  // Purger le cache
  84  //
  85  
  86  debut_cadre_relief();
  87  
  88  echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=8 WIDTH=\"100%\">";
  89  echo "<TR><TD BGCOLOR='$couleur_foncee' BACKGROUND=''><B>";
  90  echo "<FONT FACE='Verdana,Arial,Helvetica,sans-serif' SIZE=3 COLOR='#FFFFFF'>";
  91  echo _T('texte_vider_cache'). "</FONT></B></TD></TR>";
  92  
  93  echo "<TR><TD BACKGROUND=''>";
  94  
  95  echo "<FONT FACE='Georgia,Garamond,Times,serif' SIZE=3>";
  96  
  97  echo "\n<p align='justify'>" . _T('texte_suppression_fichiers'). "<p align='justify'>" . _T('texte_recalcul_page');
  98  
  99  echo "\n<FORM ACTION='../spip_cache.php' METHOD='post'>";
 100  
 101  $hash = calculer_action_auteur("purger_cache");
 102  
 103  echo "\n<INPUT TYPE='hidden' NAME='id_auteur' VALUE='$connect_id_auteur'>";
 104  echo "\n<INPUT TYPE='hidden' NAME='hash' VALUE='$hash'>";
 105  echo "\n<INPUT TYPE='hidden' NAME='purger_cache' VALUE='oui'>";
 106  echo "\n<INPUT TYPE='hidden' NAME='redirect' VALUE='admin_vider.php'>";
 107  echo "\n<p><DIV align='right'><INPUT CLASS='fondo' TYPE='submit' NAME='valider' VALUE='" . _T('bouton_vider_cache'). "'></FORM></DIV>";
 108  
 109  echo "</FONT>";
 110  echo "</TD></TR>";
 111  echo "</TABLE>";
 112  
 113  //
 114  // Purger la base d'indexation
 115  //
 116  
 117  echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=8 WIDTH=\"100%\">";
 118  echo "<TR><TD BGCOLOR='#EEEECC' BACKGROUND=''><B>";
 119  echo "<FONT FACE='Verdana,Arial,Helvetica,sans-serif' SIZE=3 COLOR='#000000'>";
 120  echo _T('texte_effacer_donnees_indexation'). "</FONT></B></TD></TR>";
 121  
 122  echo "<TR><TD class='serif'>";
 123  echo "\n<p align='justify'>";
 124  
 125  if (lire_meta('activer_moteur') == 'oui') {
 126      echo _T('texte_moteur_recherche_active');
 127  }
 128  else {
 129      echo "<b>" . _T('texte_moteur_recherche_non_active'). "</b>";
 130  
 131      $indexArticleMetier = recuperer_instance_index_articles();
 132      $compteur = $indexArticleMetier->howManyIndexArticle;
 133      if ($compteur)
 134          echo _T('texte_commande_vider_tables_indexation');
 135      else
 136          echo _T('texte_tables_indexation_vides');
 137  }
 138  
 139  echo "\n<FORM ACTION='admin_vider.php' METHOD='post'>";
 140  $hash = calculer_action_auteur("purger_index");
 141  echo "\n<INPUT TYPE='hidden' NAME='hash' VALUE='$hash'>";
 142  echo "\n<INPUT TYPE='hidden' NAME='purger_index' VALUE='oui'>";
 143  echo "\n<p><DIV align='right'><INPUT CLASS='fondo' TYPE='submit' NAME='valider' VALUE=\""._T('bouton_effacer_index')."\"></FORM></DIV>";
 144  echo "</FONT>";
 145  echo "</TD></TR>";
 146  echo "</TABLE>";
 147  
 148  fin_cadre_relief();
 149  echo "<BR>";
 150  fin_page();
 151  ?>


Généré le : Sat Feb 24 14:40:03 2007 par Balluche grâce à PHPXref 0.7