[ Index ] |
|
Code source de SPIP Agora 1.4 |
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_version.php"); 20 21 include_ecrire ("inc_auth.php"); 22 include_ecrire ("inc_admin.php"); 23 include_ecrire ("inc_presentation.php"); 24 25 $action = _T('titre_page_delete_all'); 26 27 debut_admin ($action); 28 29 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_articles"); 30 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_auteurs"); 31 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_auteurs_articles"); 32 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_auteurs_messages"); 33 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_auteurs_rubriques"); 34 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_breves"); 35 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_documents"); 36 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_documents_articles"); 37 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_documents_breves"); 38 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_documents_rubriques"); 39 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_forum"); 40 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_forum_cache"); 41 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_groupes_mots"); 42 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_index_articles"); 43 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_index_auteurs"); 44 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_index_breves"); 45 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_index_dico"); 46 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_index_mots"); 47 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_index_rubriques"); 48 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_index_syndic"); 49 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_messages"); 50 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_meta"); 51 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_mots"); 52 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_mots_articles"); 53 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_mots_breves"); 54 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_mots_forum"); 55 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_mots_rubriques"); 56 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_mots_syndic"); 57 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_petitions"); 58 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_referers"); 59 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_referers_articles"); 60 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_referers_temp"); 61 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_rubriques"); 62 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_signatures"); 63 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_syndic"); 64 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_syndic_articles"); 65 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_types_documents"); 66 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_visites"); 67 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_visites_articles"); 68 spip_query ("DROP TABLE " . $GLOBALS['table_prefix']. "_visites_temp"); 69 70 @unlink (".htaccess"); 71 //@unlink("inc_connect.php"); 72 @unlink ("/include/bd/inc_config_metier.php"); 73 74 @header ("Location: ./"); 75 76 fin_admin ($action); 77 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 14:40:03 2007 | par Balluche grâce à PHPXref 0.7 |