BUG accent - Logo
authormarc.nachin <you@example.commarc.nachin@auf.org>
Thu, 26 Sep 2013 09:26:07 +0000 (11:26 +0200)
committermarc.nachin <you@example.commarc.nachin@auf.org>
Thu, 26 Sep 2013 09:26:07 +0000 (11:26 +0200)
148 files changed:
css/screen/sommaire.css
fluxbb/admin_bans.php [deleted file]
fluxbb/admin_categories.php [deleted file]
fluxbb/admin_censoring.php [deleted file]
fluxbb/admin_forums.php [deleted file]
fluxbb/admin_groups.php [deleted file]
fluxbb/admin_index.php [deleted file]
fluxbb/admin_loader.php [deleted file]
fluxbb/admin_maintenance.php [deleted file]
fluxbb/admin_options.php [deleted file]
fluxbb/admin_permissions.php [deleted file]
fluxbb/admin_prune.php [deleted file]
fluxbb/admin_ranks.php [deleted file]
fluxbb/admin_reports.php [deleted file]
fluxbb/admin_users.php [deleted file]
fluxbb/delete.php [deleted file]
fluxbb/edit.php [deleted file]
fluxbb/extern.php [deleted file]
fluxbb/footer.php [deleted file]
fluxbb/header.php [deleted file]
fluxbb/help.php [deleted file]
fluxbb/img/avatars/107.gif [deleted file]
fluxbb/img/avatars/50.gif [deleted file]
fluxbb/img/avatars/index.html [deleted file]
fluxbb/img/index.html [deleted file]
fluxbb/img/smilies/big_smile.png [deleted file]
fluxbb/img/smilies/cool.png [deleted file]
fluxbb/img/smilies/hmm.png [deleted file]
fluxbb/img/smilies/index.html [deleted file]
fluxbb/img/smilies/lol.png [deleted file]
fluxbb/img/smilies/mad.png [deleted file]
fluxbb/img/smilies/neutral.png [deleted file]
fluxbb/img/smilies/roll.png [deleted file]
fluxbb/img/smilies/sad.png [deleted file]
fluxbb/img/smilies/smile.png [deleted file]
fluxbb/img/smilies/tongue.png [deleted file]
fluxbb/img/smilies/wink.png [deleted file]
fluxbb/img/smilies/yikes.png [deleted file]
fluxbb/include/cache.php [deleted file]
fluxbb/include/common.php [deleted file]
fluxbb/include/common_admin.php [deleted file]
fluxbb/include/dblayer/common_db.php [deleted file]
fluxbb/include/dblayer/index.html [deleted file]
fluxbb/include/dblayer/mysql.php [deleted file]
fluxbb/include/dblayer/mysqli.php [deleted file]
fluxbb/include/dblayer/pgsql.php [deleted file]
fluxbb/include/dblayer/sqlite.php [deleted file]
fluxbb/include/email.php [deleted file]
fluxbb/include/functions.php [deleted file]
fluxbb/include/parser.php [deleted file]
fluxbb/include/search_idx.php [deleted file]
fluxbb/include/template/admin.tpl [deleted file]
fluxbb/include/template/help.tpl [deleted file]
fluxbb/include/template/index.html [deleted file]
fluxbb/include/template/main.tpl [deleted file]
fluxbb/include/template/maintenance.tpl [deleted file]
fluxbb/include/template/redirect.tpl [deleted file]
fluxbb/index.php [deleted file]
fluxbb/install.php [deleted file]
fluxbb/lang/English/common.php [deleted file]
fluxbb/lang/English/delete.php [deleted file]
fluxbb/lang/English/forum.php [deleted file]
fluxbb/lang/English/help.php [deleted file]
fluxbb/lang/English/index.html [deleted file]
fluxbb/lang/English/index.php [deleted file]
fluxbb/lang/English/login.php [deleted file]
fluxbb/lang/English/mail_templates/activate_email.tpl [deleted file]
fluxbb/lang/English/mail_templates/activate_password.tpl [deleted file]
fluxbb/lang/English/mail_templates/form_email.tpl [deleted file]
fluxbb/lang/English/mail_templates/index.html [deleted file]
fluxbb/lang/English/mail_templates/new_reply.tpl [deleted file]
fluxbb/lang/English/mail_templates/new_reply_full.tpl [deleted file]
fluxbb/lang/English/mail_templates/welcome.tpl [deleted file]
fluxbb/lang/English/misc.php [deleted file]
fluxbb/lang/English/post.php [deleted file]
fluxbb/lang/English/prof_reg.php [deleted file]
fluxbb/lang/English/profile.php [deleted file]
fluxbb/lang/English/register.php [deleted file]
fluxbb/lang/English/search.php [deleted file]
fluxbb/lang/English/stopwords.txt [deleted file]
fluxbb/lang/English/topic.php [deleted file]
fluxbb/lang/English/userlist.php [deleted file]
fluxbb/lang/French/common.php [deleted file]
fluxbb/lang/French/delete.php [deleted file]
fluxbb/lang/French/forum.php [deleted file]
fluxbb/lang/French/help.php [deleted file]
fluxbb/lang/French/index.html [deleted file]
fluxbb/lang/French/index.php [deleted file]
fluxbb/lang/French/login.php [deleted file]
fluxbb/lang/French/mail_templates/activate_email.tpl [deleted file]
fluxbb/lang/French/mail_templates/activate_password.tpl [deleted file]
fluxbb/lang/French/mail_templates/form_email.tpl [deleted file]
fluxbb/lang/French/mail_templates/index.html [deleted file]
fluxbb/lang/French/mail_templates/new_reply.tpl [deleted file]
fluxbb/lang/French/mail_templates/new_reply_full.tpl [deleted file]
fluxbb/lang/French/mail_templates/welcome.tpl [deleted file]
fluxbb/lang/French/misc.php [deleted file]
fluxbb/lang/French/post.php [deleted file]
fluxbb/lang/French/prof_reg.php [deleted file]
fluxbb/lang/French/profile.php [deleted file]
fluxbb/lang/French/register.php [deleted file]
fluxbb/lang/French/search.php [deleted file]
fluxbb/lang/French/stopwords.txt [deleted file]
fluxbb/lang/French/topic.php [deleted file]
fluxbb/lang/French/userlist.php [deleted file]
fluxbb/lang/index.html [deleted file]
fluxbb/login.php [deleted file]
fluxbb/misc.php [deleted file]
fluxbb/moderate.php [deleted file]
fluxbb/plugins/AMP_Exemple.php [deleted file]
fluxbb/plugins/index.html [deleted file]
fluxbb/post.php [deleted file]
fluxbb/profile.php [deleted file]
fluxbb/register.php [deleted file]
fluxbb/search.php [deleted file]
fluxbb/style/Cobalt.css [deleted file]
fluxbb/style/Lithium.css [deleted file]
fluxbb/style/Mercury.css [deleted file]
fluxbb/style/Oxygen.css [deleted file]
fluxbb/style/Radium.css [deleted file]
fluxbb/style/Sulfur.css [deleted file]
fluxbb/style/imports/Cobalt_cs.css [deleted file]
fluxbb/style/imports/Lithium_cs.css [deleted file]
fluxbb/style/imports/Mercury_cs.css [deleted file]
fluxbb/style/imports/Oxygen_cs.css [deleted file]
fluxbb/style/imports/Radium_cs.css [deleted file]
fluxbb/style/imports/Sulfur_cs.css [deleted file]
fluxbb/style/imports/base.css [deleted file]
fluxbb/style/imports/base_admin.css [deleted file]
fluxbb/style/imports/index.html [deleted file]
fluxbb/style/imports/minmax.js [deleted file]
fluxbb/style/index.html [deleted file]
fluxbb/userlist.php [deleted file]
fluxbb/viewforum.php [deleted file]
fluxbb/viewtopic.php [deleted file]
images/css/.DS_Store
images/css/v3/image_degrade_filipe.png
images/css/v3/image_degrade_forttice.jpg
images/css/v3/image_degrade_fsm.jpg
images/css/v3/image_degrade_gg.jpg
images/css/v3/image_degrade_revues_chercheurs.png
images/css/v3/image_degrade_rrdl.jpg
plugins/forms_1_9_1/.DS_Store [deleted file]
squelettes/contener_top.html
squelettes/contener_top_appui_ens_fr.html
squelettes/contener_top_grel.html
squelettes/header.html
squelettes/menu_rrdl.html

index 0a3ae58..ce48d43 100644 (file)
@@ -103,7 +103,7 @@ background-image: url(../../images/slash.png);background-repeat: repeat;
        /*HEADER*/
        #frame #contener_top {width: 100%; margin: 0; padding: 0;background-color: #FCA800;}
        #frame #contener_top #contener_top_image{width: 980px;height: 200px; margin: 0 auto;}
-       #frame #contener_top #contener_top_image #droiteHeader_Contenu {width: 96%;height: auto; margin: 0 auto; padding: 65px 0 0 0; text-align:left;}
+       #frame #contener_top #contener_top_image #droiteHeader_Contenu {width: 100%;height: auto; margin: 0 auto; padding: 65px 0 0 0; text-align:left;}
        #frame #contener_top #contener_top_image #droiteHeader_Contenu .petit {color: #006699;  font-size: 10px; line-height: 12px; padding: 1em 0 0 0; margin: 0; }
        #frame #contener_top #contener_top_image #droiteHeader_Contenu p { font-size: 26px; line-height: 28px; text-transform:uppercase; color: #FFFFFF; padding: 0.4em 0 0 0; margin: 0; font-weight: bold;}
        #frame #contener_top #contener_top_image #droiteHeader_Contenu p a {color: #FFFFFF; text-decoration: none;}
diff --git a/fluxbb/admin_bans.php b/fluxbb/admin_bans.php
deleted file mode 100644 (file)
index 4936014..0000000
+++ /dev/null
@@ -1,362 +0,0 @@
-<?php
-/***********************************************************************
-
-  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)
-
-  This file is part of PunBB.
-
-  PunBB is free software; you can redistribute it and/or modify it
-  under the terms of the GNU General Public License as published
-  by the Free Software Foundation; either version 2 of the License,
-  or (at your option) any later version.
-
-  PunBB is distributed in the hope that it will be useful, but
-  WITHOUT ANY WARRANTY; without even the implied warranty of
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-  GNU General Public License for more details.
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-  MA  02111-1307  USA
-
-************************************************************************/
-
-
-// Tell header.php to use the admin template
-define('PUN_ADMIN_CONSOLE', 1);
-
-define('PUN_ROOT', './');
-require PUN_ROOT.'include/common.php';
-require PUN_ROOT.'include/common_admin.php';
-
-
-if ($pun_user['g_id'] > PUN_MOD || ($pun_user['g_id'] == PUN_MOD && $pun_config['p_mod_ban_users'] == '0'))
-       message($lang_common['No permission']);
-
-
-// Add/edit a ban (stage 1)
-if (isset($_REQUEST['add_ban']) || isset($_GET['edit_ban']))
-{
-       if (isset($_GET['add_ban']) || isset($_POST['add_ban']))
-       {
-               // If the id of the user to ban was provided through GET (a link from profile.php)
-               if (isset($_GET['add_ban']))
-               {
-                       $add_ban = intval($_GET['add_ban']);
-                       if ($add_ban < 2)
-                               message($lang_common['Bad request']);
-
-                       $user_id = $add_ban;
-
-                       $result = $db->query('SELECT group_id, username, email FROM '.$db->prefix.'users WHERE id='.$user_id) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());
-                       if ($db->num_rows($result))
-                               list($group_id, $ban_user, $ban_email) = $db->fetch_row($result);
-                       else
-                               message('Aucun utilisateur enregistré sous cet identifiant (ID).');
-               }
-               else    // Otherwise the username is in POST
-               {
-                       $ban_user = trim($_POST['new_ban_user']);
-
-                       if ($ban_user != '')
-                       {
-                               $result = $db->query('SELECT id, group_id, username, email FROM '.$db->prefix.'users WHERE username=\''.$db->escape($ban_user).'\' AND id>1') or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());
-                               if ($db->num_rows($result))
-                                       list($user_id, $group_id, $ban_user, $ban_email) = $db->fetch_row($result);
-                               else
-                                       message('Aucun utilisateur enregistré sous ce nom d\'utilisateur. Si vous souhaitez ajouter un bannissement qui ne soit pas lié à un nom d\'utilisateur particulier, laissez la case vide.');
-                       }
-               }
-
-               // Make sure we're not banning an admin
-               if (isset($group_id) && $group_id == PUN_ADMIN)
-                       message('L\'utilisateur '.pun_htmlspecialchars($ban_user).' est un administrateur, il ne peut être bannis. Si vous souhaitez bannir un administrateur, vous devez d\'abord le rétrograder soit modérateur soit utilisateur.');
-
-               // If we have a $user_id, we can try to find the last known IP of that user
-               if (isset($user_id))
-               {
-                       $result = $db->query('SELECT poster_ip FROM '.$db->prefix.'posts WHERE poster_id='.$user_id.' ORDER BY posted DESC LIMIT 1') or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());
-                       $ban_ip = ($db->num_rows($result)) ? $db->result($result) : '';
-               }
-
-               $mode = 'add';
-       }
-       else    // We are editing a ban
-       {
-               $ban_id = intval($_GET['edit_ban']);
-               if ($ban_id < 1)
-                       message($lang_common['Bad request']);
-
-               $result = $db->query('SELECT username, ip, email, message, expire FROM '.$db->prefix.'bans WHERE id='.$ban_id) or error('Unable to fetch ban info', __FILE__, __LINE__, $db->error());
-               if ($db->num_rows($result))
-                       list($ban_user, $ban_ip, $ban_email, $ban_message, $ban_expire) = $db->fetch_row($result);
-               else
-                       message($lang_common['Bad request']);
-
-               $ban_expire = ($ban_expire != '') ? date('Y-m-d', $ban_expire) : '';
-
-               $mode = 'edit';
-       }
-
-       $page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Bannissements';
-       $focus_element = array('bans2', 'ban_user');
-       require PUN_ROOT.'header.php';
-
-       generate_admin_menu('bans');
-
-
-?>
-       <div class="blockform">
-               <h2><span>Réglages de bannissement avancés</span></h2>
-               <div class="box">
-                       <form id="bans2" method="post" action="admin_bans.php">
-                               <div class="inform">
-                               <input type="hidden" name="mode" value="<?php echo $mode ?>" />
-<?php if ($mode == 'edit'): ?>                         <input type="hidden" name="ban_id" value="<?php echo $ban_id ?>" />
-<?php endif; ?>                                <fieldset>
-                                               <legend>Bannissement supplémentaire avec <acronym title="Internet Protocol" lang="en">IP</acronym> est adresse e-mail</legend>
-                                               <div class="infldset">
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row">Nom d'utilisateur</th>
-                                                                       <td>
-                                                                               <input type="text" name="ban_user" size="25" maxlength="25" value="<?php if (isset($ban_user)) echo pun_htmlspecialchars($ban_user); ?>" tabindex="1" />
-                                                                               <span>Le nom d'utilisateur à bannir.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Adresses <acronym title="Internet Protocol" lang="en">IP</acronym></th>
-                                                                       <td>
-                                                                               <input type="text" name="ban_ip" size="45" maxlength="255" value="<?php if (isset($ban_ip)) echo $ban_ip; ?>" tabindex="2" />
-                                                                               <span>Une adresse <acronym title="Internet Protocol" lang="en">IP</acronym> ou une plage d'adresses <acronym title="Internet Protocol" lang="en">IP</acronym> que vous souhaitez bannir (<abbr title="exemple">ex.</abbr> 150.11.110.1 ou 150.11.110). Séparez les adresses par des espaces. Si une adresse <acronym title="Internet Protocol" lang="en">IP</acronym> apparaît déjà, il s'agit de la dernière adresse IP connue de l'utilisateur dans la base de données.<?php if ($ban_user != '' && isset($user_id)) echo ' <a href="admin_users.php?ip_stats='.$user_id.'">Cliquez ici</a> pour voir les statistiques <acronym title="Internet Protocol" lang="en">IP</acronym> de cet utilisateur.' ?></span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">E-mail/domaine</th>
-                                                                       <td>
-                                                                               <input type="text" name="ban_email" size="40" maxlength="50" value="<?php if (isset($ban_email)) echo strtolower($ban_email); ?>" tabindex="3" />
-                                                                               <span>L'adresse e-mail ou le domaine e-mail que vous souhaitez bannir (<abbr title="exemple">ex.</abbr> utilisateur@domaine.com ou domaine.com). Pour plus d'informations, voir "Autoriser les adresses e-mail bannies" à la page des Permissions.</span>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                                       <p class="topspace"><strong class="warntext">Vous devez êtres très vigilant lorsque vous bannissez une plage d'<acronym title="Internet Protocol" lang="en">IP</acronym> car il y a fort probablement plusieurs utilisateurs qui correspondent à la même <acronym title="Internet Protocol" lang="en">IP</acronym> partielle.</strong></p>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Message et échéance d'interdiction</legend>
-                                               <div class="infldset">
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row">Message d'interdiction</th>
-                                                                       <td>
-                                                                               <input type="text" name="ban_message" size="50" maxlength="255" value="<?php if (isset($ban_message)) echo pun_htmlspecialchars($ban_message); ?>" tabindex="4" />
-                                                                               <span>Le  message qui sera affiché à l'utilisateur banni lorsqu'il visitera les forums.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Échéance d'interdiction</th>
-                                                                       <td>
-                                                                               <input type="text" name="ban_expire" size="17" maxlength="10" value="<?php if (isset($ban_expire)) echo $ban_expire; ?>" tabindex="5" />
-                                                                               <span>La date à laquelle ce bannissement sera automatiquement supprimé (format: AAAA-MM-JJ). Pour supprimer manuellement, laissez ce champ vide.</span>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <p class="submitend"><input type="submit" name="add_edit_ban" value=" Enregistrer " tabindex="6" /></p>
-                       </form>
-               </div>
-       </div>
-       <div class="clearer"></div>
-</div>
-<?php
-
-       require PUN_ROOT.'footer.php';
-}
-
-
-// Add/edit a ban (stage 2)
-else if (isset($_POST['add_edit_ban']))
-{
-       confirm_referrer('admin_bans.php');
-
-       $ban_user = trim($_POST['ban_user']);
-       $ban_ip = trim($_POST['ban_ip']);
-       $ban_email = strtolower(trim($_POST['ban_email']));
-       $ban_message = trim($_POST['ban_message']);
-       $ban_expire = trim($_POST['ban_expire']);
-
-       if ($ban_user == '' && $ban_ip == '' && $ban_email == '')
-               message('Vous devez saisir au moins soit un nom d\'utilisateur, soit une adresse <acronym title="Internet Protocol" lang="en">IP</acronym> ou une adresse e-mail.');
-       else if (strtolower($ban_user) == 'guest' || strtolower($ban_user) == 'invité')
-               message('Vous ne pouvez pas bannir l\'utilisateur "invité"');
-       
-       // Validate IP/IP range (it's overkill, I know)
-       if ($ban_ip != '')
-       {
-               $ban_ip = preg_replace('/[\s]{2,}/', ' ', $ban_ip);
-               $addresses = explode(' ', $ban_ip);
-               $addresses = array_map('trim', $addresses);
-
-               for ($i = 0; $i < count($addresses); ++$i)
-               {
-                       $octets = explode('.', $addresses[$i]);
-
-                       for ($c = 0; $c < count($octets); ++$c)
-                       {
-                               $octets[$c] = (strlen($octets[$c]) > 1) ? ltrim($octets[$c], "0") : $octets[$c];
-
-                               if ($c > 3 || preg_match('/[^0-9]/', $octets[$c]) || intval($octets[$c]) > 255)
-                                       message('Vous avez saisi une <acronym title="Internet Protocol" lang="en">IP</acronym>/plage d\'<acronym title="Internet Protocol" lang="en">IP</acronym> incorrecte.');
-                       }
-
-                       $cur_address = implode('.', $octets);
-                       $addresses[$i] = $cur_address;
-               }
-
-               $ban_ip = implode(' ', $addresses);
-       }
-
-       require PUN_ROOT.'include/email.php';
-       if ($ban_email != '' && !is_valid_email($ban_email))
-       {
-               if (!preg_match('/^[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/', $ban_email))
-                       message('L\'adresse e-mail (<abbr title="exemple">ex.</abbr> utilisateur@domaine.com) ou le domaine d\'adresse e-mail (<abbr title="exemple">ex.</abbr> domaine.com) que vous avez saisi est incorrect.');
-       }
-
-       if ($ban_expire != '' && $ban_expire != 'Never')
-       {
-               $ban_expire = strtotime($ban_expire);
-
-               if ($ban_expire == -1 || $ban_expire <= time())
-                       message('Vous avez saisi une date d\'échéance incorrecte. Le format doit être AAAA-MM-JJ et la date doit-être d\'au moins un jour dans le futur.');
-       }
-       else
-               $ban_expire = 'NULL';
-
-       $ban_user = ($ban_user != '') ? '\''.$db->escape($ban_user).'\'' : 'NULL';
-       $ban_ip = ($ban_ip != '') ? '\''.$db->escape($ban_ip).'\'' : 'NULL';
-       $ban_email = ($ban_email != '') ? '\''.$db->escape($ban_email).'\'' : 'NULL';
-       $ban_message = ($ban_message != '') ? '\''.$db->escape($ban_message).'\'' : 'NULL';
-
-       if ($_POST['mode'] == 'add')
-               $db->query('INSERT INTO '.$db->prefix.'bans (username, ip, email, message, expire) VALUES('.$ban_user.', '.$ban_ip.', '.$ban_email.', '.$ban_message.', '.$ban_expire.')') or error('Unable to add ban', __FILE__, __LINE__, $db->error());
-       else
-               $db->query('UPDATE '.$db->prefix.'bans SET username='.$ban_user.', ip='.$ban_ip.', email='.$ban_email.', message='.$ban_message.', expire='.$ban_expire.' WHERE id='.intval($_POST['ban_id'])) or error('Unable to update ban', __FILE__, __LINE__, $db->error());
-
-       // Regenerate the bans cache
-       require_once PUN_ROOT.'include/cache.php';
-       generate_bans_cache();
-
-       redirect('admin_bans.php', 'Bannissement '.(($_POST['mode'] == 'edit') ? 'modifié' : 'ajouté').'. Redirection ...');
-}
-
-
-// Remove a ban
-else if (isset($_GET['del_ban']))
-{
-       confirm_referrer('admin_bans.php');
-
-       $ban_id = intval($_GET['del_ban']);
-       if ($ban_id < 1)
-               message($lang_common['Bad request']);
-
-       $db->query('DELETE FROM '.$db->prefix.'bans WHERE id='.$ban_id) or error('Unable to delete ban', __FILE__, __LINE__, $db->error());
-
-       // Regenerate the bans cache
-       require_once PUN_ROOT.'include/cache.php';
-       generate_bans_cache();
-
-       redirect('admin_bans.php', 'Bannissement supprimé. Redirection ...');
-}
-
-
-$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Bannissement';
-$focus_element = array('bans', 'new_ban_user');
-require PUN_ROOT.'header.php';
-
-generate_admin_menu('bans');
-
-?>
-       <div class="blockform">
-               <h2><span>Nouveau bannissement</span></h2>
-               <div class="box">
-                       <form id="bans" method="post" action="admin_bans.php?action=more">
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Ajouter un bannissement</legend>
-                                               <div class="infldset">
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row">Nom d'utilisateur<div><input type="submit" name="add_ban" value=" Ajouter " tabindex="2" /></div></th>
-                                                                       <td>
-                                                                               <input type="text" name="new_ban_user" size="25" maxlength="25" tabindex="1" />
-                                                                               <span>Le nom d'utilisateur à bannir (insensible à la casse). La page suivante vous permettra d'entrer une adresse <acronym title="Internet Protocol" lang="en">IP</acronym> et/ou une adresse e-mail de votre choix. Si vous souhaitez bannir une adresse <acronym title="Internet Protocol" lang="en">IP</acronym>, une plage d'adresses <acronym title="Internet Protocol" lang="en">IP</acronym> ou une adresse e-mail, laissez simplement ce champ vide.</span>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                       </form>
-               </div>
-
-               <h2 class="block2"><span>Bannissements actuels</span></h2>
-               <div class="box">
-                       <div class="fakeform">
-<?php
-
-$result = $db->query('SELECT id, username, ip, email, message, expire FROM '.$db->prefix.'bans ORDER BY id') or error('Unable to fetch ban list', __FILE__, __LINE__, $db->error());
-if ($db->num_rows($result))
-{
-       while ($cur_ban = $db->fetch_assoc($result))
-       {
-               $expire = format_time($cur_ban['expire'], true);
-
-?>
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Date d'échéance&nbsp;: <?php echo $expire ?></legend>
-                                               <div class="infldset">
-                                                       <table cellspacing="0">
-<?php if ($cur_ban['username'] != ''): ?>                                                              <tr>
-                                                                       <th>Nom d'utilisateur</th>
-                                                                       <td><?php echo pun_htmlspecialchars($cur_ban['username']) ?></td>
-                                                               </tr>
-<?php endif; ?><?php if ($cur_ban['email'] != ''): ?>                                                          <tr>
-                                                                       <th>E-mail</th>
-                                                                       <td><?php echo $cur_ban['email'] ?></td>
-                                                               </tr>
-<?php endif; ?><?php if ($cur_ban['ip'] != ''): ?>                                                             <tr>
-                                                                       <th><acronym title="Internet Protocol" lang="en">IP</acronym>/plage d'<acronym title="Internet Protocol" lang="en">IP</acronym></th>
-                                                                       <td><?php echo $cur_ban['ip'] ?></td>
-                                                               </tr>
-<?php endif; ?><?php if ($cur_ban['message'] != ''): ?>                                                                <tr>
-                                                                       <th>Motif</th>
-                                                                       <td><?php echo pun_htmlspecialchars($cur_ban['message']) ?></td>
-                                                               </tr>
-<?php endif; ?>                                                        </table>
-                                                       <p class="linkactions"><a href="admin_bans.php?edit_ban=<?php echo $cur_ban['id'] ?>">Modifier</a> - <a href="admin_bans.php?del_ban=<?php echo $cur_ban['id'] ?>">Supprimer</a></p>
-                                               </div>
-                                       </fieldset>
-                               </div>
-<?php
-
-       }
-}
-else
-       echo "\t\t\t\t".'<p>Aucun bannissement à lister.</p>'."\n";
-
-?>
-                       </div>
-               </div>
-       </div>
-       <div class="clearer"></div>
-</div>
-<?php
-
-require PUN_ROOT.'footer.php';
diff --git a/fluxbb/admin_categories.php b/fluxbb/admin_categories.php
deleted file mode 100644 (file)
index 508bf0e..0000000
+++ /dev/null
@@ -1,258 +0,0 @@
-<?php
-/***********************************************************************
-
-  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)
-
-  This file is part of PunBB.
-
-  PunBB is free software; you can redistribute it and/or modify it
-  under the terms of the GNU General Public License as published
-  by the Free Software Foundation; either version 2 of the License,
-  or (at your option) any later version.
-
-  PunBB is distributed in the hope that it will be useful, but
-  WITHOUT ANY WARRANTY; without even the implied warranty of
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-  GNU General Public License for more details.
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-  MA  02111-1307  USA
-
-************************************************************************/
-
-
-// Tell header.php to use the admin template
-define('PUN_ADMIN_CONSOLE', 1);
-
-define('PUN_ROOT', './');
-require PUN_ROOT.'include/common.php';
-require PUN_ROOT.'include/common_admin.php';
-
-
-if ($pun_user['g_id'] > PUN_ADMIN)
-       message($lang_common['No permission']);
-
-
-// Add a new category
-if (isset($_POST['add_cat']))
-{
-       confirm_referrer('admin_categories.php');
-
-       $new_cat_name = trim($_POST['new_cat_name']);
-       if ($new_cat_name == '')
-               message('Vous devez saisir un nom pour la nouvelle catégorie.');
-
-       $db->query('INSERT INTO '.$db->prefix.'categories (cat_name) VALUES(\''.$db->escape($new_cat_name).'\')') or error('Unable to create category', __FILE__, __LINE__, $db->error());
-
-       redirect('admin_categories.php', 'Catégorie ajoutée. Redirection ...');
-}
-
-
-// Delete a category
-else if (isset($_POST['del_cat']) || isset($_POST['del_cat_comply']))
-{
-       confirm_referrer('admin_categories.php');
-
-       $cat_to_delete = intval($_POST['cat_to_delete']);
-       if ($cat_to_delete < 1)
-               message($lang_common['Bad request']);
-
-       if (isset($_POST['del_cat_comply']))    // Delete a category with all forums and posts
-       {
-               @set_time_limit(0);
-
-               $result = $db->query('SELECT id FROM '.$db->prefix.'forums WHERE cat_id='.$cat_to_delete) or error('Unable to fetch forum list', __FILE__, __LINE__, $db->error());
-               $num_forums = $db->num_rows($result);
-
-               for ($i = 0; $i < $num_forums; ++$i)
-               {
-                       $cur_forum = $db->result($result, $i);
-
-                       // Prune all posts and topics
-                       prune($cur_forum, 1, -1);
-
-                       // Delete the forum
-                       $db->query('DELETE FROM '.$db->prefix.'forums WHERE id='.$cur_forum) or error('Unable to delete forum', __FILE__, __LINE__, $db->error());
-               }
-
-               // Locate any "orphaned redirect topics" and delete them
-               $result = $db->query('SELECT t1.id FROM '.$db->prefix.'topics AS t1 LEFT JOIN '.$db->prefix.'topics AS t2 ON t1.moved_to=t2.id WHERE t2.id IS NULL AND t1.moved_to IS NOT NULL') or error('Unable to fetch redirect topics', __FILE__, __LINE__, $db->error());
-               $num_orphans = $db->num_rows($result);
-
-               if ($num_orphans)
-               {
-                       for ($i = 0; $i < $num_orphans; ++$i)
-                               $orphans[] = $db->result($result, $i);
-
-                       $db->query('DELETE FROM '.$db->prefix.'topics WHERE id IN('.implode(',', $orphans).')') or error('Unable to delete redirect topics', __FILE__, __LINE__, $db->error());
-               }
-
-               // Delete the category
-               $db->query('DELETE FROM '.$db->prefix.'categories WHERE id='.$cat_to_delete) or error('Unable to delete category', __FILE__, __LINE__, $db->error());
-
-               // Regenerate the quickjump cache
-               require_once PUN_ROOT.'include/cache.php';
-               generate_quickjump_cache();
-
-               redirect('admin_categories.php', 'Catégorie supprimée. Redirection ...');
-       }
-       else    // If the user hasn't comfirmed the delete
-       {
-               $result = $db->query('SELECT cat_name FROM '.$db->prefix.'categories WHERE id='.$cat_to_delete) or error('Unable to fetch category info', __FILE__, __LINE__, $db->error());
-               $cat_name = $db->result($result);
-
-               $page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Catégories';
-               require PUN_ROOT.'header.php';
-
-               generate_admin_menu('categories');
-
-?>
-       <div class="blockform">
-               <h2><span>Supprimer une catégorie</span></h2>
-               <div class="box">
-                       <form method="post" action="admin_categories.php">
-                               <div class="inform">
-                               <input type="hidden" name="cat_to_delete" value="<?php echo $cat_to_delete ?>" />
-                                       <fieldset>
-                                               <legend>Confirmez la suppression de la catégorie</legend>
-                                               <div class="infldset">
-                                                       <p>Êtes vous sûr de vouloir supprimer la catégorie "<?php echo pun_htmlspecialchars($cat_name) ?>"&nbsp;?</p>
-                                                       <p>ATTENTION ! Supprimer cette catégorie supprimera en même temps tous les forums et messages (s'il y en a) présents dans cette catégorie&nbsp;!</p>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <p><input type="submit" name="del_cat_comply" value=" Supprimer " /><a href="javascript:history.go(-1)">Retour</a></p>
-                       </form>
-               </div>
-       </div>
-       <div class="clearer"></div>
-</div>
-<?php
-
-               require PUN_ROOT.'footer.php';
-       }
-}
-
-
-else if (isset($_POST['update']))      // Change position and name of the categories
-{
-       confirm_referrer('admin_categories.php');
-
-       $cat_order = $_POST['cat_order'];
-       $cat_name = $_POST['cat_name'];
-
-       $result = $db->query('SELECT id, disp_position FROM '.$db->prefix.'categories ORDER BY disp_position') or error('Unable to fetch category list', __FILE__, __LINE__, $db->error());
-       $num_cats = $db->num_rows($result);
-
-       for ($i = 0; $i < $num_cats; ++$i)
-       {
-               if ($cat_name[$i] == '')
-                       message('Vous devez saisir un nom de catégorie.');
-
-               if (!@preg_match('#^\d+$#', $cat_order[$i]))
-                       message('La position doit être un nombre entier.');
-
-               list($cat_id, $position) = $db->fetch_row($result);
-
-               $db->query('UPDATE '.$db->prefix.'categories SET cat_name=\''.$db->escape($cat_name[$i]).'\', disp_position='.$cat_order[$i].' WHERE id='.$cat_id) or error('Unable to update category', __FILE__, __LINE__, $db->error());
-       }
-
-       // Regenerate the quickjump cache
-       require_once PUN_ROOT.'include/cache.php';
-       generate_quickjump_cache();
-
-       redirect('admin_categories.php', 'Catégories modifiées. Redirection ...');
-}
-
-
-// Generate an array with all categories
-$result = $db->query('SELECT id, cat_name, disp_position FROM '.$db->prefix.'categories ORDER BY disp_position') or error('Unable to fetch category list', __FILE__, __LINE__, $db->error());
-$num_cats = $db->num_rows($result);
-
-for ($i = 0; $i < $num_cats; ++$i)
-       $cat_list[] = $db->fetch_row($result);
-
-
-$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Catégories';
-require PUN_ROOT.'header.php';
-
-generate_admin_menu('categories');
-
-?>
-       <div class="blockform">
-               <h2><span>Ajouter/supprimer/modifier les catégories</span></h2>
-               <div class="box">
-               <form method="post" action="admin_categories.php?action=foo">
-                       <div class="inform">
-                               <fieldset>
-                                       <legend>Ajouter/supprimer une catégorie</legend>
-                                       <div class="infldset">
-                                               <table class="aligntop" cellspacing="0">
-                                                       <tr>
-                                                               <th scope="row">Ajouter une catégorie<div><input type="submit" name="add_cat" value=" Ajouter " tabindex="2" /></div></th>
-                                                               <td>
-                                                                       <input type="text" name="new_cat_name" size="35" maxlength="80" tabindex="1" />
-                                                                       <span>Saisissez le nom de la catégorie que vous souhaitez ajouter. Vous pourrez modifier ce nom plus tard (voir ci-dessous). Pour ajouter des forums à une nouvelle catégorie, allez à la page de gestion des <a href="admin_forums.php">Forums</a>.</span>
-                                                               </td>
-                                                       </tr>
-<?php if ($num_cats): ?>                                                       <tr>
-                                                               <th scope="row">Supprimer une catégorie<div><input type="submit" name="del_cat" value=" Supprimer " tabindex="4" /></div></th>
-                                                               <td>
-                                                                       <select name="cat_to_delete" tabindex="3">
-<?php
-
-       while (list(, list($cat_id, $cat_name, ,)) = @each($cat_list))
-               echo "\t\t\t\t\t\t\t\t\t\t".'<option value="'.$cat_id.'">'.pun_htmlspecialchars($cat_name).'</option>'."\n";
-
-?>
-                                                                       </select>
-                                                                       <span>Choisissez le nom de la catégorie que vous souhaitez supprimer. Vous serez invités à confirmer votre choix de catégorie à supprimer avant qu'elle ne soit effectivement supprimée.</span>
-                                                               </td>
-                                                       </tr>
-<?php endif; ?>                                                </table>
-                                       </div>
-                               </fieldset>
-                       </div>
-<?php if ($num_cats): ?>                       <div class="inform">
-                               <fieldset>
-                                       <legend>Modifier les catégories</legend>
-                                       <div class="infldset">
-                                               <table id="categoryedit" cellspacing="0" >
-                                               <thead>
-                                                       <tr>
-                                                               <th class="tcl" scope="col">Nom</th>
-                                                               <th scope="col">Position</th>
-                                                               <th>&nbsp;</th>
-                                                       </tr>
-                                               </thead>
-                                               <tbody>
-<?php
-
-       @reset($cat_list);
-       for ($i = 0; $i < $num_cats; ++$i)
-       {
-               list(, list($cat_id, $cat_name, $position)) = @each($cat_list);
-
-?>
-                                                       <tr><td><input type="text" name="cat_name[<?php echo $i ?>]" value="<?php echo pun_htmlspecialchars($cat_name) ?>" size="35" maxlength="80" /></td><td><input type="text" name="cat_order[<?php echo $i ?>]" value="<?php echo $position ?>" size="3" maxlength="3" /></td><td>&nbsp;</td></tr>
-<?php
-
-       }
-
-?>
-                                               </tbody>
-                                               </table>
-                                               <div class="fsetsubmit"><input type="submit" name="update" value=" Modifier " /></div>
-                                       </div>
-                               </fieldset>
-                       </div>
-<?php endif; ?>                </form>
-               </div>
-       </div>
-       <div class="clearer"></div>
-</div>
-<?php
-
-require PUN_ROOT.'footer.php';
diff --git a/fluxbb/admin_censoring.php b/fluxbb/admin_censoring.php
deleted file mode 100644 (file)
index f9763ee..0000000
+++ /dev/null
@@ -1,167 +0,0 @@
-<?php
-/***********************************************************************
-
-  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)
-
-  This file is part of PunBB.
-
-  PunBB is free software; you can redistribute it and/or modify it
-  under the terms of the GNU General Public License as published
-  by the Free Software Foundation; either version 2 of the License,
-  or (at your option) any later version.
-
-  PunBB is distributed in the hope that it will be useful, but
-  WITHOUT ANY WARRANTY; without even the implied warranty of
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-  GNU General Public License for more details.
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-  MA  02111-1307  USA
-
-************************************************************************/
-
-
-// Tell header.php to use the admin template
-define('PUN_ADMIN_CONSOLE', 1);
-
-define('PUN_ROOT', './');
-require PUN_ROOT.'include/common.php';
-require PUN_ROOT.'include/common_admin.php';
-
-
-if ($pun_user['g_id'] > PUN_MOD)
-       message($lang_common['No permission']);
-
-
-// Add a censor word
-if (isset($_POST['add_word']))
-{
-       confirm_referrer('admin_censoring.php');
-
-       $search_for = trim($_POST['new_search_for']);
-       $replace_with = trim($_POST['new_replace_with']);
-
-       if ($search_for == '' || $replace_with == '')
-               message('Vous devez saisir à la fois un mot à censurer et un texte pour le remplacer.');
-
-       $db->query('INSERT INTO '.$db->prefix.'censoring (search_for, replace_with) VALUES (\''.$db->escape($search_for).'\', \''.$db->escape($replace_with).'\')') or error('Unable to add censor word', __FILE__, __LINE__, $db->error());
-
-       redirect('admin_censoring.php', 'Mot à censurer ajouté. Redirection ...');
-}
-
-
-// Update a censor word
-else if (isset($_POST['update']))
-{
-       confirm_referrer('admin_censoring.php');
-
-       $id = intval(key($_POST['update']));
-
-       $search_for = trim($_POST['search_for'][$id]);
-       $replace_with = trim($_POST['replace_with'][$id]);
-
-       if ($search_for == '' || $replace_with == '')
-               message('Vous devez saisir à la fois un mot à censurer et un texte pour le remplacer.');
-
-       $db->query('UPDATE '.$db->prefix.'censoring SET search_for=\''.$db->escape($search_for).'\', replace_with=\''.$db->escape($replace_with).'\' WHERE id='.$id) or error('Unable to update censor word', __FILE__, __LINE__, $db->error());
-
-       redirect('admin_censoring.php', 'Mot à censurer modifié. Redirection ...');
-}
-
-
-// Remove a censor word
-else if (isset($_POST['remove']))
-{
-       confirm_referrer('admin_censoring.php');
-
-       $id = intval(key($_POST['remove']));
-
-       $db->query('DELETE FROM '.$db->prefix.'censoring WHERE id='.$id) or error('Unable to delete censor word', __FILE__, __LINE__, $db->error());
-
-       redirect('admin_censoring.php', 'Mot à censurer supprimé. Redirection ...');
-}
-
-
-$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Mots à censurer';
-$focus_element = array('censoring', 'new_search_for');
-require PUN_ROOT.'header.php';
-
-generate_admin_menu('censoring');
-
-?>
-       <div class="blockform">
-               <h2><span>Mots à censurer</span></h2>
-               <div class="box">
-                       <form id="censoring" method="post" action="admin_censoring.php?action=foo">
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Ajouter un mot à censurer</legend>
-                                               <div class="infldset">
-                                                       <p>Saisissez le mot que vous voulez censurer ainsi que le texte qui le remplacera. Les caractères joker sont permis  (ex: *fleur* vérifiera «&nbsp;fleurette&nbsp;» et «&nbsp;gonfleur&nbsp;»). Les mots censurés affectent également les noms d'utilisateurs. Un nouvel utilisateur ne pourrait s'inscrire avec un nom d'utilisateur qui contiendrait un des mots censurés. La recherche est insensible à la casse. <strong>Les mots censurés doivent êtres activés à la page <a href="admin_options.php#censoring">Options</a> pour qu'ils aient un quelconque effet.</strong></p>
-                                                       <table  cellspacing="0">
-                                                       <thead>
-                                                               <tr>
-                                                                       <th class="tcl" scope="col">Mot à censurer</th>
-                                                                       <th class="tc2" scope="col">Texte de remplacement</th>
-                                                                       <th class="hidehead" scope="col">Action</th>
-                                                               </tr>
-                                                       </thead>
-                                                       <tbody>
-                                                               <tr>
-                                                                       <td><input type="text" name="new_search_for" size="24" maxlength="60" tabindex="1" /></td>
-                                                                       <td><input type="text" name="new_replace_with" size="24" maxlength="60" tabindex="2" /></td>
-                                                                       <td><input type="submit" name="add_word" value=" Ajouter " tabindex="3" /></td>
-                                                               </tr>
-                                                       </tbody>
-                                                       </table>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Modifier/supprimer des mots à censurer</legend>
-                                               <div class="infldset">
-<?php
-
-$result = $db->query('SELECT id, search_for, replace_with FROM '.$db->prefix.'censoring ORDER BY id') or error('Unable to fetch censor word list', __FILE__, __LINE__, $db->error());
-if ($db->num_rows($result))
-{
-
-?>
-                                                       <table cellspacing="0" >
-                                                       <thead>
-                                                               <tr>
-                                                                       <th class="tcl" scope="col">Mots à censurer</th>
-                                                                       <th class="tc2" scope="col">Texte de remplacement</th>
-                                                                       <th class="hidehead" scope="col">Actions</th>
-                                                               </tr>
-                                                       </thead>
-                                                       <tbody>
-<?php
-
-       while ($cur_word = $db->fetch_assoc($result))
-               echo "\t\t\t\t\t\t\t\t".'<tr><td><input type="text" name="search_for['.$cur_word['id'].']" value="'.pun_htmlspecialchars($cur_word['search_for']).'" size="24" maxlength="60" /></td><td><input type="text" name="replace_with['.$cur_word['id'].']" value="'.pun_htmlspecialchars($cur_word['replace_with']).'" size="24" maxlength="60" /></td><td><input type="submit" name="update['.$cur_word['id'].']" value=" Modifier " />&nbsp;<input type="submit" name="remove['.$cur_word['id'].']" value=" Supprimer " /></td></tr>'."\n";
-
-?>
-                                                       </tbody>
-                                                       </table>
-<?php
-
-}
-else
-       echo "\t\t\t\t\t\t\t".'<p>Aucun mot à censurer dans la liste.</p>'."\n";
-
-?>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                       </form>
-               </div>
-       </div>
-       <div class="clearer"></div>
-</div>
-<?php
-
-require PUN_ROOT.'footer.php';
diff --git a/fluxbb/admin_forums.php b/fluxbb/admin_forums.php
deleted file mode 100644 (file)
index 0bb6beb..0000000
+++ /dev/null
@@ -1,472 +0,0 @@
-<?php
-/***********************************************************************
-
-  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)
-
-  This file is part of PunBB.
-
-  PunBB is free software; you can redistribute it and/or modify it
-  under the terms of the GNU General Public License as published
-  by the Free Software Foundation; either version 2 of the License,
-  or (at your option) any later version.
-
-  PunBB is distributed in the hope that it will be useful, but
-  WITHOUT ANY WARRANTY; without even the implied warranty of
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-  GNU General Public License for more details.
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-  MA  02111-1307  USA
-
-************************************************************************/
-
-
-// Tell header.php to use the admin template
-define('PUN_ADMIN_CONSOLE', 1);
-
-define('PUN_ROOT', './');
-require PUN_ROOT.'include/common.php';
-require PUN_ROOT.'include/common_admin.php';
-
-
-if ($pun_user['g_id'] > PUN_ADMIN)
-       message($lang_common['No permission']);
-
-
-// Add a "default" forum
-if (isset($_POST['add_forum']))
-{
-       confirm_referrer('admin_forums.php');
-
-       $add_to_cat = intval($_POST['add_to_cat']);
-       if ($add_to_cat < 1)
-               message($lang_common['Bad request']);
-
-       $db->query('INSERT INTO '.$db->prefix.'forums (cat_id) VALUES('.$add_to_cat.')') or error('Unable to create forum', __FILE__, __LINE__, $db->error());
-
-       // Regenerate the quickjump cache
-       require_once PUN_ROOT.'include/cache.php';
-       generate_quickjump_cache();
-
-       redirect('admin_forums.php', 'Forum ajouté. Redirection ...');
-}
-
-
-// Delete a forum
-else if (isset($_GET['del_forum']))
-{
-       confirm_referrer('admin_forums.php');
-
-       $forum_id = intval($_GET['del_forum']);
-       if ($forum_id < 1)
-               message($lang_common['Bad request']);
-
-       if (isset($_POST['del_forum_comply']))  // Delete a forum with all posts
-       {
-               @set_time_limit(0);
-
-               // Prune all posts and topics
-               prune($forum_id, 1, -1);
-
-               // Locate any "orphaned redirect topics" and delete them
-               $result = $db->query('SELECT t1.id FROM '.$db->prefix.'topics AS t1 LEFT JOIN '.$db->prefix.'topics AS t2 ON t1.moved_to=t2.id WHERE t2.id IS NULL AND t1.moved_to IS NOT NULL') or error('Unable to fetch redirect topics', __FILE__, __LINE__, $db->error());
-               $num_orphans = $db->num_rows($result);
-
-               if ($num_orphans)
-               {
-                       for ($i = 0; $i < $num_orphans; ++$i)
-                               $orphans[] = $db->result($result, $i);
-
-                       $db->query('DELETE FROM '.$db->prefix.'topics WHERE id IN('.implode(',', $orphans).')') or error('Unable to delete redirect topics', __FILE__, __LINE__, $db->error());
-               }
-
-               // Delete the forum and any forum specific group permissions
-               $db->query('DELETE FROM '.$db->prefix.'forums WHERE id='.$forum_id) or error('Unable to delete forum', __FILE__, __LINE__, $db->error());
-               $db->query('DELETE FROM '.$db->prefix.'forum_perms WHERE forum_id='.$forum_id) or error('Unable to delete group forum permissions', __FILE__, __LINE__, $db->error());
-
-               // Regenerate the quickjump cache
-               require_once PUN_ROOT.'include/cache.php';
-               generate_quickjump_cache();
-
-               redirect('admin_forums.php', 'Forum supprimé. Redirection ...');
-       }
-       else    // If the user hasn't confirmed the delete
-       {
-               $result = $db->query('SELECT forum_name FROM '.$db->prefix.'forums WHERE id='.$forum_id) or error('Unable to fetch forum info', __FILE__, __LINE__, $db->error());
-               $forum_name = pun_htmlspecialchars($db->result($result));
-
-
-               $page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Forums';
-               require PUN_ROOT.'header.php';
-
-               generate_admin_menu('forums');
-
-?>
-       <div class="blockform">
-               <h2><span>Confirmez la suppresion du forum</span></h2>
-               <div class="box">
-                       <form method="post" action="admin_forums.php?del_forum=<?php echo $forum_id ?>">
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Important ! Lire attentivement avant de procéder à la suppression.</legend>
-                                               <div class="infldset">
-                                                       <p>Êtes vous sûr de vouloir supprimer le forum "<?php echo $forum_name ?>"&nbsp;?</p>
-                                                       <p>ATTENTION ! Supprimer un forum effacera tous les messages (s'il y en a) présent dans ce forum&nbsp;!</p>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <p><input type="submit" name="del_forum_comply" value=" Supprimer " /><a href="javascript:history.go(-1)">Retour</a></p>
-                       </form>
-               </div>
-       </div>
-       <div class="clearer"></div>
-</div>
-<?php
-
-               require PUN_ROOT.'footer.php';
-       }
-}
-
-
-// Update forum positions
-else if (isset($_POST['update_positions']))
-{
-       confirm_referrer('admin_forums.php');
-
-       while (list($forum_id, $disp_position) = @each($_POST['position']))
-       {
-               if (!@preg_match('#^\d+$#', $disp_position))
-                       message('La position doit être un nombre entier.');
-
-               $db->query('UPDATE '.$db->prefix.'forums SET disp_position='.$disp_position.' WHERE id='.intval($forum_id)) or error('Unable to update forum', __FILE__, __LINE__, $db->error());
-       }
-
-       // Regenerate the quickjump cache
-       require_once PUN_ROOT.'include/cache.php';
-       generate_quickjump_cache();
-
-       redirect('admin_forums.php', 'Forums modifiés. Redirection ...');
-}
-
-
-else if (isset($_GET['edit_forum']))
-{
-       $forum_id = intval($_GET['edit_forum']);
-       if ($forum_id < 1)
-               message($lang_common['Bad request']);
-
-       // Update group permissions for $forum_id
-       if (isset($_POST['save']))
-       {
-               confirm_referrer('admin_forums.php');
-
-               // Start with the forum details
-               $forum_name = trim($_POST['forum_name']);
-               $forum_desc = pun_linebreaks(trim($_POST['forum_desc']));
-               $cat_id = intval($_POST['cat_id']);
-               $sort_by = intval($_POST['sort_by']);
-               $redirect_url = isset($_POST['redirect_url']) ? trim($_POST['redirect_url']) : null;
-
-               if ($forum_name == '')
-                       message('Vous devez saisir un nom de forum.');
-
-               if ($cat_id < 1)
-                       message($lang_common['Bad request']);
-
-               $forum_desc = ($forum_desc != '') ? '\''.$db->escape($forum_desc).'\'' : 'NULL';
-               $redirect_url = ($redirect_url != '') ? '\''.$db->escape($redirect_url).'\'' : 'NULL';
-
-               $db->query('UPDATE '.$db->prefix.'forums SET forum_name=\''.$db->escape($forum_name).'\', forum_desc='.$forum_desc.', redirect_url='.$redirect_url.', sort_by='.$sort_by.', cat_id='.$cat_id.' WHERE id='.$forum_id) or error('Unable to update forum', __FILE__, __LINE__, $db->error());
-
-               // Now let's deal with the permissions
-               if (isset($_POST['read_forum_old']))
-               {
-                       $result = $db->query('SELECT g_id, g_read_board, g_post_replies, g_post_topics FROM '.$db->prefix.'groups WHERE g_id!='.PUN_ADMIN) or error('Unable to fetch user group list', __FILE__, __LINE__, $db->error());
-                       while ($cur_group = $db->fetch_assoc($result))
-                       {
-                               $read_forum_new = ($cur_group['g_read_board'] == '1') ? isset($_POST['read_forum_new'][$cur_group['g_id']]) ? '1' : '0' : intval($_POST['read_forum_old'][$cur_group['g_id']]);
-                               $post_replies_new = isset($_POST['post_replies_new'][$cur_group['g_id']]) ? '1' : '0';
-                               $post_topics_new = isset($_POST['post_topics_new'][$cur_group['g_id']]) ? '1' : '0';
-
-                               // Check if the new settings differ from the old
-                               if ($read_forum_new != $_POST['read_forum_old'][$cur_group['g_id']] || $post_replies_new != $_POST['post_replies_old'][$cur_group['g_id']] || $post_topics_new != $_POST['post_topics_old'][$cur_group['g_id']])
-                               {
-                                       // If the new settings are identical to the default settings for this group, delete it's row in forum_perms
-                                       if ($read_forum_new == '1' && $post_replies_new == $cur_group['g_post_replies'] && $post_topics_new == $cur_group['g_post_topics'])
-                                               $db->query('DELETE FROM '.$db->prefix.'forum_perms WHERE group_id='.$cur_group['g_id'].' AND forum_id='.$forum_id) or error('Unable to delete group forum permissions', __FILE__, __LINE__, $db->error());
-                                       else
-                                       {
-                                               // Run an UPDATE and see if it affected a row, if not, INSERT
-                                               $db->query('UPDATE '.$db->prefix.'forum_perms SET read_forum='.$read_forum_new.', post_replies='.$post_replies_new.', post_topics='.$post_topics_new.' WHERE group_id='.$cur_group['g_id'].' AND forum_id='.$forum_id) or error('Unable to insert group forum permissions', __FILE__, __LINE__, $db->error());
-                                               if (!$db->affected_rows())
-                                                       $db->query('INSERT INTO '.$db->prefix.'forum_perms (group_id, forum_id, read_forum, post_replies, post_topics) VALUES('.$cur_group['g_id'].', '.$forum_id.', '.$read_forum_new.', '.$post_replies_new.', '.$post_topics_new.')') or error('Unable to insert group forum permissions', __FILE__, __LINE__, $db->error());
-                                       }
-                               }
-                       }
-               }
-
-               // Regenerate the quickjump cache
-               require_once PUN_ROOT.'include/cache.php';
-               generate_quickjump_cache();
-
-               redirect('admin_forums.php', 'Forum modifié. Redirection ...');
-       }
-       else if (isset($_POST['revert_perms']))
-       {
-               confirm_referrer('admin_forums.php');
-
-               $db->query('DELETE FROM '.$db->prefix.'forum_perms WHERE forum_id='.$forum_id) or error('Unable to delete group forum permissions', __FILE__, __LINE__, $db->error());
-
-               // Regenerate the quickjump cache
-               require_once PUN_ROOT.'include/cache.php';
-               generate_quickjump_cache();
-
-               redirect('admin_forums.php?edit_forum='.$forum_id, 'Permissions remises à leurs valeurs par défaut. Redirection ...');
-       }
-
-
-       // Fetch forum info
-       $result = $db->query('SELECT id, forum_name, forum_desc, redirect_url, num_topics, sort_by, cat_id FROM '.$db->prefix.'forums WHERE id='.$forum_id) or error('Unable to fetch forum info', __FILE__, __LINE__, $db->error());
-       if (!$db->num_rows($result))
-               message($lang_common['Bad request']);
-
-       $cur_forum = $db->fetch_assoc($result);
-
-
-       $page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Forums';
-       require PUN_ROOT.'header.php';
-
-       generate_admin_menu('forums');
-
-?>
-       <div class="blockform">
-               <h2><span>Modifier forum</span></h2>
-               <div class="box">
-                       <form id="edit_forum" method="post" action="admin_forums.php?edit_forum=<?php echo $forum_id ?>">
-                               <p class="submittop"><input type="submit" name="save" value=" Enregistrer modifications " tabindex="6" /></p>
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Modifier les détails du forum</legend>
-                                               <div class="infldset">
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row">Nom du forum</th>
-                                                                       <td><input type="text" name="forum_name" size="35" maxlength="80" value="<?php echo pun_htmlspecialchars($cur_forum['forum_name']) ?>" tabindex="1" /></td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Description (<acronym title="HyperText Markup Language" lang="en">HTML</acronym>)</th>
-                                                                       <td><textarea name="forum_desc" rows="3" cols="50" tabindex="2"><?php echo pun_htmlspecialchars($cur_forum['forum_desc']) ?></textarea></td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Catégorie</th>
-                                                                       <td>
-                                                                               <select name="cat_id" tabindex="3">
-<?php
-
-       $result = $db->query('SELECT id, cat_name FROM '.$db->prefix.'categories ORDER BY disp_position') or error('Unable to fetch category list', __FILE__, __LINE__, $db->error());
-       while ($cur_cat = $db->fetch_assoc($result))
-       {
-               $selected = ($cur_cat['id'] == $cur_forum['cat_id']) ? ' selected="selected"' : '';
-               echo "\t\t\t\t\t\t\t\t\t\t\t".'<option value="'.$cur_cat['id'].'"'.$selected.'>'.pun_htmlspecialchars($cur_cat['cat_name']).'</option>'."\n";
-       }
-
-?>
-                                                                               </select>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Trier les discussions par</th>
-                                                                       <td>
-                                                                               <select name="sort_by" tabindex="4">
-                                                                                       <option value="0"<?php if ($cur_forum['sort_by'] == '0') echo ' selected="selected"' ?>>Derniers messages</option>
-                                                                                       <option value="1"<?php if ($cur_forum['sort_by'] == '1') echo ' selected="selected"' ?>>Dates des discussions</option>
-                                                                               </select>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row"><acronym title="Uniform Resource Locator" lang="en">URL</acronym> de redirection</th>
-                                                                       <td><?php echo ($cur_forum['num_topics']) ? 'Disponible uniquement pour les forums vides' : '<input type="text" name="redirect_url" size="45" maxlength="100" value="'.pun_htmlspecialchars($cur_forum['redirect_url']).'" tabindex="5" />'; ?></td>
-                                                               </tr>
-                                                       </table>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Modifier les permissions de groupes de ce forum</legend>
-                                               <div class="infldset">
-                                                       <p>Avec ce formulaire vous pouvez régler les permissions de ce forum spécifiques aux différents groupes d'utilisateurs. Si vous n'avez effectué aucune modification à ces permissions de groupes, ce que vous voyez ci-dessous sont les permissions par défaut basées sur les paramètres des <a href="admin_groups.php">Groupes d'utilisateurs</a>. Les administrateurs ont toujours toutes les permissions et sont donc écartés. Les paramètres de permission qui diffèrent des permissions par défaut pour le groupe d'utilisateur sont signalés en rouge. La permission «&nbsp;Lire&nbsp;» pourra être désactivée si le groupe en question ne possède pas la permission globale «&nbsp;Lire forums&nbsp;». Pour les forums de redirection seule la permission «&nbsp;Lire&nbsp;» est modifiable.</p>
-                                                       <table id="forumperms" cellspacing="0">
-                                                       <thead>
-                                                               <tr>
-                                                                       <th class="atcl">&nbsp;</th>
-                                                                       <th>Lire le forum</th>
-                                                                       <th>Écrire des réponses</th>
-                                                                       <th>Lancer des discussions</th>
-                                                               </tr>
-                                                       </thead>
-                                                       <tbody>
-<?php
-
-       $result = $db->query('SELECT g.g_id, g.g_title, g.g_read_board, g.g_post_replies, g.g_post_topics, fp.read_forum, fp.post_replies, fp.post_topics FROM '.$db->prefix.'groups AS g LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (g.g_id=fp.group_id AND fp.forum_id='.$forum_id.') WHERE g.g_id!='.PUN_ADMIN.' ORDER BY g.g_id') or error('Unable to fetch group forum permission list', __FILE__, __LINE__, $db->error());
-
-       while ($cur_perm = $db->fetch_assoc($result))
-       {
-               $read_forum = ($cur_perm['read_forum'] != '0') ? true : false;
-               $post_replies = (($cur_perm['g_post_replies'] == '0' && $cur_perm['post_replies'] == '1') || ($cur_perm['g_post_replies'] == '1' && $cur_perm['post_replies'] != '0')) ? true : false;
-               $post_topics = (($cur_perm['g_post_topics'] == '0' && $cur_perm['post_topics'] == '1') || ($cur_perm['g_post_topics'] == '1' && $cur_perm['post_topics'] != '0')) ? true : false;
-
-               // Determine if the current sittings differ from the default or not
-               $read_forum_def = ($cur_perm['read_forum'] == '0') ? false : true;
-               $post_replies_def = (($post_replies && $cur_perm['g_post_replies'] == '0') || (!$post_replies && ($cur_perm['g_post_replies'] == '' || $cur_perm['g_post_replies'] == '1'))) ? false : true;
-               $post_topics_def = (($post_topics && $cur_perm['g_post_topics'] == '0') || (!$post_topics && ($cur_perm['g_post_topics'] == '' || $cur_perm['g_post_topics'] == '1'))) ? false : true;
-
-?>
-                                                               <tr>
-                                                                       <th class="atcl"><?php echo pun_htmlspecialchars($cur_perm['g_title']) ?></th>
-                                                                       <td<?php if (!$read_forum_def) echo ' class="nodefault"'; ?>>
-                                                                               <input type="hidden" name="read_forum_old[<?php echo $cur_perm['g_id'] ?>]" value="<?php echo ($read_forum) ? '1' : '0'; ?>" />
-                                                                               <input type="checkbox" name="read_forum_new[<?php echo $cur_perm['g_id'] ?>]" value="1"<?php echo ($read_forum) ? ' checked="checked"' : ''; ?><?php echo ($cur_perm['g_read_board'] == '0') ? ' disabled="disabled"' : ''; ?> />
-                                                                       </td>
-                                                                       <td<?php if (!$post_replies_def && $cur_forum['redirect_url'] == '') echo ' class="nodefault"'; ?>>
-                                                                               <input type="hidden" name="post_replies_old[<?php echo $cur_perm['g_id'] ?>]" value="<?php echo ($post_replies) ? '1' : '0'; ?>" />
-                                                                               <input type="checkbox" name="post_replies_new[<?php echo $cur_perm['g_id'] ?>]" value="1"<?php echo ($post_replies) ? ' checked="checked"' : ''; ?><?php echo ($cur_forum['redirect_url'] != '') ? ' disabled="disabled"' : ''; ?> />
-                                                                       </td>
-                                                                       <td<?php if (!$post_topics_def && $cur_forum['redirect_url'] == '') echo ' class="nodefault"'; ?>>
-                                                                               <input type="hidden" name="post_topics_old[<?php echo $cur_perm['g_id'] ?>]" value="<?php echo ($post_topics) ? '1' : '0'; ?>" />
-                                                                               <input type="checkbox" name="post_topics_new[<?php echo $cur_perm['g_id'] ?>]" value="1"<?php echo ($post_topics) ? ' checked="checked"' : ''; ?><?php echo ($cur_forum['redirect_url'] != '') ? ' disabled="disabled"' : ''; ?> />
-                                                                       </td>
-                                                               </tr>
-<?php
-
-       }
-
-?>
-                                                       </tbody>
-                                                       </table>
-                                                       <div class="fsetsubmit"><input type="submit" name="revert_perms" value=" Rétablir les permissions par défaut " /></div>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <p class="submitend"><input type="submit" name="save" value=" Enregistrer modifications " /></p>
-                       </form>
-               </div>
-       </div>
-       <div class="clearer"></div>
-</div>
-
-<?php
-
-       require PUN_ROOT.'footer.php';
-}
-
-
-$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Forums';
-require PUN_ROOT.'header.php';
-
-generate_admin_menu('forums');
-
-?>
-       <div class="blockform">
-               <h2><span>Ajouter forum</span></h2>
-               <div class="box">
-                       <form method="post" action="admin_forums.php?action=adddel">
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Créer un forum</legend>
-                                               <div class="infldset">
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row">Ajouter un forum à la catégorie<div><input type="submit" name="add_forum" value=" Ajouter " tabindex="2" /></div></th>
-                                                                       <td>
-                                                                               <select name="add_to_cat" tabindex="1">
-<?php
-
-       $result = $db->query('SELECT id, cat_name FROM '.$db->prefix.'categories ORDER BY disp_position') or error('Unable to fetch category list', __FILE__, __LINE__, $db->error());
-       if ($db->num_rows($result) > 0)
-       {
-               while ($cur_cat = $db->fetch_assoc($result))
-                       echo "\t\t\t\t\t\t\t\t\t".'<option value="'.$cur_cat['id'].'">'.pun_htmlspecialchars($cur_cat['cat_name']).'</option>'."\n";
-       }
-       else
-               echo "\t\t\t\t\t\t\t\t\t".'<option value="0" disabled="disabled">No categories exist</option>'."\n";
-
-?>
-                                                                               </select>
-                                                                               <span>Choisissez la catégorie dans laquelle vous souhaitez ajouter un nouveau forum.</span>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                       </form>
-               </div>
-<?php
-
-// Display all the categories and forums
-$result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.disp_position FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id ORDER BY c.disp_position, c.id, f.disp_position') or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());
-
-if ($db->num_rows($result) > 0)
-{
-
-?>
-               <h2 class="block2"><span>Modifier les forums</span></h2>
-               <div class="box">
-                       <form id="edforum" method="post" action="admin_forums.php?action=edit">
-                               <p class="submittop"><input type="submit" name="update_positions" value=" Modifier positions " tabindex="3" /></p>
-<?php
-
-$tabindex_count = 4;
-
-$cur_category = 0;
-while ($cur_forum = $db->fetch_assoc($result))
-{
-       if ($cur_forum['cid'] != $cur_category) // A new category since last iteration?
-       {
-               if ($cur_category != 0)
-                       echo "\t\t\t\t\t\t\t".'</table>'."\n\t\t\t\t\t\t".'</div>'."\n\t\t\t\t\t".'</fieldset>'."\n\t\t\t\t".'</div>'."\n";
-
-?>
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Catégorie&nbsp;: <?php echo pun_htmlspecialchars($cur_forum['cat_name']) ?></legend>
-                                               <div class="infldset">
-                                                       <table cellspacing="0">
-<?php
-
-               $cur_category = $cur_forum['cid'];
-       }
-
-?>
-                                                               <tr>
-                                                                       <th><a href="admin_forums.php?edit_forum=<?php echo $cur_forum['fid'] ?>">Modifier</a> - <a href="admin_forums.php?del_forum=<?php echo $cur_forum['fid'] ?>">Supprimer</a></th>
-                                                                       <td>Position&nbsp;&nbsp;<input type="text" name="position[<?php echo $cur_forum['fid'] ?>]" size="3" maxlength="3" value="<?php echo $cur_forum['disp_position'] ?>" tabindex="<?php echo $tabindex_count ?>" />
-                                                                       &nbsp;&nbsp;<strong><?php echo pun_htmlspecialchars($cur_forum['forum_name']) ?></strong></td>
-                                                               </tr>
-<?php
-
-       $tabindex_count += 2;
-}
-
-?>
-                                                       </table>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <p class="submitend"><input type="submit" name="update_positions" value=" Modifier positions " tabindex="<?php echo $tabindex_count ?>" /></p>
-                       </form>
-               </div>
-<?php
-
-}
-
-?>
-       </div>
-       <div class="clearer"></div>
-</div>
-<?php
-
-require PUN_ROOT.'footer.php';
diff --git a/fluxbb/admin_groups.php b/fluxbb/admin_groups.php
deleted file mode 100644 (file)
index 3485e6c..0000000
+++ /dev/null
@@ -1,468 +0,0 @@
-<?php
-/***********************************************************************
-
-  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)
-
-  This file is part of PunBB.
-
-  PunBB is free software; you can redistribute it and/or modify it
-  under the terms of the GNU General Public License as published
-  by the Free Software Foundation; either version 2 of the License,
-  or (at your option) any later version.
-
-  PunBB is distributed in the hope that it will be useful, but
-  WITHOUT ANY WARRANTY; without even the implied warranty of
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-  GNU General Public License for more details.
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-  MA  02111-1307  USA
-
-************************************************************************/
-
-
-// Tell header.php to use the admin template
-define('PUN_ADMIN_CONSOLE', 1);
-
-define('PUN_ROOT', './');
-require PUN_ROOT.'include/common.php';
-require PUN_ROOT.'include/common_admin.php';
-
-
-if ($pun_user['g_id'] > PUN_ADMIN)
-       message($lang_common['No permission']);
-
-
-// Add/edit a group (stage 1)
-if (isset($_POST['add_group']) || isset($_GET['edit_group']))
-{
-       if (isset($_POST['add_group']))
-       {
-               $base_group = intval($_POST['base_group']);
-
-               $result = $db->query('SELECT * FROM '.$db->prefix.'groups WHERE g_id='.$base_group) or error('Unable to fetch user group info', __FILE__, __LINE__, $db->error());
-               $group = $db->fetch_assoc($result);
-
-               $mode = 'add';
-       }
-       else    // We are editing a group
-       {
-               $group_id = intval($_GET['edit_group']);
-               if ($group_id < 1)
-                       message($lang_common['Bad request']);
-
-               $result = $db->query('SELECT * FROM '.$db->prefix.'groups WHERE g_id='.$group_id) or error('Unable to fetch user group info', __FILE__, __LINE__, $db->error());
-               if (!$db->num_rows($result))
-                       message($lang_common['Bad request']);
-
-               $group = $db->fetch_assoc($result);
-
-               $mode = 'edit';
-       }
-
-
-       $page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Groupes';
-       $required_fields = array('req_title' => 'Nom groupe');
-       $focus_element = array('groups2', 'req_title');
-       require PUN_ROOT.'header.php';
-
-       generate_admin_menu('groups');
-
-?>
-       <div class="blockform">
-               <h2><span>Réglages du groupe</span></h2>
-               <div class="box">
-                       <form id="groups2" method="post" action="admin_groups.php" onsubmit="return process_form(this)">
-                               <p class="submittop"><input type="submit" name="add_edit_group" value=" Enregistrer " /></p>
-                               <div class="inform">
-                                       <input type="hidden" name="mode" value="<?php echo $mode ?>" />
-<?php if ($mode == 'edit'): ?>                         <input type="hidden" name="group_id" value="<?php echo $group_id ?>" />
-<?php endif; ?><?php if ($mode == 'add'): ?>                           <input type="hidden" name="base_group" value="<?php echo $base_group ?>" />
-<?php endif; ?>                                        <fieldset>
-                                               <legend>Réglages des options et des permissions de groupe</legend>
-                                               <div class="infldset">
-                                                       <p>Les options et permissions ci-dessous sont les permissions par défaut pour le groupe. Ces options s'appliquent s'il n'y a pas de réglages de permissions spécifiques à un forum.</p>
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row">Nom groupe</th>
-                                                                       <td>
-                                                                               <input type="text" name="req_title" size="25" maxlength="50" value="<?php if ($mode == 'edit') echo pun_htmlspecialchars($group['g_title']); ?>" tabindex="1" />
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Titre utilisateur</th>
-                                                                       <td>
-                                                                               <input type="text" name="user_title" size="25" maxlength="50" value="<?php echo pun_htmlspecialchars($group['g_user_title']) ?>" tabindex="2" />
-                                                                               <span>Ce titre remplacera n'importe quel nom de rang que les utilisateurs de ce groupe auront atteint. Laissez vide pour utiliser le titre par défaut ou le rang.</span>
-                                                                       </td>
-                                                               </tr>
-<?php if ($group['g_id'] != PUN_ADMIN): ?>                                                             <tr>
-                                                                       <th scope="row">Lire forums</th>
-                                                                       <td>
-                                                                               <input type="radio" name="read_board" value="1"<?php if ($group['g_read_board'] == '1') echo ' checked="checked"' ?> tabindex="3" />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="read_board" value="0"<?php if ($group['g_read_board'] == '0') echo ' checked="checked"' ?> tabindex="4" />&nbsp;<strong>Non</strong>
-                                                                               <span>Autoriser les utilisateurs de ce groupe à voir les forums. Ce réglage s'applique à tous les aspects des forums et ne peut être outrepassé par les permissions spécifiques aux forums. Avec cette option à non les utilisateurs de ce groupe ne pourront que s'identifier/se déconnecter.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Écrire des réponses</th>
-                                                                       <td>
-                                                                               <input type="radio" name="post_replies" value="1"<?php if ($group['g_post_replies'] == '1') echo ' checked="checked"' ?> tabindex="5" />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="post_replies" value="0"<?php if ($group['g_post_replies'] == '0') echo ' checked="checked"' ?> tabindex="6" />&nbsp;<strong>Non</strong>
-                                                                               <span>Autoriser les utilisateurs de ce groupe à écrire des réponses aux discussions.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Lancer des discussions</th>
-                                                                       <td>
-                                                                               <input type="radio" name="post_topics" value="1"<?php if ($group['g_post_topics'] == '1') echo ' checked="checked"' ?> tabindex="7" />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="post_topics" value="0"<?php if ($group['g_post_topics'] == '0') echo ' checked="checked"' ?> tabindex="8" />&nbsp;<strong>Non</strong>
-                                                                               <span>Autoriser les utilisateurs de ce groupe à lancer des nouveaux sujets.</span>
-                                                                       </td>
-                                                               </tr>
-<?php if ($group['g_id'] != PUN_GUEST): ?>                                                             <tr>
-                                                                       <th scope="row">Modifier messages</th>
-                                                                       <td>
-                                                                               <input type="radio" name="edit_posts" value="1"<?php if ($group['g_edit_posts'] == '1') echo ' checked="checked"' ?> tabindex="11" />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="edit_posts" value="0"<?php if ($group['g_edit_posts'] == '0') echo ' checked="checked"' ?> tabindex="12" />&nbsp;<strong>Non</strong>
-                                                                               <span>Autoriser les utilisateurs de ce groupe à modifier leurs propres messages.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Effacer les messages</th>
-                                                                       <td>
-                                                                               <input type="radio" name="delete_posts" value="1"<?php if ($group['g_delete_posts'] == '1') echo ' checked="checked"' ?> tabindex="13" />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="delete_posts" value="0"<?php if ($group['g_delete_posts'] == '0') echo ' checked="checked"' ?> tabindex="14" />&nbsp;<strong>Non</strong>
-                                                                               <span>Autoriser les utilisateurs de ce groupe à effacer leurs propres messages.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Effacer les discussions</th>
-                                                                       <td>
-                                                                               <input type="radio" name="delete_topics" value="1"<?php if ($group['g_delete_topics'] == '1') echo ' checked="checked"' ?> tabindex="15" />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="delete_topics" value="0"<?php if ($group['g_delete_topics'] == '0') echo ' checked="checked"' ?> tabindex="16" />&nbsp;<strong>Non</strong>
-                                                                               <span>Autoriser les utilisateurs de ce groupe à effacer leurs propres sujets (y compris toutes les réponses).</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Titre personnalisé</th>
-                                                                       <td>
-                                                                               <input type="radio" name="set_title" value="1"<?php if ($group['g_set_title'] == '1') echo ' checked="checked"' ?> tabindex="17" />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="set_title" value="0"<?php if ($group['g_set_title'] == '0') echo ' checked="checked"' ?> tabindex="18" />&nbsp;<strong>Non</strong>
-                                                                               <span>Autoriser les utilisateurs de ce groupe à modifier leur propre titre utilisateur.</span>
-                                                                       </td>
-                                                               </tr>
-<?php endif; ?>                                                                <tr>
-                                                                       <th scope="row">Utiliser la recherche</th>
-                                                                       <td>
-                                                                               <input type="radio" name="search" value="1"<?php if ($group['g_search'] == '1') echo ' checked="checked"' ?> tabindex="19" />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="search" value="0"<?php if ($group['g_search'] == '0') echo ' checked="checked"' ?> tabindex="20" />&nbsp;<strong>Non</strong>
-                                                                               <span>Autoriser les utilisateurs de ce groupe à utiliser la fonction de recherche sur les forums.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Recherche d'utilisateur</th>
-                                                                       <td>
-                                                                               <input type="radio" name="search_users" value="1"<?php if ($group['g_search_users'] == '1') echo ' checked="checked"' ?> tabindex="21" />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="search_users" value="0"<?php if ($group['g_search_users'] == '0') echo ' checked="checked"' ?> tabindex="22" />&nbsp;<strong>Non</strong>
-                                                                               <span>Autoriser les utilisateurs de ce groupe à utiliser       un texte libre pour rechercher dans la liste des utilisateurs.</span>
-                                                                       </td>
-                                                               </tr>
-<?php if ($group['g_id'] != PUN_GUEST): ?>                                                             <tr>
-                                                                       <th scope="row">Intervalle pour modifier le sujet d'une discussion</th>
-                                                                       <td>
-                                                                               <input type="text" name="edit_subjects_interval" size="5" maxlength="5" value="<?php echo $group['g_edit_subjects_interval'] ?>" tabindex="23" />
-                                                                               <span>Nombre de secondes après que le message ait été envoyé pendant lesquelles les utilisateurs de ce groupe pourront modifier le sujet d'une discussion qu'ils viennent de lancer. Mettre à 0 pour permettre la modification du sujet des discussions sans restriction dans le temps.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Intervalle de contrôle de flood sur les messages</th>
-                                                                       <td>
-                                                                               <input type="text" name="post_flood" size="5" maxlength="4" value="<?php echo $group['g_post_flood'] ?>" tabindex="24" />
-                                                                               <span>Nombre de secondes pendant lesquelles les utilisateurs de ce groupe devront patienter entre deux messages. Mettre à 0 pour désactiver le contrôle de flood sur les messages.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Intervalle de contrôle de flood sur les recherches</th>
-                                                                       <td>
-                                                                               <input type="text" name="search_flood" size="5" maxlength="4" value="<?php echo $group['g_search_flood'] ?>" tabindex="25" />
-                                                                               <span>Nombre de secondes pendant lesquelles les utilisateurs de ce groupe devront patienter entre deux recherches. Mettre à 0 pour désactiver le contrôle de flood sur les recherches.</span>
-                                                                       </td>
-                                                               </tr>
-<?php endif; ?><?php endif; ?>                                                 </table>
-<?php if ($group['g_id'] == PUN_MOD ): ?>                                                      <p class="warntext">Pour qu'un utilisateur de ce groupe acquière les compétences de modérateur, il devra nécessairement être désigné comme modérateur d'un ou de plusieurs forums. Ceci est possible depuis la page d'administration du profil de l'utilisateur.</p>
-<?php endif; ?>                                                </div>
-                                       </fieldset>
-                               </div>
-                               <p class="submitend"><input type="submit" name="add_edit_group" value=" Enregistrer " tabindex="26" /></p>
-                       </form>
-               </div>
-       </div>
-       <div class="clearer"></div>
-</div>
-<?php
-
-       require PUN_ROOT.'footer.php';
-}
-
-
-// Add/edit a group (stage 2)
-else if (isset($_POST['add_edit_group']))
-{
-       confirm_referrer('admin_groups.php');
-
-       // Is this the admin group? (special rules apply)
-       $is_admin_group = (isset($_POST['group_id']) && $_POST['group_id'] == PUN_ADMIN) ? true : false;
-
-       $title = trim($_POST['req_title']);
-       $user_title = trim($_POST['user_title']);
-       $read_board = isset($_POST['read_board']) ? intval($_POST['read_board']) : '1';
-       $post_replies = isset($_POST['post_replies']) ? intval($_POST['post_replies']) : '1';
-       $post_topics = isset($_POST['post_topics']) ? intval($_POST['post_topics']) : '1';
-       $edit_posts = isset($_POST['edit_posts']) ? intval($_POST['edit_posts']) : ($is_admin_group) ? '1' : '0';
-       $delete_posts = isset($_POST['delete_posts']) ? intval($_POST['delete_posts']) : ($is_admin_group) ? '1' : '0';
-       $delete_topics = isset($_POST['delete_topics']) ? intval($_POST['delete_topics']) : ($is_admin_group) ? '1' : '0';
-       $set_title = isset($_POST['set_title']) ? intval($_POST['set_title']) : ($is_admin_group) ? '1' : '0';
-       $search = isset($_POST['search']) ? intval($_POST['search']) : '1';
-       $search_users = isset($_POST['search_users']) ? intval($_POST['search_users']) : '1';
-       $edit_subjects_interval = isset($_POST['edit_subjects_interval']) ? intval($_POST['edit_subjects_interval']) : '0';
-       $post_flood = isset($_POST['post_flood']) ? intval($_POST['post_flood']) : '0';
-       $search_flood = isset($_POST['search_flood']) ? intval($_POST['search_flood']) : '0';
-
-       if ($title == '')
-               message('Vous devez saisir un nom de groupe.');
-
-       $user_title = ($user_title != '') ? '\''.$db->escape($user_title).'\'' : 'NULL';
-
-       if ($_POST['mode'] == 'add')
-       {
-               $result = $db->query('SELECT 1 FROM '.$db->prefix.'groups WHERE g_title=\''.$db->escape($title).'\'') or error('Unable to check group title collision', __FILE__, __LINE__, $db->error());
-               if ($db->num_rows($result))
-                       message('Il existe déjà un groupe nommé \''.pun_htmlspecialchars($title).'\'.');
-
-               $db->query('INSERT INTO '.$db->prefix.'groups (g_title, g_user_title, g_read_board, g_post_replies, g_post_topics, g_edit_posts, g_delete_posts, g_delete_topics, g_set_title, g_search, g_search_users, g_edit_subjects_interval, g_post_flood, g_search_flood) VALUES(\''.$db->escape($title).'\', '.$user_title.', '.$read_board.', '.$post_replies.', '.$post_topics.', '.$edit_posts.', '.$delete_posts.', '.$delete_topics.', '.$set_title.', '.$search.', '.$search_users.', '.$edit_subjects_interval.', '.$post_flood.', '.$search_flood.')') or error('Unable to add group', __FILE__, __LINE__, $db->error());
-               $new_group_id = $db->insert_id();
-
-               // Now lets copy the forum specific permissions from the group which this group is based on
-               $result = $db->query('SELECT forum_id, read_forum, post_replies, post_topics FROM '.$db->prefix.'forum_perms WHERE group_id='.intval($_POST['base_group'])) or error('Unable to fetch group forum permission list', __FILE__, __LINE__, $db->error());
-               while ($cur_forum_perm = $db->fetch_assoc($result))
-                       $db->query('INSERT INTO '.$db->prefix.'forum_perms (group_id, forum_id, read_forum, post_replies, post_topics) VALUES('.$new_group_id.', '.$cur_forum_perm['forum_id'].', '.$cur_forum_perm['read_forum'].', '.$cur_forum_perm['post_replies'].', '.$cur_forum_perm['post_topics'].')') or error('Unable to insert group forum permissions', __FILE__, __LINE__, $db->error());
-       }
-       else
-       {
-               $result = $db->query('SELECT 1 FROM '.$db->prefix.'groups WHERE g_title=\''.$db->escape($title).'\' AND g_id!='.intval($_POST['group_id'])) or error('Unable to check group title collision', __FILE__, __LINE__, $db->error());
-               if ($db->num_rows($result))
-                       message('Il existe déjà un groupe nommé \''.pun_htmlspecialchars($title).'\'.');
-
-               $db->query('UPDATE '.$db->prefix.'groups SET g_title=\''.$db->escape($title).'\', g_user_title='.$user_title.', g_read_board='.$read_board.', g_post_replies='.$post_replies.', g_post_topics='.$post_topics.', g_edit_posts='.$edit_posts.', g_delete_posts='.$delete_posts.', g_delete_topics='.$delete_topics.', g_set_title='.$set_title.', g_search='.$search.', g_search_users='.$search_users.', g_edit_subjects_interval='.$edit_subjects_interval.', g_post_flood='.$post_flood.', g_search_flood='.$search_flood.' WHERE g_id='.intval($_POST['group_id'])) or error('Unable to update group', __FILE__, __LINE__, $db->error());
-       }
-
-       // Regenerate the quickjump cache
-       require_once PUN_ROOT.'include/cache.php';
-       generate_quickjump_cache();
-
-       redirect('admin_groups.php', 'Groupe '.(($_POST['mode'] == 'edit') ? 'modifié' : 'ajouté').'. Redirection ...');
-}
-
-
-// Set default group
-else if (isset($_POST['set_default_group']))
-{
-       confirm_referrer('admin_groups.php');
-
-       $group_id = intval($_POST['default_group']);
-       if ($group_id < 4)
-               message($lang_common['Bad request']);
-
-       $db->query('UPDATE '.$db->prefix.'config SET conf_value='.$group_id.' WHERE conf_name=\'o_default_user_group\'') or error('Unable to update board config', __FILE__, __LINE__, $db->error());
-
-       // Regenerate the config cache
-       require_once PUN_ROOT.'include/cache.php';
-       generate_config_cache();
-
-       redirect('admin_groups.php', 'Groupe par défaut réglé. Redirection ...');
-}
-
-
-// Remove a group
-else if (isset($_GET['del_group']))
-{
-       confirm_referrer('admin_groups.php');
-
-       $group_id = intval($_GET['del_group']);
-       if ($group_id < 5)
-               message($lang_common['Bad request']);
-
-       // Make sure we don't remove the default group
-       if ($group_id == $pun_config['o_default_user_group'])
-               message('Le groupe par défaut ne peut être supprimé. Vous devez d\'abord définir un groupe par défaut différent.');
-
-
-       // Check if this group has any members
-       $result = $db->query('SELECT g.g_title, COUNT(u.id) FROM '.$db->prefix.'groups AS g INNER JOIN '.$db->prefix.'users AS u ON g.g_id=u.group_id WHERE g.g_id='.$group_id.' GROUP BY g.g_id, g_title') or error('Unable to fetch group info', __FILE__, __LINE__, $db->error());
-
-       // If the group doesn't have any members or if we've already selected a group to move the members to
-       if (!$db->num_rows($result) || isset($_POST['del_group']))
-       {
-               if (isset($_POST['del_group']))
-               {
-                       $move_to_group = intval($_POST['move_to_group']);
-                       $db->query('UPDATE '.$db->prefix.'users SET group_id='.$move_to_group.' WHERE group_id='.$group_id) or error('Unable to move users into group', __FILE__, __LINE__, $db->error());
-               }
-
-               // Delete the group and any forum specific permissions
-               $db->query('DELETE FROM '.$db->prefix.'groups WHERE g_id='.$group_id) or error('Unable to delete group', __FILE__, __LINE__, $db->error());
-               $db->query('DELETE FROM '.$db->prefix.'forum_perms WHERE group_id='.$group_id) or error('Unable to delete group forum permissions', __FILE__, __LINE__, $db->error());
-
-               // Regenerate the quickjump cache
-               require_once PUN_ROOT.'include/cache.php';
-               generate_quickjump_cache();
-
-               redirect('admin_groups.php', 'Groupe supprimé. Redirection ...');
-       }
-
-
-       list($group_title, $group_members) = $db->fetch_row($result);
-
-       $page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Groupes';
-       require PUN_ROOT.'header.php';
-
-       generate_admin_menu('groups');
-
-?>
-       <div class="blockform">
-               <h2><span>Supprimer groupe</span></h2>
-               <div class="box">
-                       <form id="groups" method="post" action="admin_groups.php?del_group=<?php echo $group_id ?>">
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Déplacer les utilisateur de ce groupe</legend>
-                                               <div class="infldset">
-                                                       <p>Il y a actuellement <?php echo $group_members ?> membres dans le groupe "<?php echo pun_htmlspecialchars($group_title) ?>". Veuillez sélectionner un groupe dans lequel ces utilisateurs seront déplacés.</p>
-                                                       <label>Déplacer les utilisateurs dans
-                                                       <select name="move_to_group">
-<?php
-
-       $result = $db->query('SELECT g_id, g_title FROM '.$db->prefix.'groups WHERE g_id!='.PUN_GUEST.' AND g_id!='.$group_id.' ORDER BY g_title') or error('Unable to fetch user group list', __FILE__, __LINE__, $db->error());
-
-       while ($cur_group = $db->fetch_assoc($result))
-       {
-               if ($cur_group['g_id'] == PUN_MEMBER)   // Pre-select the pre-defined Members group
-                       echo "\t\t\t\t\t\t\t\t\t\t".'<option value="'.$cur_group['g_id'].'" selected="selected">'.pun_htmlspecialchars($cur_group['g_title']).'</option>'."\n";
-               else
-                       echo "\t\t\t\t\t\t\t\t\t\t".'<option value="'.$cur_group['g_id'].'">'.pun_htmlspecialchars($cur_group['g_title']).'</option>'."\n";
-       }
-
-?>
-                                                       </select>
-                                                       </br></label>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <p><input type="submit" name="del_group" value=" Supprimer groupe " /></p>
-                       </form>
-               </div>
-       </div>
-       <div class="clearer"></div>
-</div>
-<?php
-
-       require PUN_ROOT.'footer.php';
-}
-
-
-$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Groupes';
-require PUN_ROOT.'header.php';
-
-generate_admin_menu('groups');
-
-?>
-       <div class="blockform">
-               <h2><span>Ajouter/régler groupes</span></h2>
-               <div class="box">
-                       <form id="groups" method="post" action="admin_groups.php?action=foo">
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Ajouter un groupe</legend>
-                                               <div class="infldset">
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row">Nouveau groupe basé sur le groupe<div><input type="submit" name="add_group" value=" Ajouter " tabindex="2" /></div></th>
-                                                                       <td>
-                                                                               <select id="base_group" name="base_group" tabindex="1">
-<?php
-
-$result = $db->query('SELECT g_id, g_title FROM '.$db->prefix.'groups WHERE g_id>'.PUN_GUEST.' ORDER BY g_title') or error('Unable to fetch user group list', __FILE__, __LINE__, $db->error());
-
-while ($cur_group = $db->fetch_assoc($result))
-{
-       if ($cur_group['g_id'] == $pun_config['o_default_user_group'])
-               echo "\t\t\t\t\t\t\t\t\t\t\t".'<option value="'.$cur_group['g_id'].'" selected="selected">'.pun_htmlspecialchars($cur_group['g_title']).'</option>'."\n";
-       else
-               echo "\t\t\t\t\t\t\t\t\t\t\t".'<option value="'.$cur_group['g_id'].'">'.pun_htmlspecialchars($cur_group['g_title']).'</option>'."\n";
-}
-
-?>
-                                                                               </select>
-                                                                               <span>Choisissez un groupe d'utilisateurs duquel le nouveau groupe héritera les propriétés. La page suivante vous permettra d'affiner ces réglages.</span>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Définir le groupe par défaut</legend>
-                                               <div class="infldset">
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row">Groupe par défaut<div><input type="submit" name="set_default_group" value=" Enregistrer " tabindex="4" /></div></th>
-                                                                       <td>
-                                                                               <select id="default_group" name="default_group" tabindex="3">
-<?php
-
-$result = $db->query('SELECT g_id, g_title FROM '.$db->prefix.'groups WHERE g_id>'.PUN_GUEST.' ORDER BY g_title') or error('Unable to fetch user group list', __FILE__, __LINE__, $db->error());
-
-while ($cur_group = $db->fetch_assoc($result))
-{
-       if ($cur_group['g_id'] == $pun_config['o_default_user_group'])
-               echo "\t\t\t\t\t\t\t\t\t\t\t".'<option value="'.$cur_group['g_id'].'" selected="selected">'.pun_htmlspecialchars($cur_group['g_title']).'</option>'."\n";
-       else
-               echo "\t\t\t\t\t\t\t\t\t\t\t".'<option value="'.$cur_group['g_id'].'">'.pun_htmlspecialchars($cur_group['g_title']).'</option>'."\n";
-}
-
-?>
-                                                                               </select>
-                                                                               <span>Choisissez le groupe que vous voulez définir par défaut. C'est à dire le groupe où les utilisateurs seront placés quand ils s'inscriront. Pour des raisons de sécurité, par défaut les utilisateurs ne peuvent être mis ni dans le groupe modérateur ni dans le groupe administrateur.</span>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                       </form>
-               </div>
-
-               <h2 class="block2"><span>Groupes existants</span></h2>
-               <div class="box">
-                       <div class="fakeform">
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Modifier/supprimer les groupes</legend>
-                                               <div class="infldset">
-                                                       <p>Les groupes pré-définis Invités, Administrateurs, Modérateurs et Membres ne peuvent être supprimés. Ils peuvent par contre être modifiés. Mais suivant le groupe certaines options ne sont pas disponibles (<abbr title="exemple">ex.</abbr> la permission <em>modifier messages</em> pour les invités). Les Administrateurs ont toujours toutes les permisssions.</p>
-                                                       <table cellspacing="0">
-<?php
-
-$result = $db->query('SELECT g_id, g_title FROM '.$db->prefix.'groups ORDER BY g_id') or error('Unable to fetch user group list', __FILE__, __LINE__, $db->error());
-
-while ($cur_group = $db->fetch_assoc($result))
-       echo "\t\t\t\t\t\t\t\t".'<tr><th scope="row"><a href="admin_groups.php?edit_group='.$cur_group['g_id'].'">Modifier</a>'.(($cur_group['g_id'] > PUN_MEMBER) ? ' - <a href="admin_groups.php?del_group='.$cur_group['g_id'].'">Supprimer</a>' : '').'</th><td>'.pun_htmlspecialchars($cur_group['g_title']).'</td></tr>'."\n";
-
-?>
-                                                       </table>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                       </div>
-               </div>
-       </div>
-       <div class="clearer"></div>
-</div>
-<?php
-
-require PUN_ROOT.'footer.php';
diff --git a/fluxbb/admin_index.php b/fluxbb/admin_index.php
deleted file mode 100644 (file)
index aafca5f..0000000
+++ /dev/null
@@ -1,211 +0,0 @@
-<?php
-/***********************************************************************
-
-  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)
-
-  This file is part of PunBB.
-
-  PunBB is free software; you can redistribute it and/or modify it
-  under the terms of the GNU General Public License as published
-  by the Free Software Foundation; either version 2 of the License,
-  or (at your option) any later version.
-
-  PunBB is distributed in the hope that it will be useful, but
-  WITHOUT ANY WARRANTY; without even the implied warranty of
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-  GNU General Public License for more details.
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-  MA  02111-1307  USA
-
-************************************************************************/
-
-
-// Tell header.php to use the admin template
-define('PUN_ADMIN_CONSOLE', 1);
-
-define('PUN_ROOT', './');
-require PUN_ROOT.'include/common.php';
-require PUN_ROOT.'include/common_admin.php';
-
-
-if ($pun_user['g_id'] > PUN_MOD)
-       message($lang_common['No permission']);
-
-
-$action = isset($_GET['action']) ? $_GET['action'] : null;
-
-// Check for upgrade
-if ($action == 'check_upgrade')
-{
-       if (!ini_get('allow_url_fopen'))
-               message('Impossible de vérifier les mises à jour tant que \'allow_url_fopen\' est désactivé sur ce système.');
-
-       $latest_version = trim(@file_get_contents('http://fluxbb.org/latest_version'));
-       if (empty($latest_version))
-               message('La vérification de mise à jour a échouée pour une raison inconnue.');
-
-       if (version_compare($pun_config['o_cur_version'], $latest_version, '>='))
-               message('Vous utilisez la dernière version de FluxBB.');
-       else
-               message('Une nouvelle version de FluxBB est disponible ! Vous pouvez télécharger cette dernière version sur <a href="http://fluxbb.org/">FluxBB.org</a>.');
-}
-
-// Check for french upgrade
-if ($action == 'check_upgrade_fr')
-{
-       if (!ini_get('allow_url_fopen'))
-               message('Impossible de vérifier les mises à jour tant que \'allow_url_fopen\' est désactivé sur ce système.');
-
-       $latest_version = trim(@file_get_contents('http://www.fluxbb.fr/latest_version'));
-       if (empty($latest_version))
-               message('La vérification de mise à jour a échouée pour une raison inconnue.');
-
-       if (version_compare($pun_config['o_cur_version_fr'], $latest_version, '>='))
-               message('Vous utilisez la dernière version de FluxBB en français.');
-       else
-               message('Une nouvelle version de FluxBB en français est disponible ! Vous pouvez télécharger cette dernière version sur <a href="http://www.fluxbb.fr/">FluxBB.fr</a>.');
-}
-
-
-// Show phpinfo() output
-else if ($action == 'phpinfo' && $pun_user['g_id'] == PUN_ADMIN)
-{
-       // Is phpinfo() a disabled function?
-       if (strpos(strtolower((string)@ini_get('disable_functions')), 'phpinfo') !== false)
-               message('La fonction phpinfo() de PHP est désactivée sur ce serveur.');
-
-       phpinfo();
-       exit;
-}
-
-
-// Get the server load averages (if possible)
-if (@file_exists('/proc/loadavg') && is_readable('/proc/loadavg'))
-{
-       // We use @ just in case
-       $fh = @fopen('/proc/loadavg', 'r');
-       $load_averages = @fread($fh, 64);
-       @fclose($fh);
-
-       $load_averages = @explode(' ', $load_averages);
-       $server_load = isset($load_averages[2]) ? $load_averages[0].' '.$load_averages[1].' '.$load_averages[2] : 'Indisponible';
-}
-else if (!in_array(PHP_OS, array('WINNT', 'WIN32')) && preg_match('/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/i', @exec('uptime'), $load_averages))
-       $server_load = $load_averages[1].' '.$load_averages[2].' '.$load_averages[3];
-else
-       $server_load = 'Indisponible';
-
-
-// Get number of current visitors
-$result = $db->query('SELECT COUNT(user_id) FROM '.$db->prefix.'online WHERE idle=0') or error('Unable to fetch online count', __FILE__, __LINE__, $db->error());
-$num_online = $db->result($result);
-
-
-// Get the database system version
-switch ($db_type)
-{
-       case 'sqlite':
-               $db_version = 'SQLite '.sqlite_libversion();
-               break;
-
-       default:
-               $result = $db->query('SELECT VERSION()') or error('Unable to fetch version info', __FILE__, __LINE__, $db->error());
-               $db_version = $db->result($result);
-               break;
-}
-
-
-// Collect some additional info about MySQL
-if ($db_type == 'mysql' || $db_type == 'mysqli')
-{
-       $db_version = 'MySQL '.$db_version;
-
-       // Calculate total db size/row count
-       $result = $db->query('SHOW TABLE STATUS FROM `'.$db_name.'`') or error('Unable to fetch table status', __FILE__, __LINE__, $db->error());
-
-       $total_records = $total_size = 0;
-       while ($status = $db->fetch_assoc($result))
-       {
-               $total_records += $status['Rows'];
-               $total_size += $status['Data_length'] + $status['Index_length'];
-       }
-
-       $total_size = $total_size / 1024;
-
-       if ($total_size > 1024)
-               $total_size = round($total_size / 1024, 2).' MB';
-       else
-               $total_size = round($total_size, 2).' KB';
-}
-
-
-// See if MMCache or PHPA is loaded
-if (function_exists('mmcache'))
-       $php_accelerator = '<a href="http://turck-mmcache.sourceforge.net/">Turck MMCache</a>';
-else if (isset($_PHPA))
-       $php_accelerator = '<a href="http://www.php-accelerator.co.uk/">ionCube PHP Accelerator</a>';
-else
-       $php_accelerator = 'N/A';
-
-
-$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin';
-require PUN_ROOT.'header.php';
-
-generate_admin_menu('index');
-
-?>
-       <div class="block">
-               <h2>Administration Forum</h2>
-               <div id="adintro" class="box">
-                       <div class="inbox">
-                               <p>Bienvenue sur le panneau de contrôles de FluxBB. Depuis cet espace vous pouvez contrôler les points essentiels de votre forum. Selon que vous êtes un administrateur ou un modérateur vous pouvez&nbsp;:<br /><br />
-                                       &nbsp;- organiser les catégories et les forums.<br />
-                                       &nbsp;- régler les principales options et préférences.<br />
-                                       &nbsp;- contrôler les permissions pour les utilisateurs et les visiteurs.<br />
-                                       &nbsp;- voir les statistiques des IP pour les utilisateurs.<br />
-                                       &nbsp;- bannir des utilisateurs.<br />
-                                       &nbsp;- censurer des mots.<br />
-                                       &nbsp;- régler les rangs des utilisateurs.<br />
-                                       &nbsp;- élaguer les anciens messages.<br />
-                                       &nbsp;- traiter les messages signalés.
-                               </p>
-                       </div>
-               </div>
-
-               <h2 class="block2"><span>Statistiques</span></h2>
-               <div id="adstats" class="box">
-                       <div class="inbox">
-                               <dl>
-                                       <dt>Version FluxBB</dt>
-                                       <dd>
-                                               FluxBB version française <?php echo $pun_config['o_cur_version_fr'] ?> basée sur FluxBB <?php echo $pun_config['o_cur_version'] ?><br />
-                                               <a href="admin_index.php?action=check_upgrade">Vérifier la version officielle</a> - <a href="admin_index.php?action=check_upgrade_fr">Vérifier la version française</a>
-                                       </dd>
-                                       <dt>Exécution serveur</dt>
-                                       <dd>
-                                               <?php echo $server_load ?> (<?php echo $num_online ?> utilisateurs en ligne)
-                                       </dd>
-<?php if ($pun_user['g_id'] == PUN_ADMIN): ?>                                  <dt>Environnement</dt>
-                                       <dd>
-                                               Système d'exploitation&nbsp;: <?php echo PHP_OS ?><br />
-                                               PHP&nbsp;: <?php echo phpversion() ?> - <a href="admin_index.php?action=phpinfo">Afficher infos</a><br />
-                                               Accélérateur PHP&nbsp;: <?php echo $php_accelerator."\n" ?>
-                                       </dd>
-                                       <dt>Base de données</dt>
-                                       <dd>
-                                               <?php echo $db_version."\n" ?>
-<?php if (isset($total_records) && isset($total_size)): ?>                                             <br />Lignes&nbsp;: <?php echo $total_records."\n" ?>
-                                               <br />Taille&nbsp;: <?php echo $total_size."\n" ?>
-<?php endif; endif; ?>                                 </dd>
-                               </dl>
-                       </div>
-               </div>
-       </div>
-       <div class="clearer"></div>
-</div>
-<?php
-
-require PUN_ROOT.'footer.php';
diff --git a/fluxbb/admin_loader.php b/fluxbb/admin_loader.php
deleted file mode 100644 (file)
index 5d9029d..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-/***********************************************************************
-
-  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)
-
-  This file is part of PunBB.
-
-  PunBB is free software; you can redistribute it and/or modify it
-  under the terms of the GNU General Public License as published
-  by the Free Software Foundation; either version 2 of the License,
-  or (at your option) any later version.
-
-  PunBB is distributed in the hope that it will be useful, but
-  WITHOUT ANY WARRANTY; without even the implied warranty of
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-  GNU General Public License for more details.
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-  MA  02111-1307  USA
-
-************************************************************************/
-
-
-// Tell header.php to use the admin template
-define('PUN_ADMIN_CONSOLE', 1);
-
-define('PUN_ROOT', './');
-require PUN_ROOT.'include/common.php';
-require PUN_ROOT.'include/common_admin.php';
-
-
-if ($pun_user['g_id'] > PUN_MOD)
-       message($lang_common['No permission']);
-
-
-// The plugin to load should be supplied via GET
-$plugin = isset($_GET['plugin']) ? $_GET['plugin'] : '';
-if (!@preg_match('/^AM?P_(\w*?)\.php$/i', $plugin))
-       message($lang_common['Bad request']);
-
-// AP_ == Admins only, AMP_ == admins and moderators
-$prefix = substr($plugin, 0, strpos($plugin, '_'));
-if ($pun_user['g_id'] == PUN_MOD && $prefix == 'AP')
-       message($lang_common['No permission']);
-
-// Make sure the file actually exists
-if (!file_exists(PUN_ROOT.'plugins/'.$plugin))
-       message('Il n\'y a pas de plugin nommé \''.$plugin.'\' dans le répertoire de plugin.');
-
-// Construct REQUEST_URI if it isn't set
-if (!isset($_SERVER['REQUEST_URI']))
-       $_SERVER['REQUEST_URI'] = (isset($_SERVER['PHP_SELF']) ? $_SERVER['PHP_SELF'] : '').'?'.(isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '');
-
-$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / '.$plugin;
-require PUN_ROOT.'header.php';
-
-// Attempt to load the plugin. We don't use @ here to supress error messages,
-// because if we did and a parse error occurred in the plugin, we would only
-// get the "blank page of death".
-include PUN_ROOT.'plugins/'.$plugin;
-if (!defined('PUN_PLUGIN_LOADED'))
-       message('Le chargement du plugin \''.$plugin.'\' a échoué.');
-
-// Output the clearer div
-?>
-       <div class="clearer"></div>
-</div>
-<?php
-
-require PUN_ROOT.'footer.php';
diff --git a/fluxbb/admin_maintenance.php b/fluxbb/admin_maintenance.php
deleted file mode 100644 (file)
index 097af1a..0000000
+++ /dev/null
@@ -1,189 +0,0 @@
-<?php
-/***********************************************************************
-
-  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)
-
-  This file is part of PunBB.
-
-  PunBB is free software; you can redistribute it and/or modify it
-  under the terms of the GNU General Public License as published
-  by the Free Software Foundation; either version 2 of the License,
-  or (at your option) any later version.
-
-  PunBB is distributed in the hope that it will be useful, but
-  WITHOUT ANY WARRANTY; without even the implied warranty of
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-  GNU General Public License for more details.
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-  MA  02111-1307  USA
-
-************************************************************************/
-
-
-// Tell header.php to use the admin template
-define('PUN_ADMIN_CONSOLE', 1);
-// Tell common.php that we don't want output buffering
-define('PUN_DISABLE_BUFFERING', 1);
-
-define('PUN_ROOT', './');
-require PUN_ROOT.'include/common.php';
-require PUN_ROOT.'include/common_admin.php';
-
-
-if ($pun_user['g_id'] > PUN_ADMIN)
-       message($lang_common['No permission']);
-
-
-if (isset($_GET['i_per_page']) && isset($_GET['i_start_at']))
-{
-       $per_page = intval($_GET['i_per_page']);
-       $start_at = intval($_GET['i_start_at']);
-       if ($per_page < 1 || $start_at < 1)
-               message($lang_common['Bad request']);
-
-       @set_time_limit(0);
-
-       // If this is the first cycle of posts we empty the search index before we proceed
-       if (isset($_GET['i_empty_index']))
-       {
-               // This is the only potentially "dangerous" thing we can do here, so we check the referer
-               confirm_referrer('admin_maintenance.php');
-
-               $truncate_sql = ($db_type != 'sqlite' && $db_type != 'pgsql') ? 'TRUNCATE TABLE ' : 'DELETE FROM ';
-               $db->query($truncate_sql.$db->prefix.'search_matches') or error('Unable to empty search index match table', __FILE__, __LINE__, $db->error());
-               $db->query($truncate_sql.$db->prefix.'search_words') or error('Unable to empty search index words table', __FILE__, __LINE__, $db->error());
-
-               // Reset the sequence for the search words (not needed for SQLite)
-               switch ($db_type)
-               {
-                       case 'mysql':
-                       case 'mysqli':
-                               $result = $db->query('ALTER TABLE '.$db->prefix.'search_words auto_increment=1') or error('Unable to update table auto_increment', __FILE__, __LINE__, $db->error());
-                               break;
-
-                       case 'pgsql';
-                               $result = $db->query('SELECT setval(\''.$db->prefix.'search_words_id_seq\', 1, false)') or error('Unable to update sequence', __FILE__, __LINE__, $db->error());
-               }
-       }
-
-?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-<title><?php echo pun_htmlspecialchars($pun_config['o_board_title']) ?> / Reconstruction des index de recherches ...</title>
-<style type="text/css">
-body {
-       font: 10px Verdana, Arial, Helvetica, sans-serif;
-       color: #333333;
-       background-color: #FFFFFF
-}
-</style>
-</head>
-<body>
-
-Reconstruction des index ... C'est peut être le bon moment pour aller prendre un café :-)<br /><br />
-
-<?php
-
-       require PUN_ROOT.'include/search_idx.php';
-
-       // Fetch posts to process
-       $result = $db->query('SELECT id FROM '.$db->prefix.'topics WHERE id>='.$start_at.' ORDER BY id LIMIT '.$per_page) or error('Unable to fetch topic list', __FILE__, __LINE__, $db->error());
-       $topics = array();
-       while ($cur_topic = $db->fetch_row($result))
-               $topics[] = $cur_topic[0];
-
-       $result = $db->query('SELECT topic_id, id, message FROM '.$db->prefix.'posts WHERE topic_id IN ('.implode(',', $topics).') ORDER BY topic_id') or error('Unable to fetch topic/post info', __FILE__, __LINE__, $db->error());
-
-       $cur_topic = 0;
-       while ($cur_post = $db->fetch_row($result))
-       {
-               if ($cur_post[0] <> $cur_topic)
-               {
-                       // Fetch subject and ID of first post in topic
-                       $result2 = $db->query('SELECT p.id, t.subject, MIN(p.posted) AS first FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'topics AS t ON t.id=p.topic_id WHERE t.id='.$cur_post[0].' GROUP BY p.id, t.subject ORDER BY first LIMIT 1') or error('Unable to fetch topic info', __FILE__, __LINE__, $db->error());
-                       list($first_post, $subject) = $db->fetch_row($result2);
-
-                       $cur_topic = $cur_post[0];
-               }
-
-               echo 'Traitement du message <strong>'.$cur_post[1].'</strong> de la discussion <strong>'.$cur_post[0].'</strong><br />'."\n";
-
-               if ($cur_post[1] == $first_post)        // This is the "topic post" so we have to index the subject as well
-                       update_search_index('post', $cur_post[1], $cur_post[2], $subject);
-               else
-                       update_search_index('post', $cur_post[1], $cur_post[2]);
-       }
-
-       // Check if there is more work to do
-       $result = $db->query('SELECT id FROM '.$db->prefix.'topics WHERE id>'.$cur_topic.' ORDER BY id ASC LIMIT 1') or error('Unable to fetch topic info', __FILE__, __LINE__, $db->error());
-
-       $query_str = ($db->num_rows($result)) ? '?i_per_page='.$per_page.'&i_start_at='.$db->result($result) : '';
-
-       $db->end_transaction();
-       $db->close();
-
-       exit('<script type="text/javascript">window.location="admin_maintenance.php'.$query_str.'"</script><br />La redirection javaScript a échouée. <a href="admin_maintenance.php'.$query_str.'">Cliquez ici</a> pour continuer.');
-}
-
-
-// Get the first post ID from the db
-$result = $db->query('SELECT id FROM '.$db->prefix.'topics ORDER BY id LIMIT 1') or error('Unable to fetch topic info', __FILE__, __LINE__, $db->error());
-if ($db->num_rows($result))
-       $first_id = $db->result($result);
-
-$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Maintenance';
-require PUN_ROOT.'header.php';
-
-generate_admin_menu('maintenance');
-
-?>
-       <div class="blockform">
-               <h2><span>Maintenance des Forums</span></h2>
-               <div class="box">
-                       <form method="get" action="admin_maintenance.php">
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Reconstruction des index de recherches</legend>
-                                               <div class="infldset">
-                                                       <p>Si vous avez ajouté, modifié ou supprimé manuellement des messages dans la base de données ou si vous avez des problèmes avec la  recherche vous devriez reconstruire les index de recherche (supprime les mots inutiles). Pour de meilleures performances, pendant la reconstruction des index, vous devriez mettre vos forums en mode maintenance. <strong>La reconstruction des index de recherches peut prendre beaucoup de temps et augmenter considérablement la charge serveur au cours du processus de reconstruction&nbsp;!</strong></p>
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row">Discussions par cycle</th>
-                                                                       <td>
-                                                                               <input type="text" name="i_per_page" size="7" maxlength="7" value="100" tabindex="1" />
-                                                                               <span>Le nombre de discussions à traiter par cycle. Si vous saisissez 100, une centaine de discussions sera traitée et ensuite la page sera actualisée. Cela permet d'éviter que le script n'atteigne le temps limite d'exécution pendant le processus de reconstruction.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">ID de la discussion de départ</th>
-                                                                       <td>
-                                                                               <input type="text" name="i_start_at" size="7" maxlength="7" value="<?php echo (isset($first_id)) ? $first_id : 0 ?>" tabindex="2" />
-                                                                               <span>L'ID de discussion de laquelle vous souhaitez lancer la reconstruction. La valeur par défaut est le premier ID disponible dans la base de données. Normalement vous ne devriez pas avoir à changer ceci.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Vider index</th>
-                                                                       <td class="inputadmin">
-                                                                               <span><input type="checkbox" name="i_empty_index" value="1" tabindex="3" checked="checked" />&nbsp;&nbsp;Cochez cette option si vous souhaitez que les index de recherches soient vidés avant la reconstruction (voir ci-dessous).</span>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                                       <p class="topspace">Lorsque le processus sera terminé vous serez redirigé sur cette page. Il est fortement recommandé que Javascript soit activé sur votre navigateur pour effectuer la reconstruction (pour une redirection automatique lorsqu'un cycle est achevé). Si vous êtes obligé d'abandonner le processus de reconstruction, notez l'ID du dernier sujet traité et saisissez cet ID+1 dans le champ "ID de la discussion de départ" quand/si vous reprennez le processus  ("Vider index" ne doit pas être coché).</p>
-                                                       <div class="fsetsubmit"><input type="submit" name="rebuild_index" value=" Reconstruire index " tabindex="4" /></div>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                       </form>
-               </div>
-       </div>
-       <div class="clearer"></div>
-</div>
-<?php
-
-require PUN_ROOT.'footer.php';
diff --git a/fluxbb/admin_options.php b/fluxbb/admin_options.php
deleted file mode 100644 (file)
index 94daeb1..0000000
+++ /dev/null
@@ -1,702 +0,0 @@
-<?php
-/***********************************************************************
-
-  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)
-
-  This file is part of PunBB.
-
-  PunBB is free software; you can redistribute it and/or modify it
-  under the terms of the GNU General Public License as published
-  by the Free Software Foundation; either version 2 of the License,
-  or (at your option) any later version.
-
-  PunBB is distributed in the hope that it will be useful, but
-  WITHOUT ANY WARRANTY; without even the implied warranty of
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-  GNU General Public License for more details.
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-  MA  02111-1307  USA
-
-************************************************************************/
-
-
-// Tell header.php to use the admin template
-define('PUN_ADMIN_CONSOLE', 1);
-
-define('PUN_ROOT', './');
-require PUN_ROOT.'include/common.php';
-require PUN_ROOT.'include/common_admin.php';
-
-
-if ($pun_user['g_id'] > PUN_ADMIN)
-       message($lang_common['No permission']);
-
-
-if (isset($_POST['form_sent']))
-{
-       // Custom referrer check (so we can output a custom error message)
-       if (!preg_match('#^'.preg_quote(str_replace('www.', '', $pun_config['o_base_url']).'/admin_options.php', '#').'#i', str_replace('www.', '', (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''))))
-               message('Mauvais HTTP_REFERER. Si vous avez déplacé ces forums d\'un endroit à un autre ou si vous avez changé de nom de domaine, vous devez mettre à jour manuellement l\'URL de base dans la base de données (cherchez o_base_url dans la table config) et ensuite videz le cache en effaçant tous les fichiers .php du répertoire /cache.');
-
-       $form = array_map('trim', $_POST['form']);
-
-       if ($form['board_title'] == '')
-               message('Vous devez saisir un titre pour vos forums.');
-
-       // Clean default_lang
-       $form['default_lang'] = preg_replace('#[\.\\\/]#', '', $form['default_lang']);
-
-       require PUN_ROOT.'include/email.php';
-
-       $form['admin_email'] = strtolower($form['admin_email']);
-       if (!is_valid_email($form['admin_email']))
-               message('L\'adresse email administrateur que vous avez saisi est incorrecte.');
-
-       $form['webmaster_email'] = strtolower($form['webmaster_email']);
-       if (!is_valid_email($form['webmaster_email']))
-               message('L\'adresse email webmaster que vous avez saisi est incorrecte.');
-
-       if ($form['mailing_list'] != '')
-               $form['mailing_list'] = strtolower(preg_replace('/[\s]/', '', $form['mailing_list']));
-
-       // Make sure base_url doesn't end with a slash
-       if (substr($form['base_url'], -1) == '/')
-               $form['base_url'] = substr($form['base_url'], 0, -1);
-
-       // Clean avatars_dir
-       $form['avatars_dir'] = str_replace("\0", '', $form['avatars_dir']);
-
-       // Make sure avatars_dir doesn't end with a slash
-       if (substr($form['avatars_dir'], -1) == '/')
-               $form['avatars_dir'] = substr($form['avatars_dir'], 0, -1);
-
-       if ($form['additional_navlinks'] != '')
-               $form['additional_navlinks'] = trim(pun_linebreaks($form['additional_navlinks']));
-
-       if ($form['announcement_message'] != '')
-               $form['announcement_message'] = pun_linebreaks($form['announcement_message']);
-       else
-       {
-               $form['announcement_message'] = 'Saisissez votre annonce ici.';
-
-               if ($form['announcement'] == '1')
-                       $form['announcement'] = '0';
-       }
-
-       if ($form['rules_message'] != '')
-               $form['rules_message'] = pun_linebreaks($form['rules_message']);
-       else
-       {
-               $form['rules_message'] = 'Saisissez les règles d\'utilisation ici.';
-
-               if ($form['rules'] == '1')
-                       $form['rules'] = '0';
-       }
-
-       if ($form['maintenance_message'] != '')
-               $form['maintenance_message'] = pun_linebreaks($form['maintenance_message']);
-       else
-       {
-               $form['maintenance_message'] = 'Les forums sont temporairement fermés pour des raisons de maintenance. Veuillez essayer à nouveau d\'ici quelques minutes.<br />\\n<br />\\n/Administrateur';
-
-               if ($form['maintenance'] == '1')
-                       $form['maintenance'] = '0';
-       }
-
-       $form['timeout_visit'] = intval($form['timeout_visit']);
-       $form['timeout_online'] = intval($form['timeout_online']);
-       $form['redirect_delay'] = intval($form['redirect_delay']);
-       $form['topic_review'] = intval($form['topic_review']);
-       $form['disp_topics_default'] = intval($form['disp_topics_default']);
-       $form['disp_posts_default'] = intval($form['disp_posts_default']);
-       $form['indent_num_spaces'] = intval($form['indent_num_spaces']);
-       $form['avatars_width'] = intval($form['avatars_width']);
-       $form['avatars_height'] = intval($form['avatars_height']);
-       $form['avatars_size'] = intval($form['avatars_size']);
-
-       if ($form['timeout_online'] >= $form['timeout_visit'])
-               message('La valeur de "Temps mort en ligne" doit être inférieur à la valeur de "Temps mort de visite".');
-
-       while (list($key, $input) = @each($form))
-       {
-               // Only update values that have changed
-               if (array_key_exists('o_'.$key, $pun_config) && $pun_config['o_'.$key] != $input)
-               {
-                       if ($input != '' || is_int($input))
-                               $value = '\''.$db->escape($input).'\'';
-                       else
-                               $value = 'NULL';
-
-                       $db->query('UPDATE '.$db->prefix.'config SET conf_value='.$value.' WHERE conf_name=\'o_'.$db->escape($key).'\'') or error('Unable to update board config', __FILE__, __LINE__, $db->error());
-               }
-       }
-
-       // Regenerate the config cache
-       require_once PUN_ROOT.'include/cache.php';
-       generate_config_cache();
-
-       redirect('admin_options.php', 'Options modifiées. Redirection ...');
-}
-
-
-$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Options';
-$form_name = 'update_options';
-require PUN_ROOT.'header.php';
-
-generate_admin_menu('options');
-
-?>
-       <div class="blockform">
-               <h2><span>Options</span></h2>
-               <div class="box">
-                       <form method="post" action="admin_options.php?action=foo">
-                               <p class="submittop"><input type="submit" name="save" value=" Enregistrer " /></p>
-                               <div class="inform">
-                               <input type="hidden" name="form_sent" value="1" />
-                                       <fieldset>
-                                               <legend>Essentiel</legend>
-                                               <div class="infldset">
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row">Titre forums</th>
-                                                                       <td>
-                                                                               <input type="text" name="form[board_title]" size="50" maxlength="255" value="<?php echo pun_htmlspecialchars($pun_config['o_board_title']) ?>" />
-                                                                               <span>Le titre de ces forums (affiché en haut de chaques pages). Ce champ ne peut <strong>pas</strong> contenir d'<acronym title="HyperText Markup Language" lang="en">HTML</acronym>.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Description forums</th>
-                                                                       <td>
-                                                                               <input type="text" name="form[board_desc]" size="50" maxlength="255" value="<?php echo pun_htmlspecialchars($pun_config['o_board_desc']) ?>" />
-                                                                               <span>Une courte description de vos forums (affiché en haut de chaques pages). Ce champ peut contenir du <acronym title="HyperText Markup Language" lang="en">HTML</acronym>.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row"><acronym title="Uniform Resource Locator" lang="en">URL</acronym> de base</th>
-                                                                       <td>
-                                                                               <input type="text" name="form[base_url]" size="50" maxlength="100" value="<?php echo $pun_config['o_base_url'] ?>" />
-                                                                               <span>L'<acronym title="Uniform Resource Locator" lang="en">URL</acronym> de ces forums sans slash à la fin (ex :  http://www.mon-domaine.com/forums). Ce champ <strong>doit</strong> être correct pour que toutes les fonctions administrateurs et modérateurs soient opérationnelles. Si vous obtenez une erreur "Bad referer", il est probablement incorrect.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Fuseau horaire serveur</th>
-                                                                       <td>
-                                                                               <select name="form[server_timezone]">
-                                                                                       <option value="-12"<?php if ($pun_config['o_server_timezone'] == -12 ) echo ' selected="selected"' ?>>-12</option>
-                                                                                       <option value="-11"<?php if ($pun_config['o_server_timezone'] == -11) echo ' selected="selected"' ?>>-11</option>
-                                                                                       <option value="-10"<?php if ($pun_config['o_server_timezone'] == -10) echo ' selected="selected"' ?>>-10</option>
-                                                                                       <option value="-9.5"<?php if ($pun_config['o_server_timezone'] == -9.5) echo ' selected="selected"' ?>>-09.5</option>
-                                                                                       <option value="-9"<?php if ($pun_config['o_server_timezone'] == -9 ) echo ' selected="selected"' ?>>-09</option>
-                                                                                       <option value="-8.5"<?php if ($pun_config['o_server_timezone'] == -8.5) echo ' selected="selected"' ?>>-08.5</option>
-                                                                                       <option value="-8"<?php if ($pun_config['o_server_timezone'] == -8 ) echo ' selected="selected"' ?>>-08 PST</option>
-                                                                                       <option value="-7"<?php if ($pun_config['o_server_timezone'] == -7 ) echo ' selected="selected"' ?>>-07 MST</option>
-                                                                                       <option value="-6"<?php if ($pun_config['o_server_timezone'] == -6 ) echo ' selected="selected"' ?>>-06 CST</option>
-                                                                                       <option value="-5"<?php if ($pun_config['o_server_timezone'] == -5 ) echo ' selected="selected"' ?>>-05 EST</option>
-                                                                                       <option value="-4"<?php if ($pun_config['o_server_timezone'] == -4 ) echo ' selected="selected"' ?>>-04 AST</option>
-                                                                                       <option value="-3.5"<?php if ($pun_config['o_server_timezone'] == -3.5) echo ' selected="selected"' ?>>-03.5</option>
-                                                                                       <option value="-3"<?php if ($pun_config['o_server_timezone'] == -3 ) echo ' selected="selected"' ?>>-03 ADT</option>
-                                                                                       <option value="-2"<?php if ($pun_config['o_server_timezone'] == -2 ) echo ' selected="selected"' ?>>-02</option>
-                                                                                       <option value="-1"<?php if ($pun_config['o_server_timezone'] == -1) echo ' selected="selected"' ?>>-01</option>
-                                                                                       <option value="0"<?php if ($pun_config['o_server_timezone'] == 0) echo ' selected="selected"' ?>>00 GMT</option>
-                                                                                       <option value="1"<?php if ($pun_config['o_server_timezone'] == 1) echo ' selected="selected"' ?>>+01 CET</option>
-                                                                                       <option value="2"<?php if ($pun_config['o_server_timezone'] == 2 ) echo ' selected="selected"' ?>>+02</option>
-                                                                                       <option value="3"<?php if ($pun_config['o_server_timezone'] == 3 ) echo ' selected="selected"' ?>>+03</option>
-                                                                                       <option value="3.5"<?php if ($pun_config['o_server_timezone'] == 3.5) echo ' selected="selected"' ?>>+03.5</option>
-                                                                                       <option value="4"<?php if ($pun_config['o_server_timezone'] == 4 ) echo ' selected="selected"' ?>>+04</option>
-                                                                                       <option value="4.5"<?php if ($pun_config['o_server_timezone'] == 4.5) echo ' selected="selected"' ?>>+04.5</option>
-                                                                                       <option value="5"<?php if ($pun_config['o_server_timezone'] == 5 ) echo ' selected="selected"' ?>>+05</option>
-                                                                                       <option value="5.5"<?php if ($pun_config['o_server_timezone'] == 5.5) echo ' selected="selected"' ?>>+05.5</option>
-                                                                                       <option value="6"<?php if ($pun_config['o_server_timezone'] == 6 ) echo ' selected="selected"' ?>>+06</option>
-                                                                                       <option value="6.5"<?php if ($pun_config['o_server_timezone'] == 6.5) echo ' selected="selected"' ?>>+06.5</option>
-                                                                                       <option value="7"<?php if ($pun_config['o_server_timezone'] == 7 ) echo ' selected="selected"' ?>>+07</option>
-                                                                                       <option value="8"<?php if ($pun_config['o_server_timezone'] == 8 ) echo ' selected="selected"' ?>>+08</option>
-                                                                                       <option value="9"<?php if ($pun_config['o_server_timezone'] == 9 ) echo ' selected="selected"' ?>>+09</option>
-                                                                                       <option value="9.5"<?php if ($pun_config['o_server_timezone'] == 9.5) echo ' selected="selected"' ?>>+09.5</option>
-                                                                                       <option value="10"<?php if ($pun_config['o_server_timezone'] == 10) echo ' selected="selected"' ?>>+10</option>
-                                                                                       <option value="10.5"<?php if ($pun_config['o_server_timezone'] == 10.5) echo ' selected="selected"' ?>>+10.5</option>
-                                                                                       <option value="11"<?php if ($pun_config['o_server_timezone'] == 11) echo ' selected="selected"' ?>>+11</option>
-                                                                                       <option value="11.5"<?php if ($pun_config['o_server_timezone'] == 11.5) echo ' selected="selected"' ?>>+11.5</option>
-                                                                                       <option value="12"<?php if ($pun_config['o_server_timezone'] == 12 ) echo ' selected="selected"' ?>>+12</option>
-                                                                                       <option value="13"<?php if ($pun_config['o_server_timezone'] == 13 ) echo ' selected="selected"' ?>>+13</option>
-                                                                               </select>
-                                                                               <span>Le fuseau horaire du serveur où est installé FluxBB.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Langage par défaut</th>
-                                                                       <td>
-                                                                               <select name="form[default_lang]">
-<?php
-
-               $languages = array();
-               $d = dir(PUN_ROOT.'lang');
-               while (($entry = $d->read()) !== false)
-               {
-                       if ($entry != '.' && $entry != '..' && is_dir(PUN_ROOT.'lang/'.$entry) && file_exists(PUN_ROOT.'lang/'.$entry.'/common.php'))
-                               $languages[] = $entry;
-               }
-               $d->close();
-
-               @natsort($languages);
-
-               while (list(, $temp) = @each($languages))
-               {
-                       if ($pun_config['o_default_lang'] == $temp)
-                               echo "\t\t\t\t\t\t\t\t\t\t\t".'<option value="'.$temp.'" selected="selected">'.$temp.'</option>'."\n";
-                       else
-                               echo "\t\t\t\t\t\t\t\t\t\t\t".'<option value="'.$temp.'">'.$temp.'</option>'."\n";
-               }
-
-?>
-                                                                               </select>
-                                                                               <span>Choisissez la langue par défaut qui sera utilisée si l'utilisateur est un invité ou pour les utilisateurs qui n'auront pas changé de langage dans leur profil. Si vous supprimez un pack de langage vous devrez mettre à jour ce réglage.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Style par défaut</th>
-                                                                       <td>
-                                                                               <select name="form[default_style]">
-<?php
-
-               $styles = array();
-               $d = dir(PUN_ROOT.'style');
-               while (($entry = $d->read()) !== false)
-               {
-                       if (substr($entry, strlen($entry)-4) == '.css')
-                               $styles[] = substr($entry, 0, strlen($entry)-4);
-               }
-               $d->close();
-
-               @natsort($styles);
-
-               while (list(, $temp) = @each($styles))
-               {
-                       if ($pun_config['o_default_style'] == $temp)
-                               echo "\t\t\t\t\t\t\t\t\t".'<option value="'.$temp.'" selected="selected">'.str_replace('_', ' ', $temp).'</option>'."\n";
-                       else
-                               echo "\t\t\t\t\t\t\t\t\t".'<option value="'.$temp.'">'.str_replace('_', ' ', $temp).'</option>'."\n";
-               }
-
-?>
-                                                                               </select>
-                                                                               <span>Séléctionnez le style par défaut qui sera utilisé par les visiteurs ou les utilisateurs qui n'ont pas changés de style dans leur profil.</span></td>
-                                                               </tr>
-                                                       </table>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Dates, heures et limites de temps</legend>
-                                               <div class="infldset">
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row">Format heure</th>
-                                                                       <td>
-                                                                               <input type="text" name="form[time_format]" size="25" maxlength="25" value="<?php echo pun_htmlspecialchars($pun_config['o_time_format']) ?>" />
-                                                                               <span>[Format actuel : <?php echo date($pun_config['o_time_format']) ?>]&nbsp;Voir <a href="http://www.php.net/manual/fr/function.date.php">ici</a> pour les options de formatage.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Date format</th>
-                                                                       <td>
-                                                                               <input type="text" name="form[date_format]" size="25" maxlength="25" value="<?php echo pun_htmlspecialchars($pun_config['o_date_format']) ?>" />
-                                                                               <span>[Format actuel : <?php echo date($pun_config['o_date_format']) ?>]&nbsp;Voir <a href="http://www.php.net/manual/fr/function.date.php">ici</a> pour les options de formatage.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Temps mort de visite</th>
-                                                                       <td>
-                                                                               <input type="text" name="form[timeout_visit]" size="5" maxlength="5" value="<?php echo $pun_config['o_timeout_visit'] ?>" />
-                                                                               <span>Nombre de secondes qu'un utilisateur devra rester inactif avant que les données de sa dernière visite soient mises à jours (affecte principalement les indicateurs de nouveaux messages).</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Temps mort en ligne</th>
-                                                                       <td>
-                                                                               <input type="text" name="form[timeout_online]" size="5" maxlength="5" value="<?php echo $pun_config['o_timeout_online'] ?>" />
-                                                                               <span>Nombre de secondes qu'un utilisateur devra rester inactif avant qu'il ne soit supprimé de la liste des utilisateurs en ligne.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Temps de redirection</th>
-                                                                       <td>
-                                                                               <input type="text" name="form[redirect_delay]" size="3" maxlength="3" value="<?php echo $pun_config['o_redirect_delay'] ?>" />
-                                                                               <span>Nombre de secondes à patienter avant d'être redirigé. Si ce champ est réglé à 0, aucune page de redirection ne sera affichée mais cela n'est pas recommandé.</span>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Afficher</legend>
-                                               <div class="infldset">
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row">Numéro de version</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[show_version]" value="1"<?php if ($pun_config['o_show_version'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[show_version]" value="0"<?php if ($pun_config['o_show_version'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Affiche le numéro de version de FluxBB en bas de page.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Infos utilisateurs dans les messages</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[show_user_info]" value="1"<?php if ($pun_config['o_show_user_info'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[show_user_info]" value="0"<?php if ($pun_config['o_show_user_info'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Affiche des informations sur les utilisateurs sous leur nom d'utilisateur lorsque l'on affiche un sujet. Affiche le lieu, la date d'inscription, le nombre de message et les liens de contact (e-mail et site web).</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Nombre de messages par utilisateur</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[show_post_count]" value="1"<?php if ($pun_config['o_show_post_count'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[show_post_count]" value="0"<?php if ($pun_config['o_show_post_count'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Affiche le nombre de messages qu'un utilisateur a écrit (sur la page d'un sujet, son profil et la liste utilisateurs).</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Émoticônes</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[smilies]" value="1"<?php if ($pun_config['o_smilies'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[smilies]" value="0"<?php if ($pun_config['o_smilies'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Convertir les émoticônes en petites images.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Émoticônes dans les signatures</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[smilies_sig]" value="1"<?php if ($pun_config['o_smilies_sig'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[smilies_sig]" value="0"<?php if ($pun_config['o_smilies_sig'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Convertir les émoticônes en petites images dans les signatures.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Créer des liens cliquables</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[make_links]" value="1"<?php if ($pun_config['o_make_links'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[make_links]" value="0"<?php if ($pun_config['o_make_links'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Lorsque cette fonction est activée, FluxBB détecte automatiquement lors de l'envoi d'un nouveau message toutes les <acronym title="Uniform Resource Locator" lang="en">URL</acronym> qu'il contient et créer des liens cliquables.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Résumés des discussions</th>
-                                                                       <td>
-                                                                               <input type="text" name="form[topic_review]" size="3" maxlength="3" value="<?php echo $pun_config['o_topic_review'] ?>" />
-                                                                               <span>Nombre maximum  de messages à afficher quand on écrit une réponse. 0 pour désactiver.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Discussions par page</th>
-                                                                       <td>
-                                                                               <input type="text" name="form[disp_topics_default]" size="3" maxlength="3" value="<?php echo $pun_config['o_disp_topics_default'] ?>" />
-                                                                               <span>Le nombre de discussions par défaut à afficher sur la page d'un forum. Les utilisateurs inscrits peuvent personnaliser cette option.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Messages par page</th>
-                                                                       <td>
-                                                                               <input type="text" name="form[disp_posts_default]" size="3" maxlength="3" value="<?php echo $pun_config['o_disp_posts_default'] ?>" />
-                                                                               <span>Le nombre de messages par défaut à afficher sur la page d'une discussion. Les utilisateurs inscrits peuvent personnaliser cette option.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Taille du retrait</th>
-                                                                       <td>
-                                                                               <input type="text" name="form[indent_num_spaces]" size="3" maxlength="3" value="<?php echo $pun_config['o_indent_num_spaces'] ?>" />
-                                                                               <span>Si réglée à 8, une tabulation usuelle sera utilisée pour afficher du texte avec les balises [code][/code]. Sinon c'est le nombre d'espaces qui sera utilisé pour mettre en retrait le texte.</span>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Fonctionnalités</legend>
-                                               <div class="infldset">
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row">Réponse rapide</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[quickpost]" value="1"<?php if ($pun_config['o_quickpost'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[quickpost]" value="0"<?php if ($pun_config['o_quickpost'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Lorsque cette option est activée, FluxBB ajoute un formulaire de réponse au bas des discussions. Ceci permet aux utilisateurs d'écrire des réponses directement depuis l'écran de lecture des discussions.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Utilisateurs en ligne</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[users_online]" value="1"<?php if ($pun_config['o_users_online'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[users_online]" value="0"<?php if ($pun_config['o_users_online'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Affiche sur la page d'accueil des forums des informations concernant les utilisateurs qui sont en ligne lors de l'affichage de la page.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row"><a name="censoring">Mots à censurer</a></th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[censoring]" value="1"<?php if ($pun_config['o_censoring'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[censoring]" value="0"<?php if ($pun_config['o_censoring'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Activez cette option pour censurer des mots prédéfinis. Pour plus d'information, voir la page d'administration des <a href="admin_censoring.php">Mots censurés</a>.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row"><a name="ranks">Rangs utilisateurs</a></th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[ranks]" value="1"<?php if ($pun_config['o_ranks'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[ranks]" value="0"<?php if ($pun_config['o_ranks'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Activez cette option pour utiliser les rangs utilisateurs. Pour plus d'information, voir la page d'administration des <a href="admin_ranks.php">Rangs utilisateurs</a>.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Utilisateur a écrit récemment</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[show_dot]" value="1"<?php if ($pun_config['o_show_dot'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[show_dot]" value="0"<?php if ($pun_config['o_show_dot'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Cette fonctionnalité permet d'afficher un point devant les sujets dans le cas où l'utilisateur identifié aurait récemment écrit dans les sujets. Désactivez si vous constatez d'importantes charges serveur.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Saut rapide</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[quickjump]" value="1"<?php if ($pun_config['o_quickjump'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[quickjump]" value="0"<?php if ($pun_config['o_quickjump'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Active le menu déroulant de saut rapide (saut de forum en forum).</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Compression GZip</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[gzip]" value="1"<?php if ($pun_config['o_gzip'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[gzip]" value="0"<?php if ($pun_config['o_gzip'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Si activée, FluxBB compressera la sortie envoyée aux navigateurs. Ceci devrait réduire la consommation de bande passante mais utilisera un peu plus le <acronym title="Central Processing Unit" lang="en">CPU</acronym> (processeur système). Cette option nécessite que <acronym title="PHP: Hypertext Preprocessor" lang="en">PHP</acronym> soit configuré avec zlib (--with-zlib). Note : Si vous avez déjà un des modules Apache mod_gzip ou mod_deflate d'installé et de configuré pour compresser les scripts <acronym title="PHP: Hypertext Preprocessor" lang="en">PHP</acronym>, vous pouvez alors désactiver cette option.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Recherche dans tous les forums</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[search_all_forums]" value="1"<?php if ($pun_config['o_search_all_forums'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[search_all_forums]" value="0"<?php if ($pun_config['o_search_all_forums'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Lorsque cette option est désactivée, les recherches ne peuvent êtres effectuées que sur un forum à la fois. Désactivez si la charge serveur est élevée à cause d'un nombre trop important de recherches.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Items de menu additionnels</th>
-                                                                       <td>
-                                                                               <textarea name="form[additional_navlinks]" rows="3" cols="55"><?php echo pun_htmlspecialchars($pun_config['o_additional_navlinks']) ?></textarea>
-                                                                               <span>En entrant des liens hypertext <acronym title="HyperText Markup Language" lang="en">HTML</acronym> dans cette boite de saisie, autant d'items seront ajoutés au menu de navigation en haut de toutes les pages. Le format pour ajouter un nouveau lien est   X = &lt;a href="URL"&gt;LIEN&lt;/a&gt; où X est la position à laquelle le lien devra être inséré (<abbr title="exemple">ex.</abbr> 0 pour insérer au début et 2 pour insérer après la «&nbsp;liste des membres&nbsp;»). Séparez chaque entrée par un retour à la ligne.</span>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Signalements</legend>
-                                               <div class="infldset">
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row">Méthode de signalement</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[report_method]" value="0"<?php if ($pun_config['o_report_method'] == '0') echo ' checked="checked"' ?> />&nbsp;Interne&nbsp;&nbsp;&nbsp;<input type="radio" name="form[report_method]" value="1"<?php if ($pun_config['o_report_method'] == '1') echo ' checked="checked"' ?> />&nbsp;E-mail&nbsp;&nbsp;&nbsp;<input type="radio" name="form[report_method]" value="2"<?php if ($pun_config['o_report_method'] == '2') echo ' checked="checked"' ?> />&nbsp;Les deux
-                                                                               <span>Choisissez la méthode pour être avertis de nouveaux signalements. Pour la méthode par e-mail la liste d'adresses ci-dessous sera utilisée.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Signalement nouvelle inscription</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[regs_report]" value="1"<?php if ($pun_config['o_regs_report'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[regs_report]" value="0"<?php if ($pun_config['o_regs_report'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Si activée, FluxBB enverra un e-mail à chacune des adresses de la liste ci-dessous à chaque nouvelle inscription sur les forums.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Liste d'adresses e-mail</th>
-                                                                       <td>
-                                                                               <textarea name="form[mailing_list]" rows="5" cols="55"><?php echo pun_htmlspecialchars($pun_config['o_mailing_list']) ?></textarea>
-                                                                               <span>Utilisez une virgule pour séparer les adresses. Les adresses de cette liste sont les destinataires des signalements envoyés par e-mail.</span>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Avatars</legend>
-                                               <div class="infldset">
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row">Utiliser les avatars</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[avatars]" value="1"<?php if ($pun_config['o_avatars'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[avatars]" value="0"<?php if ($pun_config['o_avatars'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Si cette option est activée, les utilisateurs pourront envoyer sur le serveur un avatar qui sera affiché sous leur titre/rang.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Répertoire avatars</th>
-                                                                       <td>
-                                                                               <input type="text" name="form[avatars_dir]" size="35" maxlength="50" value="<?php echo pun_htmlspecialchars($pun_config['o_avatars_dir']) ?>" />
-                                                                               <span>Le dossier où les avatars seront envoyés (chemin relatif au dossier racine de FluxBB). <acronym title="PHP: Hypertext Preprocessor" lang="en">PHP</acronym> doit avoir les droits en écriture dans ce répertoire.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Largeur maximum</th>
-                                                                       <td>
-                                                                               <input type="text" name="form[avatars_width]" size="5" maxlength="5" value="<?php echo $pun_config['o_avatars_width'] ?>" />
-                                                                               <span>La largeur maximum admise (exprimée en pixels) pour les avatars (60 est recommandé).</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Hauteur maximum</th>
-                                                                       <td>
-                                                                               <input type="text" name="form[avatars_height]" size="5" maxlength="5" value="<?php echo $pun_config['o_avatars_height'] ?>" />
-                                                                               <span>La hauteur maximum admise (exprimée en pixels) pour les avatars (60 est recommandé).</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Taille maximum</th>
-                                                                       <td>
-                                                                               <input type="text" name="form[avatars_size]" size="6" maxlength="6" value="<?php echo $pun_config['o_avatars_size'] ?>" />
-                                                                               <span>La taille maximum admise (exprimée en octets) pour les avatars (10240 est recommandé).</span>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>E-mail</legend>
-                                               <div class="infldset">
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row">E-mail administrateur</th>
-                                                                       <td>
-                                                                               <input type="text" name="form[admin_email]" size="50" maxlength="50" value="<?php echo $pun_config['o_admin_email'] ?>" />
-                                                                               <span>L'adresse e-mail de l'administrateur des forums.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">E-mail webmaster</th>
-                                                                       <td>
-                                                                               <input type="text" name="form[webmaster_email]" size="50" maxlength="50" value="<?php echo $pun_config['o_webmaster_email'] ?>" />
-                                                                               <span>Ceci est l'adresse qui sera utilisée par tous les messages envoyés par les forums.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Abonnements</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[subscriptions]" value="1"<?php if ($pun_config['o_subscriptions'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[subscriptions]" value="0"<?php if ($pun_config['o_subscriptions'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Activer l'abonnement des utilisateurs aux discussions  (réception d'un e-mail lors d'une réponse).</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Adresse serveur <acronym title="Simple Mail Transfer Protocol" lang="en">SMTP</acronym></th>
-                                                                       <td>
-                                                                               <input type="text" name="form[smtp_host]" size="30" maxlength="100" value="<?php echo pun_htmlspecialchars($pun_config['o_smtp_host']) ?>" />
-                                                                               <span>L'adresse d'un serveur <acronym title="Simple Mail Transfer Protocol" lang="en">SMTP</acronym> externe pour envoyer des e-mails. Vous pouvez spécifier un numéro de port si le serveur <acronym title="Simple Mail Transfer Protocol" lang="en">SMTP</acronym> n'utilise pas le port par défaut 25 (<abbr title="exemple">ex.</abbr> smtp.monhote.com:3580). Laissez vide pour utiliser le programme local d'envoi d'e-mails.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Nom d'utilisateur <acronym title="Simple Mail Transfer Protocol" lang="en">SMTP</acronym></th>
-                                                                       <td>
-                                                                               <input type="text" name="form[smtp_user]" size="25" maxlength="50" value="<?php echo pun_htmlspecialchars($pun_config['o_smtp_user']) ?>" />
-                                                                               <span>Nom d'utilisateur du serveur <acronym title="Simple Mail Transfer Protocol" lang="en">SMTP</acronym>. Saisissez un nom d'utilisateur seulement si cela est nécessaire pour le serveur <acronym title="Simple Mail Transfer Protocol" lang="en">SMTP</acronym> (la plupart des serveurs <strong>ne demande pas</strong> d'authentification).</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Mot de passe <acronym title="Simple Mail Transfer Protocol" lang="en">SMTP</acronym></th>
-                                                                       <td>
-                                                                               <input type="text" name="form[smtp_pass]" size="25" maxlength="50" value="<?php echo pun_htmlspecialchars($pun_config['o_smtp_pass']) ?>" />
-                                                                               <span>Le mot de passe pour le serveur <acronym title="Simple Mail Transfer Protocol" lang="en">SMTP</acronym>. Saisissez un mot de passe seulement si cela est nécessaire pour le serveur <acronym title="Simple Mail Transfer Protocol" lang="en">SMTP</acronym> (la plupart des serveurs <strong>ne demande pas</strong> d'authentification).</span>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Inscriptions</legend>
-                                               <div class="infldset">
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row">Autoriser les nouvelles inscriptions</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[regs_allow]" value="1"<?php if ($pun_config['o_regs_allow'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[regs_allow]" value="0"<?php if ($pun_config['o_regs_allow'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Permet d'accepter ou non les nouvelles inscriptions aux forums. Désactivez seulement en cas de circonstances spéciales.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Vérification des inscriptions</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[regs_verify]" value="1"<?php if ($pun_config['o_regs_verify'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[regs_verify]" value="0"<?php if ($pun_config['o_regs_verify'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Si cette option est activée, lors de leur inscription les utilisateurs recevront par e-mail un mot de passe aléatoire. Ils pourront alors s'identifier et, si ils le souhaitent, changer le mot de passe depuis leur profil. Cette option nécessite que les utilisateurs valident leur adresse e-mail si jamais ils veulent la changer depuis leur profil. C'est une bonne méthode pour limiter les inscriptions abusives et pour être sûr que les utilisateurs ont une adresse e-mail valide dans leur profil.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Activer règles d'utilisation</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[rules]" value="1"<?php if ($pun_config['o_rules'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[rules]" value="0"<?php if ($pun_config['o_rules'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Lorsque cette option est activée, les utilisateurs devront accepter les règles d'utilisation lors de leur inscription (saisissez le texte ci-dessous). Les règles d'utilisation seront également consultables depuis un lien situé dans la barre principale en haut de chaque pages.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Règles d'utilisation</th>
-                                                                       <td>
-                                                                               <textarea name="form[rules_message]" rows="10" cols="55"><?php echo pun_htmlspecialchars($pun_config['o_rules_message']) ?></textarea>
-                                                                               <span>Ici vous pouvez saisir toutes les règles d'utilisation ou toutes autres informations que les utilisateurs devront lire et accepter lors de leur inscription. Si vous activez les règles d'utilisation ci-dessus vous devez saisir quelque chose ici, sinon elles seront désactivées. Ce texte n'est pas analysé comme un message des forums et peut contenir du <acronym title="HyperText Markup Language" lang="en">HTML</acronym>.</span>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Annonce</legend>
-                                               <div class="infldset">
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row">Afficher annonce</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[announcement]" value="1"<?php if ($pun_config['o_announcement'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[announcement]" value="0"<?php if ($pun_config['o_announcement'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Activez cette option pour afficher sur les forums le texte ci-dessous.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Message de l'annonce</th>
-                                                                       <td>
-                                                                               <textarea name="form[announcement_message]" rows="5" cols="55"><?php echo pun_htmlspecialchars($pun_config['o_announcement_message']) ?></textarea>
-                                                                               <span>Ce texte n'est pas analysé comme un message des forums et peut contenir du <acronym title="HyperText Markup Language" lang="en">HTML</acronym>.</span>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Maintenance</legend>
-                                               <div class="infldset">
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row"><a name="maintenance">Mode maintenance</a></th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[maintenance]" value="1"<?php if ($pun_config['o_maintenance'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[maintenance]" value="0"<?php if ($pun_config['o_maintenance'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Lorsque cette fonctionnalité est activée, les forums ne seront disponibles que pour les administrateurs. Ceci peut être utilisé si les forums doivent être fermés temporairement pour maintenance. ATTENTION ! Ne vous déconnectez pas lorsque les forums sont en mode maintenance. Vous ne pourrez pas vous reconnecter.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Message de maintenance</th>
-                                                                       <td>
-                                                                               <textarea name="form[maintenance_message]" rows="5" cols="55"><?php echo pun_htmlspecialchars($pun_config['o_maintenance_message']) ?></textarea>
-                                                                               <span>Le message qui sera affiché aux utilisateurs lorsque les forums sont en mode maintenance. Si laissé vide, le message par défaut sera utilisé. Ce texte n'est pas analysé comme un message des forums et peut contenir du <acronym title="HyperText Markup Language" lang="en">HTML</acronym>.</span>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <p class="submitend"><input type="submit" name="save" value=" Enregistrer " /></p>
-                       </form>
-               </div>
-       </div>
-       <div class="clearer"></div>
-</div>
-<?php
-
-require PUN_ROOT.'footer.php';
diff --git a/fluxbb/admin_permissions.php b/fluxbb/admin_permissions.php
deleted file mode 100644 (file)
index 37644a5..0000000
+++ /dev/null
@@ -1,226 +0,0 @@
-<?php
-/***********************************************************************
-
-  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)
-
-  This file is part of PunBB.
-
-  PunBB is free software; you can redistribute it and/or modify it
-  under the terms of the GNU General Public License as published
-  by the Free Software Foundation; either version 2 of the License,
-  or (at your option) any later version.
-
-  PunBB is distributed in the hope that it will be useful, but
-  WITHOUT ANY WARRANTY; without even the implied warranty of
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-  GNU General Public License for more details.
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-  MA  02111-1307  USA
-
-************************************************************************/
-
-
-// Tell header.php to use the admin template
-define('PUN_ADMIN_CONSOLE', 1);
-
-define('PUN_ROOT', './');
-require PUN_ROOT.'include/common.php';
-require PUN_ROOT.'include/common_admin.php';
-
-
-if ($pun_user['g_id'] > PUN_ADMIN)
-       message($lang_common['No permission']);
-
-
-if (isset($_POST['form_sent']))
-{
-       confirm_referrer('admin_permissions.php');
-
-       $form = array_map('intval', $_POST['form']);
-
-       while (list($key, $input) = @each($form))
-       {
-               // Only update values that have changed
-               if (array_key_exists('p_'.$key, $pun_config) && $pun_config['p_'.$key] != $input)
-                       $db->query('UPDATE '.$db->prefix.'config SET conf_value='.$input.' WHERE conf_name=\'p_'.$db->escape($key).'\'') or error('Unable to update board config', __FILE__, __LINE__, $db->error());
-       }
-
-       // Regenerate the config cache
-       require_once PUN_ROOT.'include/cache.php';
-       generate_config_cache();
-
-       redirect('admin_permissions.php', 'Permissions modifiées. Redirection ...');
-}
-
-
-$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Permissions';
-require PUN_ROOT.'header.php';
-generate_admin_menu('permissions');
-
-?>
-       <div class="blockform">
-               <h2><span>Permissions</span></h2>
-               <div class="box">
-                       <form method="post" action="admin_permissions.php">
-                               <p class="submittop"><input type="submit" name="save" value=" Enregistrer " /></p>
-                               <div class="inform">
-                               <input type="hidden" name="form_sent" value="1" />
-                                       <fieldset>
-                                               <legend>Écriture</legend>
-                                               <div class="infldset">
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row">BBCode</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[message_bbcode]" value="1"<?php if ($pun_config['p_message_bbcode'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[message_bbcode]" value="0"<?php if ($pun_config['p_message_bbcode'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Autoriser l'utilisation du BBCode dans les messages (recommandé).</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Balise Image</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[message_img_tag]" value="1"<?php if ($pun_config['p_message_img_tag'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[message_img_tag]" value="0"<?php if ($pun_config['p_message_img_tag'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Autoriser l'utilisation de la balise BBCode [img][/img] dans les messages.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Message tout en majuscules</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[message_all_caps]" value="1"<?php if ($pun_config['p_message_all_caps'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[message_all_caps]" value="0"<?php if ($pun_config['p_message_all_caps'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Autoriser les messages qui ne contiennent que des lettres en majuscules.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Sujet tout en majuscules</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[subject_all_caps]" value="1"<?php if ($pun_config['p_subject_all_caps'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[subject_all_caps]" value="0"<?php if ($pun_config['p_subject_all_caps'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Autoriser les sujets qui ne contiennent que des lettres en majuscules.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">E-mail invité obligatoire</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[force_guest_email]" value="1"<?php if ($pun_config['p_force_guest_email'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[force_guest_email]" value="0"<?php if ($pun_config['p_force_guest_email'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Obliger les invités à donner une adresse e-mail pour écrire un message.</span>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Signatures</legend>
-                                               <div class="infldset">
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row">BBCode dans les signatures</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[sig_bbcode]" value="1"<?php if ($pun_config['p_sig_bbcode'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[sig_bbcode]" value="0"<?php if ($pun_config['p_sig_bbcode'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Autoriser l'utilisation du BBCodes dans les signatures des utilisateurs.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Balise image dans les signatures</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[sig_img_tag]" value="1"<?php if ($pun_config['p_sig_img_tag'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[sig_img_tag]" value="0"<?php if ($pun_config['p_sig_img_tag'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Autoriser l'utilisation de la balise BBCode [img][/img] dans la signature des utilisateurs (non recommandé).</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Signature tout en majuscules</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[sig_all_caps]" value="1"<?php if ($pun_config['p_sig_all_caps'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[sig_all_caps]" value="0"<?php if ($pun_config['p_sig_all_caps'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Autoriser les signatures qui ne contiennent que des lettres en majuscules.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Longueur maximum des signatures</th>
-                                                                       <td>
-                                                                               <input type="text" name="form[sig_length]" size="5" maxlength="5" value="<?php echo $pun_config['p_sig_length'] ?>" />
-                                                                               <span>Le nombre maximum de caractères qu'une signature d'utilisateur puisse contenir.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Nombre maximum de lignes dans les signatures</th>
-                                                                       <td>
-                                                                               <input type="text" name="form[sig_lines]" size="3" maxlength="3" value="<?php echo $pun_config['p_sig_lines'] ?>" />
-                                                                               <span>Le nombre maximum de lignes qu'une signature d'utilisateur puisse contenir.</span>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Modérateurs</legend>
-                                               <div class="infldset">
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row">Modifier les profils utilisateurs</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[mod_edit_users]" value="1"<?php if ($pun_config['p_mod_edit_users'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[mod_edit_users]" value="0"<?php if ($pun_config['p_mod_edit_users'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Autoriser les modérateurs à modifier les profils des utilisateurs.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Renommer utilisateurs</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[mod_rename_users]" value="1"<?php if ($pun_config['p_mod_rename_users'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[mod_rename_users]" value="0"<?php if ($pun_config['p_mod_rename_users'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Autoriser les modérateurs à renommer les utilisateurs. A l'exception des autres modérateurs et des administrateurs.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Changer les mots de passe des utilisateurs</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[mod_change_passwords]" value="1"<?php if ($pun_config['p_mod_change_passwords'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[mod_change_passwords]" value="0"<?php if ($pun_config['p_mod_change_passwords'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Autoriser les modérateurs à changer les mots de passe des utilisateurs. A l'exception des autres modérateurs et des administrateurs.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Bannir utilisateurs</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[mod_ban_users]" value="1"<?php if ($pun_config['p_mod_ban_users'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[mod_ban_users]" value="0"<?php if ($pun_config['p_mod_ban_users'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Autoriser les modérateurs à bannir les utilisateurs (et modifier/supprimer les bannissements en cours).</span>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <div class="inform">
-                                       <fieldset>
-                                               <legend>Inscriptions</legend>
-                                               <div class="infldset">
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row">Autoriser les adresses e-mail bannies</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[allow_banned_email]" value="1"<?php if ($pun_config['p_allow_banned_email'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[allow_banned_email]" value="0"<?php if ($pun_config['p_allow_banned_email'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Autoriser les utilisateurs à s'inscrire (ou changer d'adresse) avec une adresse/un domaine e-mail bannis. Si vous laissez cette option à son réglage par défaut (oui) ceci sera possible mais une alerte par e-mail sera envoyée à la liste d'adresses e-mail des forums (une manière efficace pour détecter les inscriptions multiples).</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Autoriser les adresses e-mail en double</th>
-                                                                       <td>
-                                                                               <input type="radio" name="form[allow_dupe_email]" value="1"<?php if ($pun_config['p_allow_dupe_email'] == '1') echo ' checked="checked"' ?> />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="form[allow_dupe_email]" value="0"<?php if ($pun_config['p_allow_dupe_email'] == '0') echo ' checked="checked"' ?> />&nbsp;<strong>Non</strong>
-                                                                               <span>Autoriser les utilisateurs à s'inscrire avec une adresse e-mail déjà utilisée par un autre nom d'utilisateur. Si autorisé une alerte e-mail sera envoyée à la liste d'adresses e-mail des forums lorsqu'un doublon sera détecté.</span>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <p class="submitend"><input type="submit" name="save" value=" Enregistrer " /></p>
-                       </form>
-               </div>
-       </div>
-       <div class="clearer"></div>
-</div>
-<?php
-
-require PUN_ROOT.'footer.php';
diff --git a/fluxbb/admin_prune.php b/fluxbb/admin_prune.php
deleted file mode 100644 (file)
index 2f748ea..0000000
+++ /dev/null
@@ -1,231 +0,0 @@
-<?php
-/***********************************************************************
-
-  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)
-
-  This file is part of PunBB.
-
-  PunBB is free software; you can redistribute it and/or modify it
-  under the terms of the GNU General Public License as published
-  by the Free Software Foundation; either version 2 of the License,
-  or (at your option) any later version.
-
-  PunBB is distributed in the hope that it will be useful, but
-  WITHOUT ANY WARRANTY; without even the implied warranty of
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-  GNU General Public License for more details.
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-  MA  02111-1307  USA
-
-************************************************************************/
-
-
-// Tell header.php to use the admin template
-define('PUN_ADMIN_CONSOLE', 1);
-
-define('PUN_ROOT', './');
-require PUN_ROOT.'include/common.php';
-require PUN_ROOT.'include/common_admin.php';
-
-
-if ($pun_user['g_id'] > PUN_ADMIN)
-       message($lang_common['No permission']);
-
-
-if (isset($_GET['action']) || isset($_POST['prune']) || isset($_POST['prune_comply']))
-{
-       if (isset($_POST['prune_comply']))
-       {
-               confirm_referrer('admin_prune.php');
-
-               $prune_from = $_POST['prune_from'];
-               $prune_sticky = isset($_POST['prune_sticky']) ? '1' : '0';
-               $prune_days = intval($_POST['prune_days']);
-               $prune_date = ($prune_days) ? time() - ($prune_days*86400) : -1;
-
-               @set_time_limit(0);
-
-               if ($prune_from == 'all')
-               {
-                       $result = $db->query('SELECT id FROM '.$db->prefix.'forums') or error('Unable to fetch forum list', __FILE__, __LINE__, $db->error());
-                       $num_forums = $db->num_rows($result);
-
-                       for ($i = 0; $i < $num_forums; ++$i)
-                       {
-                               $fid = $db->result($result, $i);
-
-                               prune($fid, $prune_sticky, $prune_date);
-                               update_forum($fid);
-                       }
-               }
-               else
-               {
-                       $prune_from = intval($prune_from);
-                       prune($prune_from, $prune_sticky, $prune_date);
-                       update_forum($prune_from);
-               }
-
-               // Locate any "orphaned redirect topics" and delete them
-               $result = $db->query('SELECT t1.id FROM '.$db->prefix.'topics AS t1 LEFT JOIN '.$db->prefix.'topics AS t2 ON t1.moved_to=t2.id WHERE t2.id IS NULL AND t1.moved_to IS NOT NULL') or error('Unable to fetch redirect topics', __FILE__, __LINE__, $db->error());
-               $num_orphans = $db->num_rows($result);
-
-               if ($num_orphans)
-               {
-                       for ($i = 0; $i < $num_orphans; ++$i)
-                               $orphans[] = $db->result($result, $i);
-
-                       $db->query('DELETE FROM '.$db->prefix.'topics WHERE id IN('.implode(',', $orphans).')') or error('Unable to delete redirect topics', __FILE__, __LINE__, $db->error());
-               }
-
-               redirect('admin_prune.php', 'Messages supprimés. Redirection ...');
-       }
-
-
-       $prune_days = $_POST['req_prune_days'];
-       if (!@preg_match('#^\d+$#', $prune_days))
-               message('Le nombre de jours d\'ancienneté doit être un entier positif.');
-
-       $prune_date = time() - ($prune_days*86400);
-       $prune_from = $_POST['prune_from'];
-
-       // Concatenate together the query for counting number or topics to prune
-       $sql = 'SELECT COUNT(id) FROM '.$db->prefix.'topics WHERE last_post<'.$prune_date.' AND moved_to IS NULL';
-
-       if (!$prune_sticky)
-               $sql .= ' AND sticky=\'0\'';
-
-       if ($prune_from != 'all')
-       {
-               $prune_from = intval($prune_from);
-               $sql .= ' AND forum_id='.$prune_from;
-
-               // Fetch the forum name (just for cosmetic reasons)
-               $result = $db->query('SELECT forum_name FROM '.$db->prefix.'forums WHERE id='.$prune_from) or error('Unable to fetch forum name', __FILE__, __LINE__, $db->error());
-               $forum = '"'.pun_htmlspecialchars($db->result($result)).'"';
-       }
-       else
-               $forum = 'tous les forums';
-
-       $result = $db->query($sql) or error('Unable to fetch topic prune count', __FILE__, __LINE__, $db->error());
-       $num_topics = $db->result($result);
-
-       if (!$num_topics)
-               message('Il n\'y a pas de sujets anciens de '.$prune_days.' jours. Diminuez la valeur de Jours d\'ancienneté et essayez à nouveau.');
-
-
-       $page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Élagage';
-       require PUN_ROOT.'header.php';
-
-       generate_admin_menu('prune');
-
-?>
-       <div class="blockform">
-               <h2><span>Élagage des forums</span></h2>
-               <div class="box">
-                       <form method="post" action="admin_prune.php?action=foo">
-                               <div class="inform">
-                                       <input type="hidden" name="prune_days" value="<?php echo $prune_days ?>" />
-                                       <input type="hidden" name="prune_sticky" value="<?php echo $prune_sticky ?>" />
-                                       <input type="hidden" name="prune_from" value="<?php echo $prune_from ?>" />
-                                       <fieldset>
-                                               <legend>Confirmez la suppression des messages</legend>
-                                               <div class="infldset">
-                                                       <p>Êtes-vous sûr de vouloir supprimer toutes les discussions plus anciennes de <?php echo $prune_days ?> jours de <?php echo $forum ?>? (<?php echo $num_topics ?> discussions)</p>
-                                                       <p>ATTENTION ! L'élagage des forums est irréversible, les messages seront définitivement supprimés.</p>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                               <p><input type="submit" name="prune_comply" value=" Élaguer " /><a href="javascript:history.go(-1)">Retour</a></p>
-                       </form>
-               </div>
-       </div>
-       <div class="clearer"></div>
-</div>
-<?php
-
-       require PUN_ROOT.'footer.php';
-}
-
-
-else
-{
-       $page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Élagage des forums';
-       $required_fields = array('req_prune_days' => 'Days old');
-       $focus_element = array('prune', 'req_prune_days');
-       require PUN_ROOT.'header.php';
-
-       generate_admin_menu('prune');
-
-?>
-       <div class="blockform">
-               <h2><span>Élagage des forums</span></h2>
-               <div class="box">
-                       <form id="prune" method="post" action="admin_prune.php?action=foo" onsubmit="return process_form(this)">
-                               <div class="inform">
-                               <input type="hidden" name="form_sent" value="1" />
-                                       <fieldset>
-                                               <legend>Supprimer les messages anciens</legend>
-                                               <div class="infldset">
-                                                       <table class="aligntop" cellspacing="0">
-                                                               <tr>
-                                                                       <th scope="row">Jours d'ancienneté</th>
-                                                                       <td>
-                                                                               <input type="text" name="req_prune_days" size="3" maxlength="3" tabindex="1" />
-                                                                               <span>Le nombre de jours d'ancienneté qu'un sujet doit avoir pour être supprimé. Autrement dit, si vous saisissez 30, tous les sujets qui ne contiennent pas de messages datés de moins de 30 jours seront supprimés.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Supprimer les discussions épinglées</th>
-                                                                       <td>
-                                                                               <input type="radio" name="prune_sticky" value="1" tabindex="2" checked="checked" />&nbsp;<strong>Oui</strong>&nbsp;&nbsp;&nbsp;<input type="radio" name="prune_sticky" value="0" />&nbsp;<strong>Non</strong>
-                                                                               <span>Lorsque cette option est activée les discussions épinglées seront également supprimées.</span>
-                                                                       </td>
-                                                               </tr>
-                                                               <tr>
-                                                                       <th scope="row">Forum</th>
-                                                                       <td>
-                                                                               <select name="prune_from" tabindex="3">
-                                                                                       <option value="all">Tous les forums</option>
-<?php
-
-       $result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id WHERE f.redirect_url IS NULL ORDER BY c.disp_position, c.id, f.disp_position') or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());
-
-       $cur_category = 0;
-       while ($forum = $db->fetch_assoc($result))
-       {
-               if ($forum['cid'] != $cur_category)     // Are we still in the same category?
-               {
-                       if ($cur_category)
-                               echo "\t\t\t\t\t\t\t\t\t\t\t".'</optgroup>'."\n";
-
-                       echo "\t\t\t\t\t\t\t\t\t\t\t".'<optgroup label="'.pun_htmlspecialchars($forum['cat_name']).'">'."\n";
-                       $cur_category = $forum['cid'];
-               }
-
-               echo "\t\t\t\t\t\t\t\t\t\t\t\t".'<option value="'.$forum['fid'].'">'.pun_htmlspecialchars($forum['forum_name']).'</option>'."\n";
-       }
-
-?>
-                                                                                       </optgroup>
-                                                                               </select>
-                                                                               <span>Choisissez le forum dans lequel vous voulez effectuer l'élagage.</span>
-                                                                       </td>
-                                                               </tr>
-                                                       </table>
-                                                       <p class="topspace">Utilisez cette fonctionnalité avec précaution. L'élagage des forums est irréversible. Pour de meilleures performances, au cours du processus d'élagage vous devriez mettre les forums en mode maintenance.</p>
-                                                       <div class="fsetsubmit"><input type="submit" name="prune" value=" Élaguer " tabindex="5" /></div>
-                                               </div>
-                                       </fieldset>
-                               </div>
-                       </form>
-               </div>
-       </div>
-       <div class="clearer"></div>
-</div>
-<?php
-
-       require PUN_ROOT.'footer.php';
-}
diff --git a/fluxbb/admin_ranks.php b/fluxbb/admin_ranks.php
deleted file mode 100644 (file)
index 694ed8c..0000000
+++ /dev/null
@@ -1,195 +0,0 @@
-<?php
-/***********************************************************************
-
-  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)
-
-  This file is part of PunBB.
-
-  PunBB is free software; you can redistribute it and/or modify it
-  under the terms of the GNU General Public License as published
-  by the Free Software Foundation; either version 2 of the License,
-  or (at your option) any later version.
-
-  PunBB is distributed in the hope that it will be useful, but
-  WITHOUT ANY WARRANTY; without even the implied warranty of
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-  GNU General Public License for more details.
-
-  You should have received a copy of the GNU General Public License
-  along with this program; if not, write to the Free Software
-  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-  MA  02111-1307  USA
-
-************************************************************************/
-
-
-// Tell header.php to use the admin template
-define('PUN_ADMIN_CONSOLE', 1);
-
-define('PUN_ROOT', './');
-require PUN_ROOT.'include/common.php';
-require PUN_ROOT.'include/common_admin.php';
-
-
-if ($pun_user['g_id'] > PUN_ADMIN)
-       message($lang_common['No permission']);
-
-
-// A