[ Index ] |
|
Code source de PunBB 1.2.16 |
1 <?php 2 /*********************************************************************** 3 4 Copyright (C) 2002-2005 Rickard Andersson (rickard@punbb.org) 5 6 This file is part of PunBB. 7 8 PunBB is free software; you can redistribute it and/or modify it 9 under the terms of the GNU General Public License as published 10 by the Free Software Foundation; either version 2 of the License, 11 or (at your option) any later version. 12 13 PunBB is distributed in the hope that it will be useful, but 14 WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with this program; if not, write to the Free Software 20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21 MA 02111-1307 USA 22 23 ************************************************************************/ 24 25 // 26 // Ce script permet de désactiver le mode maintenance. Utilisez le si jamais vous 27 // vous êtes déconnecté alors que les forums etaient en mode maintenance. 28 // Copiez ce fichier à la racine de votre installation de PunBB et lancez-le. 29 // 30 31 32 define('PUN_ROOT', './'); 33 if (!file_exists(PUN_ROOT.'include/common.php')) 34 exit('Ce fichier doit être lancé depuis le répertoire racine des forums.'); 35 36 // Make sure common.php doesn't exit with the maintenance message 37 define('PUN_TURN_OFF_MAINT', 1); 38 39 require PUN_ROOT.'include/common.php'; 40 41 42 if (isset($_POST['form_sent'])) 43 { 44 $db->query('UPDATE '.$db->prefix.'config SET conf_value=\'0\' WHERE conf_name=\'o_maintenance\'') or error('Unable to turn off maintenance mode', __FILE__, __LINE__, $db->error()); 45 46 // Regenerate the config cache 47 require_once PUN_ROOT.'include/cache.php'; 48 generate_config_cache(); 49 50 $db->close(); 51 52 exit('<script type="text/javascript">window.location="desactiver_mode_maintenance.php?done=1"</script>Echec de la redirection JavaScript. Cliquez <a href="desactiver_mode_maintenance.php?done=1">ici</a> pour continuer.'); 53 } 54 55 56 ?> 57 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 58 59 <html dir="ltr"> 60 <head> 61 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 62 <title>Désactiver le mode maintenance</title> 63 <link rel="stylesheet" type="text/css" href="style/<?php echo $pun_config['o_default_style'].'.css' ?>" /> 64 </head> 65 <body> 66 67 <div id="punwrap"> 68 <div id="punutil" class="pun" style="margin: 10% 20% auto 20%"> 69 70 <?php 71 72 if (isset($_GET['done'])) 73 { 74 75 ?> 76 <div class="block"> 77 <h2><span>Le mode maintenance est désactivé</span></h2> 78 <div class="box"> 79 <div class="inbox"> 80 <p>Le mode maintenance a été désactivé. Vous pouvez maintenant retirer ce script du dossier racine de vos forums.</p> 81 </div> 82 </div> 83 </div> 84 <?php 85 86 } 87 else 88 { 89 90 ?> 91 <div class="blockform"> 92 <h2><span>Désactiver le mode maintenance </span></h2> 93 <div class="box"> 94 <form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>" onsubmit="this.start.disabled=true"> 95 <div><input type="hidden" name="form_sent" value="1" /></div> 96 <div class="inform"> 97 <p style="font-size: 1.1em">Ce script permet de désactiver le mode maintenance. Utilisez le si jamais vous vous êtes déconnecté alors que les forums etaient en mode maintenance.</p> 98 </div> 99 <p><input type="submit" name="start" value="Lancer" /></p> 100 </form> 101 </div> 102 </div> 103 <?php 104 105 } 106 107 ?> 108 109 </div> 110 </div> 111 112 </body> 113 </html>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Nov 24 22:44:38 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |