Ignore:
Timestamp:
Nov 14, 2011, 11:17:15 PM (12 years ago)
Author:
dj3c1t
Message:

passage a Fluxbb 1.4.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rsr.v5.1.dev/web/punbb/admin_options.php

    r1 r3  
    11<?php
    2 /***********************************************************************
    3 
    4   Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)
    5 
    6   This file is part of PunBB.
    7 
    8   PunBB is free software; you can redistribute it and/or modify it
    9   under the terms of the GNU General Public License as published
    10   by the Free Software Foundation; either version 2 of the License,
    11   or (at your option) any later version.
    12 
    13   PunBB is distributed in the hope that it will be useful, but
    14   WITHOUT ANY WARRANTY; without even the implied warranty of
    15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    16   GNU General Public License for more details.
    17 
    18   You should have received a copy of the GNU General Public License
    19   along with this program; if not, write to the Free Software
    20   Foundation, Inc., 59 Temple Place, Suite 330, Boston,
    21   MA  02111-1307  USA
    22 
    23 ************************************************************************/
    24 
     2
     3/**
     4 * Copyright (C) 2008-2011 FluxBB
     5 * based on code by Rickard Andersson copyright (C) 2002-2008 PunBB
     6 * License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
     7 */
    258
    269// Tell header.php to use the admin template
    2710define('PUN_ADMIN_CONSOLE', 1);
    2811
    29 define('PUN_ROOT', './');
     12define('PUN_ROOT', dirname(__FILE__).'/');
    3013require PUN_ROOT.'include/common.php';
    3114require PUN_ROOT.'include/common_admin.php';
    3215
    3316
    34 if ($pun_user['g_id'] > PUN_ADMIN)
     17if ($pun_user['g_id'] != PUN_ADMIN)
    3518        message($lang_common['No permission']);
    3619
     20// Load the admin_options.php language file
     21require PUN_ROOT.'lang/'.$admin_language.'/admin_options.php';
    3722
    3823if (isset($_POST['form_sent']))
    3924{
    40         // Lazy referer check (in case base_url isn't correct)
    41         if (!isset($_SERVER['HTTP_REFERER']) || !preg_match('#/admin_options\.php#i', $_SERVER['HTTP_REFERER']))
    42                 message($lang_common['Bad referrer']);
    43 
    44         $form = array_map('trim', $_POST['form']);
     25        confirm_referrer('admin_options.php', $lang_admin_options['Bad HTTP Referer message']);
     26
     27        $form = array(
     28                'board_title'                   => pun_trim($_POST['form']['board_title']),
     29                'board_desc'                    => pun_trim($_POST['form']['board_desc']),
     30                'base_url'                              => pun_trim($_POST['form']['base_url']),
     31                'default_timezone'              => floatval($_POST['form']['default_timezone']),
     32                'default_dst'                   => $_POST['form']['default_dst'] != '1' ? '0' : '1',
     33                'default_lang'                  => pun_trim($_POST['form']['default_lang']),
     34                'default_style'                 => pun_trim($_POST['form']['default_style']),
     35                'time_format'                   => pun_trim($_POST['form']['time_format']),
     36                'date_format'                   => pun_trim($_POST['form']['date_format']),
     37                'timeout_visit'                 => intval($_POST['form']['timeout_visit']),
     38                'timeout_online'                => intval($_POST['form']['timeout_online']),
     39                'redirect_delay'                => intval($_POST['form']['redirect_delay']),
     40                'show_version'                  => $_POST['form']['show_version'] != '1' ? '0' : '1',
     41                'show_user_info'                => $_POST['form']['show_user_info'] != '1' ? '0' : '1',
     42                'show_post_count'               => $_POST['form']['show_post_count'] != '1' ? '0' : '1',
     43                'smilies'                               => $_POST['form']['smilies'] != '1' ? '0' : '1',
     44                'smilies_sig'                   => $_POST['form']['smilies_sig'] != '1' ? '0' : '1',
     45                'make_links'                    => $_POST['form']['make_links'] != '1' ? '0' : '1',
     46                'topic_review'                  => intval($_POST['form']['topic_review']),
     47                'disp_topics_default'   => intval($_POST['form']['disp_topics_default']),
     48                'disp_posts_default'    => intval($_POST['form']['disp_posts_default']),
     49                'indent_num_spaces'             => intval($_POST['form']['indent_num_spaces']),
     50                'quote_depth'                   => intval($_POST['form']['quote_depth']),
     51                'quickpost'                             => $_POST['form']['quickpost'] != '1' ? '0' : '1',
     52                'users_online'                  => $_POST['form']['users_online'] != '1' ? '0' : '1',
     53                'censoring'                             => $_POST['form']['censoring'] != '1' ? '0' : '1',
     54                'signatures'                    => $_POST['form']['signatures'] != '1' ? '0' : '1',
     55                'ranks'                                 => $_POST['form']['ranks'] != '1' ? '0' : '1',
     56                'show_dot'                              => $_POST['form']['show_dot'] != '1' ? '0' : '1',
     57                'topic_views'                   => $_POST['form']['topic_views'] != '1' ? '0' : '1',
     58                'quickjump'                             => $_POST['form']['quickjump'] != '1' ? '0' : '1',
     59                'gzip'                                  => $_POST['form']['gzip'] != '1' ? '0' : '1',
     60                'search_all_forums'             => $_POST['form']['search_all_forums'] != '1' ? '0' : '1',
     61                'additional_navlinks'   => pun_trim($_POST['form']['additional_navlinks']),
     62                'feed_type'                             => intval($_POST['form']['feed_type']),
     63                'feed_ttl'                              => intval($_POST['form']['feed_ttl']),
     64                'report_method'                 => intval($_POST['form']['report_method']),
     65                'mailing_list'                  => pun_trim($_POST['form']['mailing_list']),
     66                'avatars'                               => $_POST['form']['avatars'] != '1' ? '0' : '1',
     67                'avatars_dir'                   => pun_trim($_POST['form']['avatars_dir']),
     68                'avatars_width'                 => intval($_POST['form']['avatars_width']),
     69                'avatars_height'                => intval($_POST['form']['avatars_height']),
     70                'avatars_size'                  => intval($_POST['form']['avatars_size']),
     71                'admin_email'                   => strtolower(pun_trim($_POST['form']['admin_email'])),
     72                'webmaster_email'               => strtolower(pun_trim($_POST['form']['webmaster_email'])),
     73                'forum_subscriptions'   => $_POST['form']['forum_subscriptions'] != '1' ? '0' : '1',
     74                'topic_subscriptions'   => $_POST['form']['topic_subscriptions'] != '1' ? '0' : '1',
     75                'smtp_host'                             => pun_trim($_POST['form']['smtp_host']),
     76                'smtp_user'                             => pun_trim($_POST['form']['smtp_user']),
     77                'smtp_ssl'                              => $_POST['form']['smtp_ssl'] != '1' ? '0' : '1',
     78                'regs_allow'                    => $_POST['form']['regs_allow'] != '1' ? '0' : '1',
     79                'regs_verify'                   => $_POST['form']['regs_verify'] != '1' ? '0' : '1',
     80                'regs_report'                   => $_POST['form']['regs_report'] != '1' ? '0' : '1',
     81                'rules'                                 => $_POST['form']['rules'] != '1' ? '0' : '1',
     82                'rules_message'                 => pun_trim($_POST['form']['rules_message']),
     83                'default_email_setting' => intval($_POST['form']['default_email_setting']),
     84                'announcement'                  => $_POST['form']['announcement'] != '1' ? '0' : '1',
     85                'announcement_message'  => pun_trim($_POST['form']['announcement_message']),
     86                'maintenance'                   => $_POST['form']['maintenance'] != '1' ? '0' : '1',
     87                'maintenance_message'   => pun_trim($_POST['form']['maintenance_message']),
     88        );
    4589
    4690        if ($form['board_title'] == '')
    47                 message('Vous devez saisir un titre pour vos forums.');
    48 
    49         require PUN_ROOT.'include/email.php';
    50 
    51         $form['admin_email'] = strtolower($form['admin_email']);
    52         if (!is_valid_email($form['admin_email']))
    53                 message('L\'adresse email administrateur que vous avez saisi est incorrecte.');
    54 
    55         $form['webmaster_email'] = strtolower($form['webmaster_email']);
    56         if (!is_valid_email($form['webmaster_email']))
    57                 message('L\'adresse email webmaster que vous avez saisi est incorrecte.');
    58 
    59         if ($form['mailing_list'] != '')
    60                 $form['mailing_list'] = strtolower(preg_replace('/[\s]/', '', $form['mailing_list']));
     91                message($lang_admin_options['Must enter title message']);
    6192
    6293        // Make sure base_url doesn't end with a slash
     
    6495                $form['base_url'] = substr($form['base_url'], 0, -1);
    6596
     97        $languages = forum_list_langs();
     98        if (!in_array($form['default_lang'], $languages))
     99                message($lang_common['Bad request']);
     100
     101        $styles = forum_list_styles();
     102        if (!in_array($form['default_style'], $styles))
     103                message($lang_common['Bad request']);
     104
     105        if ($form['time_format'] == '')
     106                $form['time_format'] = 'H:i:s';
     107
     108        if ($form['date_format'] == '')
     109                $form['date_format'] = 'Y-m-d';
     110
     111
     112        require PUN_ROOT.'include/email.php';
     113
     114        if (!is_valid_email($form['admin_email']))
     115                message($lang_admin_options['Invalid e-mail message']);
     116
     117        if (!is_valid_email($form['webmaster_email']))
     118                message($lang_admin_options['Invalid webmaster e-mail message']);
     119
     120        if ($form['mailing_list'] != '')
     121                $form['mailing_list'] = strtolower(preg_replace('%\s%S', '', $form['mailing_list']));
     122
    66123        // Make sure avatars_dir doesn't end with a slash
    67124        if (substr($form['avatars_dir'], -1) == '/')
     
    69126
    70127        if ($form['additional_navlinks'] != '')
    71                 $form['additional_navlinks'] = trim(pun_linebreaks($form['additional_navlinks']));
     128                $form['additional_navlinks'] = pun_trim(pun_linebreaks($form['additional_navlinks']));
     129
     130        // Change or enter a SMTP password
     131        if (isset($_POST['form']['smtp_change_pass']))
     132        {
     133                $smtp_pass1 = isset($_POST['form']['smtp_pass1']) ? pun_trim($_POST['form']['smtp_pass1']) : '';
     134                $smtp_pass2 = isset($_POST['form']['smtp_pass2']) ? pun_trim($_POST['form']['smtp_pass2']) : '';
     135
     136                if ($smtp_pass1 == $smtp_pass2)
     137                        $form['smtp_pass'] = $smtp_pass1;
     138                else
     139                        message($lang_admin_options['SMTP passwords did not match']);
     140        }
    72141
    73142        if ($form['announcement_message'] != '')
     
    75144        else
    76145        {
    77                 $form['announcement_message'] = 'Saisissez votre annonce ici.';
    78 
    79                 if ($form['announcement'] == '1')
    80                         $form['announcement'] = '0';
     146                $form['announcement_message'] = $lang_admin_options['Enter announcement here'];
     147                $form['announcement'] = '0';
    81148        }
    82149
     
    85152        else
    86153        {
    87                 $form['rules_message'] = 'Saisissez les rÚgles d\'utilisation ici.';
    88 
    89                 if ($form['rules'] == '1')
    90                         $form['rules'] = '0';
     154                $form['rules_message'] = $lang_admin_options['Enter rules here'];
     155                $form['rules'] = '0';
    91156        }
    92157
     
    95160        else
    96161        {
    97                 $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';
    98 
    99                 if ($form['maintenance'] == '1')
    100                         $form['maintenance'] = '0';
     162                $form['maintenance_message'] = $lang_admin_options['Default maintenance message'];
     163                $form['maintenance'] = '0';
    101164        }
    102165
    103         $form['timeout_visit'] = intval($form['timeout_visit']);
    104         $form['timeout_online'] = intval($form['timeout_online']);
    105         $form['redirect_delay'] = intval($form['redirect_delay']);
    106         $form['topic_review'] = intval($form['topic_review']);
    107         $form['disp_topics_default'] = intval($form['disp_topics_default']);
    108         $form['disp_posts_default'] = intval($form['disp_posts_default']);
    109         $form['indent_num_spaces'] = intval($form['indent_num_spaces']);
    110         $form['avatars_width'] = intval($form['avatars_width']);
    111         $form['avatars_height'] = intval($form['avatars_height']);
    112         $form['avatars_size'] = intval($form['avatars_size']);
     166        // Make sure the number of displayed topics and posts is between 3 and 75
     167        if ($form['disp_topics_default'] < 3)
     168                $form['disp_topics_default'] = 3;
     169        else if ($form['disp_topics_default'] > 75)
     170                $form['disp_topics_default'] = 75;
     171
     172        if ($form['disp_posts_default'] < 3)
     173                $form['disp_posts_default'] = 3;
     174        else if ($form['disp_posts_default'] > 75)
     175                $form['disp_posts_default'] = 75;
     176
     177        if ($form['feed_type'] < 0 || $form['feed_type'] > 2)
     178                message($lang_common['Bad request']);
     179
     180        if ($form['feed_ttl'] < 0)
     181                message($lang_common['Bad request']);
     182
     183        if ($form['report_method'] < 0 || $form['report_method'] > 2)
     184                message($lang_common['Bad request']);
     185
     186        if ($form['default_email_setting'] < 0 || $form['default_email_setting'] > 2)
     187                message($lang_common['Bad request']);
    113188
    114189        if ($form['timeout_online'] >= $form['timeout_visit'])
    115                 message('La valeur de "Temps mort en ligne" doit être inférieur à la valeur de "Temps mort de visite".');
    116 
    117         while (list($key, $input) = @each($form))
     190                message($lang_admin_options['Timeout error message']);
     191
     192        foreach ($form as $key => $input)
    118193        {
    119194                // Only update values that have changed
     
    125200                                $value = 'NULL';
    126201
    127                         $db->query('UPDATE '.$db->prefix.'config SET conf_value='.$value.' WHERE conf_name=\'o_'.$db->escape($key).'\'') or error('Impossible de mettre à jour la configuration des forums', __FILE__, __LINE__, $db->error());
     202                        $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());
    128203                }
    129204        }
    130205
    131206        // Regenerate the config cache
    132         require_once PUN_ROOT.'include/cache.php';
     207        if (!defined('FORUM_CACHE_FUNCTIONS_LOADED'))
     208                require PUN_ROOT.'include/cache.php';
     209
    133210        generate_config_cache();
    134 
    135         redirect('admin_options.php', 'Options modifiées. Redirection ...');
     211        clear_feed_cache();
     212
     213        redirect('admin_options.php', $lang_admin_options['Options updated redirect']);
    136214}
    137215
    138 
    139 $page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin / Options';
    140 $form_name = 'update_options';
     216$page_title = array(pun_htmlspecialchars($pun_config['o_board_title']), $lang_admin_common['Admin'], $lang_admin_common['Options']);
     217define('PUN_ACTIVE_PAGE', 'admin');
    141218require PUN_ROOT.'header.php';
    142219
     
    145222?>
    146223        <div class="blockform">
    147                 <h2><span>Options</span></h2>
     224                <h2><span><?php echo $lang_admin_options['Options head'] ?></span></h2>
    148225                <div class="box">
    149                         <form method="post" action="admin_options.php?action=foo">
    150                                 <p class="submittop"><input type="submit" name="save" value=" Enregistrer " /></p>
    151                                 <div class="inform">
    152                                 <input type="hidden" name="form_sent" value="1" />
    153                                         <fieldset>
    154                                                 <legend>Essentiel</legend>
    155                                                 <div class="infldset">
    156                                                         <table class="aligntop" cellspacing="0">
    157                                                                 <tr>
    158                                                                         <th scope="row">Titre forums</th>
     226                        <form method="post" action="admin_options.php">
     227                                <p class="submittop"><input type="submit" name="save" value="<?php echo $lang_admin_common['Save changes'] ?>" /></p>
     228                                <div class="inform">
     229                                        <input type="hidden" name="form_sent" value="1" />
     230                                        <fieldset>
     231                                                <legend><?php echo $lang_admin_options['Essentials subhead'] ?></legend>
     232                                                <div class="infldset">
     233                                                        <table class="aligntop" cellspacing="0">
     234                                                                <tr>
     235                                                                        <th scope="row"><?php echo $lang_admin_options['Board title label'] ?></th>
    159236                                                                        <td>
    160237                                                                                <input type="text" name="form[board_title]" size="50" maxlength="255" value="<?php echo pun_htmlspecialchars($pun_config['o_board_title']) ?>" />
    161                                                                                 <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>
    162                                                                         </td>
    163                                                                 </tr>
    164                                                                 <tr>
    165                                                                         <th scope="row">Description forums</th>
     238                                                                                <span><?php echo $lang_admin_options['Board title help'] ?></span>
     239                                                                        </td>
     240                                                                </tr>
     241                                                                <tr>
     242                                                                        <th scope="row"><?php echo $lang_admin_options['Board desc label'] ?></th>
    166243                                                                        <td>
    167244                                                                                <input type="text" name="form[board_desc]" size="50" maxlength="255" value="<?php echo pun_htmlspecialchars($pun_config['o_board_desc']) ?>" />
    168                                                                                 <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>
    169                                                                         </td>
    170                                                                 </tr>
    171                                                                 <tr>
    172                                                                         <th scope="row"><acronym title="Uniform Resource Locator" lang="en">URL</acronym> de base</th>
    173                                                                         <td>
    174                                                                                 <input type="text" name="form[base_url]" size="50" maxlength="100" value="<?php echo $pun_config['o_base_url'] ?>" />
    175                                                                                 <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 optenez une erreur "Bad referer", il est probablement incorrect.</span>
    176                                                                         </td>
    177                                                                 </tr>
    178                                                                 <tr>
    179                                                                         <th scope="row">Fuseau horaire serveur</th>
    180                                                                         <td>
    181                                                                                 <select name="form[server_timezone]">
    182                                                                                         <option value="-12"<?php if ($pun_config['o_server_timezone'] == -12 ) echo ' selected="selected"' ?>>-12</option>
    183                                                                                         <option value="-11"<?php if ($pun_config['o_server_timezone'] == -11) echo ' selected="selected"' ?>>-11</option>
    184                                                                                         <option value="-10"<?php if ($pun_config['o_server_timezone'] == -10) echo ' selected="selected"' ?>>-10</option>
    185                                                                                         <option value="-9.5"<?php if ($pun_config['o_server_timezone'] == -9.5) echo ' selected="selected"' ?>>-09.5</option>
    186                                                                                         <option value="-9"<?php if ($pun_config['o_server_timezone'] == -9 ) echo ' selected="selected"' ?>>-09</option>
    187                                                                                         <option value="-8.5"<?php if ($pun_config['o_server_timezone'] == -8.5) echo ' selected="selected"' ?>>-08.5</option>
    188                                                                                         <option value="-8"<?php if ($pun_config['o_server_timezone'] == -8 ) echo ' selected="selected"' ?>>-08 PST</option>
    189                                                                                         <option value="-7"<?php if ($pun_config['o_server_timezone'] == -7 ) echo ' selected="selected"' ?>>-07 MST</option>
    190                                                                                         <option value="-6"<?php if ($pun_config['o_server_timezone'] == -6 ) echo ' selected="selected"' ?>>-06 CST</option>
    191                                                                                         <option value="-5"<?php if ($pun_config['o_server_timezone'] == -5 ) echo ' selected="selected"' ?>>-05 EST</option>
    192                                                                                         <option value="-4"<?php if ($pun_config['o_server_timezone'] == -4 ) echo ' selected="selected"' ?>>-04 AST</option>
    193                                                                                         <option value="-3.5"<?php if ($pun_config['o_server_timezone'] == -3.5) echo ' selected="selected"' ?>>-03.5</option>
    194                                                                                         <option value="-3"<?php if ($pun_config['o_server_timezone'] == -3 ) echo ' selected="selected"' ?>>-03 ADT</option>
    195                                                                                         <option value="-2"<?php if ($pun_config['o_server_timezone'] == -2 ) echo ' selected="selected"' ?>>-02</option>
    196                                                                                         <option value="-1"<?php if ($pun_config['o_server_timezone'] == -1) echo ' selected="selected"' ?>>-01</option>
    197                                                                                         <option value="0"<?php if ($pun_config['o_server_timezone'] == 0) echo ' selected="selected"' ?>>00 GMT</option>
    198                                                                                         <option value="1"<?php if ($pun_config['o_server_timezone'] == 1) echo ' selected="selected"' ?>>+01 CET</option>
    199                                                                                         <option value="2"<?php if ($pun_config['o_server_timezone'] == 2 ) echo ' selected="selected"' ?>>+02</option>
    200                                                                                         <option value="3"<?php if ($pun_config['o_server_timezone'] == 3 ) echo ' selected="selected"' ?>>+03</option>
    201                                                                                         <option value="3.5"<?php if ($pun_config['o_server_timezone'] == 3.5) echo ' selected="selected"' ?>>+03.5</option>
    202                                                                                         <option value="4"<?php if ($pun_config['o_server_timezone'] == 4 ) echo ' selected="selected"' ?>>+04</option>
    203                                                                                         <option value="4.5"<?php if ($pun_config['o_server_timezone'] == 4.5) echo ' selected="selected"' ?>>+04.5</option>
    204                                                                                         <option value="5"<?php if ($pun_config['o_server_timezone'] == 5 ) echo ' selected="selected"' ?>>+05</option>
    205                                                                                         <option value="5.5"<?php if ($pun_config['o_server_timezone'] == 5.5) echo ' selected="selected"' ?>>+05.5</option>
    206                                                                                         <option value="6"<?php if ($pun_config['o_server_timezone'] == 6 ) echo ' selected="selected"' ?>>+06</option>
    207                                                                                         <option value="6.5"<?php if ($pun_config['o_server_timezone'] == 6.5) echo ' selected="selected"' ?>>+06.5</option>
    208                                                                                         <option value="7"<?php if ($pun_config['o_server_timezone'] == 7 ) echo ' selected="selected"' ?>>+07</option>
    209                                                                                         <option value="8"<?php if ($pun_config['o_server_timezone'] == 8 ) echo ' selected="selected"' ?>>+08</option>
    210                                                                                         <option value="9"<?php if ($pun_config['o_server_timezone'] == 9 ) echo ' selected="selected"' ?>>+09</option>
    211                                                                                         <option value="9.5"<?php if ($pun_config['o_server_timezone'] == 9.5) echo ' selected="selected"' ?>>+09.5</option>
    212                                                                                         <option value="10"<?php if ($pun_config['o_server_timezone'] == 10) echo ' selected="selected"' ?>>+10</option>
    213                                                                                         <option value="10.5"<?php if ($pun_config['o_server_timezone'] == 10.5) echo ' selected="selected"' ?>>+10.5</option>
    214                                                                                         <option value="11"<?php if ($pun_config['o_server_timezone'] == 11) echo ' selected="selected"' ?>>+11</option>
    215                                                                                         <option value="11.5"<?php if ($pun_config['o_server_timezone'] == 11.5) echo ' selected="selected"' ?>>+11.5</option>
    216                                                                                         <option value="12"<?php if ($pun_config['o_server_timezone'] == 12 ) echo ' selected="selected"' ?>>+12</option>
    217                                                                                         <option value="13"<?php if ($pun_config['o_server_timezone'] == 13 ) echo ' selected="selected"' ?>>+13</option>
     245                                                                                <span><?php echo $lang_admin_options['Board desc help'] ?></span>
     246                                                                        </td>
     247                                                                </tr>
     248                                                                <tr>
     249                                                                        <th scope="row"><?php echo $lang_admin_options['Base URL label'] ?></th>
     250                                                                        <td>
     251                                                                                <input type="text" name="form[base_url]" size="50" maxlength="100" value="<?php echo pun_htmlspecialchars($pun_config['o_base_url']) ?>" />
     252                                                                                <span><?php echo $lang_admin_options['Base URL help'] ?></span>
     253                                                                        </td>
     254                                                                </tr>
     255                                                                <tr>
     256                                                                        <th scope="row"><?php echo $lang_admin_options['Timezone label'] ?></th>
     257                                                                        <td>
     258                                                                                <select name="form[default_timezone]">
     259                                                                                        <option value="-12"<?php if ($pun_config['o_default_timezone'] == -12) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-12:00'] ?></option>
     260                                                                                        <option value="-11"<?php if ($pun_config['o_default_timezone'] == -11) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-11:00'] ?></option>
     261                                                                                        <option value="-10"<?php if ($pun_config['o_default_timezone'] == -10) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-10:00'] ?></option>
     262                                                                                        <option value="-9.5"<?php if ($pun_config['o_default_timezone'] == -9.5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-09:30'] ?></option>
     263                                                                                        <option value="-9"<?php if ($pun_config['o_default_timezone'] == -9) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-09:00'] ?></option>
     264                                                                                        <option value="-8.5"<?php if ($pun_config['o_default_timezone'] == -8.5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-08:30'] ?></option>
     265                                                                                        <option value="-8"<?php if ($pun_config['o_default_timezone'] == -8) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-08:00'] ?></option>
     266                                                                                        <option value="-7"<?php if ($pun_config['o_default_timezone'] == -7) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-07:00'] ?></option>
     267                                                                                        <option value="-6"<?php if ($pun_config['o_default_timezone'] == -6) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-06:00'] ?></option>
     268                                                                                        <option value="-5"<?php if ($pun_config['o_default_timezone'] == -5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-05:00'] ?></option>
     269                                                                                        <option value="-4"<?php if ($pun_config['o_default_timezone'] == -4) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-04:00'] ?></option>
     270                                                                                        <option value="-3.5"<?php if ($pun_config['o_default_timezone'] == -3.5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-03:30'] ?></option>
     271                                                                                        <option value="-3"<?php if ($pun_config['o_default_timezone'] == -3) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-03:00'] ?></option>
     272                                                                                        <option value="-2"<?php if ($pun_config['o_default_timezone'] == -2) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-02:00'] ?></option>
     273                                                                                        <option value="-1"<?php if ($pun_config['o_default_timezone'] == -1) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC-01:00'] ?></option>
     274                                                                                        <option value="0"<?php if ($pun_config['o_default_timezone'] == 0) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC'] ?></option>
     275                                                                                        <option value="1"<?php if ($pun_config['o_default_timezone'] == 1) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+01:00'] ?></option>
     276                                                                                        <option value="2"<?php if ($pun_config['o_default_timezone'] == 2) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+02:00'] ?></option>
     277                                                                                        <option value="3"<?php if ($pun_config['o_default_timezone'] == 3) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+03:00'] ?></option>
     278                                                                                        <option value="3.5"<?php if ($pun_config['o_default_timezone'] == 3.5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+03:30'] ?></option>
     279                                                                                        <option value="4"<?php if ($pun_config['o_default_timezone'] == 4) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+04:00'] ?></option>
     280                                                                                        <option value="4.5"<?php if ($pun_config['o_default_timezone'] == 4.5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+04:30'] ?></option>
     281                                                                                        <option value="5"<?php if ($pun_config['o_default_timezone'] == 5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+05:00'] ?></option>
     282                                                                                        <option value="5.5"<?php if ($pun_config['o_default_timezone'] == 5.5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+05:30'] ?></option>
     283                                                                                        <option value="5.75"<?php if ($pun_config['o_default_timezone'] == 5.75) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+05:45'] ?></option>
     284                                                                                        <option value="6"<?php if ($pun_config['o_default_timezone'] == 6) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+06:00'] ?></option>
     285                                                                                        <option value="6.5"<?php if ($pun_config['o_default_timezone'] == 6.5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+06:30'] ?></option>
     286                                                                                        <option value="7"<?php if ($pun_config['o_default_timezone'] == 7) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+07:00'] ?></option>
     287                                                                                        <option value="8"<?php if ($pun_config['o_default_timezone'] == 8) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+08:00'] ?></option>
     288                                                                                        <option value="8.75"<?php if ($pun_config['o_default_timezone'] == 8.75) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+08:45'] ?></option>
     289                                                                                        <option value="9"<?php if ($pun_config['o_default_timezone'] == 9) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+09:00'] ?></option>
     290                                                                                        <option value="9.5"<?php if ($pun_config['o_default_timezone'] == 9.5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+09:30'] ?></option>
     291                                                                                        <option value="10"<?php if ($pun_config['o_default_timezone'] == 10) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+10:00'] ?></option>
     292                                                                                        <option value="10.5"<?php if ($pun_config['o_default_timezone'] == 10.5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+10:30'] ?></option>
     293                                                                                        <option value="11"<?php if ($pun_config['o_default_timezone'] == 11) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+11:00'] ?></option>
     294                                                                                        <option value="11.5"<?php if ($pun_config['o_default_timezone'] == 11.5) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+11:30'] ?></option>
     295                                                                                        <option value="12"<?php if ($pun_config['o_default_timezone'] == 12) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+12:00'] ?></option>
     296                                                                                        <option value="12.75"<?php if ($pun_config['o_default_timezone'] == 12.75) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+12:45'] ?></option>
     297                                                                                        <option value="13"<?php if ($pun_config['o_default_timezone'] == 13) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+13:00'] ?></option>
     298                                                                                        <option value="14"<?php if ($pun_config['o_default_timezone'] == 14) echo ' selected="selected"' ?>><?php echo $lang_admin_options['UTC+14:00'] ?></option>
    218299                                                                                </select>
    219                                                                                 <span>Le fuseau horaire du serveur où est installé PunBB.</span>
    220                                                                         </td>
    221                                                                 </tr>
    222                                                                 <tr>
    223                                                                         <th scope="row">Langage par défaut</th>
     300                                                                                <span><?php echo $lang_admin_options['Timezone help'] ?></span>
     301                                                                        </td>
     302                                                                </tr>
     303                                                                <tr>
     304                                                                        <th scope="row"><?php echo $lang_admin_options['DST label'] ?></th>
     305                                                                        <td>
     306                                                                                <input type="radio" name="form[default_dst]" value="1"<?php if ($pun_config['o_default_dst'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[default_dst]" value="0"<?php if ($pun_config['o_default_dst'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     307                                                                                <span><?php echo $lang_admin_options['DST help'] ?></span>
     308                                                                        </td>
     309                                                                </tr>
     310                                                                <tr>
     311                                                                        <th scope="row"><?php echo $lang_admin_options['Language label'] ?></th>
    224312                                                                        <td>
    225313                                                                                <select name="form[default_lang]">
    226314<?php
    227315
    228                 $languages = array();
    229                 $d = dir(PUN_ROOT.'lang');
    230                 while (($entry = $d->read()) !== false)
    231                 {
    232                          if ($entry != '.' && $entry != '..' && is_dir(PUN_ROOT.'lang/'.$entry) && file_exists(PUN_ROOT.'lang/'.$entry.'/common.php'))
    233                                 $languages[] = $entry;
    234                 }
    235                 $d->close();
    236                
    237                 @natsort($languages);
    238 
    239                 while (list(, $temp) = @each($languages))
     316                $languages = forum_list_langs();
     317
     318                foreach ($languages as $temp)
    240319                {
    241320                        if ($pun_config['o_default_lang'] == $temp)
     
    247326?>
    248327                                                                                </select>
    249                                                                                 <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>
    250                                                                         </td>
    251                                                                 </tr>
    252                                                                 <tr>
    253                                                                         <th scope="row">Style par défaut</th>
     328                                                                                <span><?php echo $lang_admin_options['Language help'] ?></span>
     329                                                                        </td>
     330                                                                </tr>
     331                                                                <tr>
     332                                                                        <th scope="row"><?php echo $lang_admin_options['Default style label'] ?></th>
    254333                                                                        <td>
    255334                                                                                <select name="form[default_style]">
    256335<?php
    257336
    258                 $styles = array();
    259                 $d = dir(PUN_ROOT.'style');
    260                 while (($entry = $d->read()) !== false)
    261                 {
    262                         if (substr($entry, strlen($entry)-4) == '.css')
    263                                 $styles[] = substr($entry, 0, strlen($entry)-4);
    264                 }
    265                 $d->close();
    266                
    267                 @natsort($styles);
    268 
    269                 while (list(, $temp) = @each($styles))
     337                $styles = forum_list_styles();
     338
     339                foreach ($styles as $temp)
    270340                {
    271341                        if ($pun_config['o_default_style'] == $temp)
    272                                 echo "\t\t\t\t\t\t\t\t\t".'<option value="'.$temp.'" selected="selected">'.str_replace('_', ' ', $temp).'</option>'."\n";
     342                                echo "\t\t\t\t\t\t\t\t\t\t\t".'<option value="'.$temp.'" selected="selected">'.str_replace('_', ' ', $temp).'</option>'."\n";
    273343                        else
    274                                 echo "\t\t\t\t\t\t\t\t\t".'<option value="'.$temp.'">'.str_replace('_', ' ', $temp).'</option>'."\n";
     344                                echo "\t\t\t\t\t\t\t\t\t\t\t".'<option value="'.$temp.'">'.str_replace('_', ' ', $temp).'</option>'."\n";
    275345                }
    276346
    277347?>
    278348                                                                                </select>
    279                                                                                 <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>
    280                                                                 </tr>
    281                                                         </table>
    282                                                 </div>
    283                                         </fieldset>
    284                                 </div>
    285                                 <div class="inform">
    286                                         <fieldset>
    287                                                 <legend>Dates, heures et limites de temps</legend>
    288                                                 <div class="infldset">
    289                                                         <table class="aligntop" cellspacing="0">
    290                                                                 <tr>
    291                                                                         <th scope="row">Format heure</th>
     349                                                                                <span><?php echo $lang_admin_options['Default style help'] ?></span>
     350                                                                        </td>
     351                                                                </tr>
     352                                                        </table>
     353                                                </div>
     354                                        </fieldset>
     355                                </div>
     356<?php
     357
     358        $diff = ($pun_user['timezone'] + $pun_user['dst']) * 3600;
     359        $timestamp = time() + $diff;
     360
     361?>
     362                                <div class="inform">
     363                                        <fieldset>
     364                                                <legend><?php echo $lang_admin_options['Timeouts subhead'] ?></legend>
     365                                                <div class="infldset">
     366                                                        <table class="aligntop" cellspacing="0">
     367                                                                <tr>
     368                                                                        <th scope="row"><?php echo $lang_admin_options['Time format label'] ?></th>
    292369                                                                        <td>
    293370                                                                                <input type="text" name="form[time_format]" size="25" maxlength="25" value="<?php echo pun_htmlspecialchars($pun_config['o_time_format']) ?>" />
    294                                                                                 <span>[Format actuel : <?php echo date($pun_config['o_time_format']) ?>]&#160;Voir <a href="http://www.php.net/manual/fr/function.date.php">ici</a> pour les options de formatage.</span>
    295                                                                         </td>
    296                                                                 </tr>
    297                                                                 <tr>
    298                                                                         <th scope="row">Date format</th>
     371                                                                                <span><?php printf($lang_admin_options['Time format help'], gmdate($pun_config['o_time_format'], $timestamp), '<a href="http://www.php.net/manual/en/function.date.php">'.$lang_admin_options['PHP manual'].'</a>') ?></span>
     372                                                                        </td>
     373                                                                </tr>
     374                                                                <tr>
     375                                                                        <th scope="row"><?php echo $lang_admin_options['Date format label'] ?></th>
    299376                                                                        <td>
    300377                                                                                <input type="text" name="form[date_format]" size="25" maxlength="25" value="<?php echo pun_htmlspecialchars($pun_config['o_date_format']) ?>" />
    301                                                                                 <span>[Format actuel : <?php echo date($pun_config['o_date_format']) ?>]&#160;Voir <a href="http://www.php.net/manual/fr/function.date.php">ici</a> pour les options de formatage.</span>
    302                                                                         </td>
    303                                                                 </tr>
    304                                                                 <tr>
    305                                                                         <th scope="row">Temps mort de visite</th>
     378                                                                                <span><?php printf($lang_admin_options['Date format help'], gmdate($pun_config['o_date_format'], $timestamp), '<a href="http://www.php.net/manual/en/function.date.php">'.$lang_admin_options['PHP manual'].'</a>') ?></span>
     379                                                                        </td>
     380                                                                </tr>
     381                                                                <tr>
     382                                                                        <th scope="row"><?php echo $lang_admin_options['Visit timeout label'] ?></th>
    306383                                                                        <td>
    307384                                                                                <input type="text" name="form[timeout_visit]" size="5" maxlength="5" value="<?php echo $pun_config['o_timeout_visit'] ?>" />
    308                                                                                 <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>
    309                                                                         </td>
    310                                                                 </tr>
    311                                                                 <tr>
    312                                                                         <th scope="row">Temps mort en ligne</th>
     385                                                                                <span><?php echo $lang_admin_options['Visit timeout help'] ?></span>
     386                                                                        </td>
     387                                                                </tr>
     388                                                                <tr>
     389                                                                        <th scope="row"><?php echo $lang_admin_options['Online timeout label'] ?></th>
    313390                                                                        <td>
    314391                                                                                <input type="text" name="form[timeout_online]" size="5" maxlength="5" value="<?php echo $pun_config['o_timeout_online'] ?>" />
    315                                                                                 <span>Nombre de secondes qu'un utilisateur devra rester inactif avant qu'il ne soit supprimé de la liste des utilisateurs en ligne.</span>
    316                                                                         </td>
    317                                                                 </tr>
    318                                                                 <tr>
    319                                                                         <th scope="row">Temps de redirection</th>
     392                                                                                <span><?php echo $lang_admin_options['Online timeout help'] ?></span>
     393                                                                        </td>
     394                                                                </tr>
     395                                                                <tr>
     396                                                                        <th scope="row"><?php echo $lang_admin_options['Redirect time label'] ?></th>
    320397                                                                        <td>
    321398                                                                                <input type="text" name="form[redirect_delay]" size="3" maxlength="3" value="<?php echo $pun_config['o_redirect_delay'] ?>" />
    322                                                                                 <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>
    323                                                                         </td>
    324                                                                 </tr>
    325                                                         </table>
    326                                                 </div>
    327                                         </fieldset>
    328                                 </div>
    329                                 <div class="inform">
    330                                         <fieldset>
    331                                                 <legend>Afficher</legend>
    332                                                 <div class="infldset">
    333                                                         <table class="aligntop" cellspacing="0">
    334                                                                 <tr>
    335                                                                         <th scope="row">Numéro de version</th>
    336                                                                         <td>
    337                                                                                 <input type="radio" name="form[show_version]" value="1"<?php if ($pun_config['o_show_version'] == '1') echo ' checked="checked"' ?> />&#160;<strong>Oui</strong>&#160;&#160;&#160;<input type="radio" name="form[show_version]" value="0"<?php if ($pun_config['o_show_version'] == '0') echo ' checked="checked"' ?> />&#160;<strong>Non</strong>
    338                                                                                 <span>Affiche le numéro de version de PunBB en bas de page.</span>
    339                                                                         </td>
    340                                                                 </tr>
    341                                                                 <tr>
    342                                                                         <th scope="row">Infos utilisateurs dans les messages</th>
    343                                                                         <td>
    344                                                                                 <input type="radio" name="form[show_user_info]" value="1"<?php if ($pun_config['o_show_user_info'] == '1') echo ' checked="checked"' ?> />&#160;<strong>Oui</strong>&#160;&#160;&#160;<input type="radio" name="form[show_user_info]" value="0"<?php if ($pun_config['o_show_user_info'] == '0') echo ' checked="checked"' ?> />&#160;<strong>Non</strong>
    345                                                                                 <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>
    346                                                                         </td>
    347                                                                 </tr>
    348                                                                 <tr>
    349                                                                         <th scope="row">Nombre de messages par utilisateur</th>
    350                                                                         <td>
    351                                                                                 <input type="radio" name="form[show_post_count]" value="1"<?php if ($pun_config['o_show_post_count'] == '1') echo ' checked="checked"' ?> />&#160;<strong>Oui</strong>&#160;&#160;&#160;<input type="radio" name="form[show_post_count]" value="0"<?php if ($pun_config['o_show_post_count'] == '0') echo ' checked="checked"' ?> />&#160;<strong>Non</strong>
    352                                                                                 <span>Affiche le nombre de messages qu'un utilisateur a écrit (sur la page d'un sujet, son profil et la liste utilisateurs).</span>
    353                                                                         </td>
    354                                                                 </tr>
    355                                                                 <tr>
    356                                                                         <th scope="row">ÉmoticÃŽnes</th>
    357                                                                         <td>
    358                                                                                 <input type="radio" name="form[smilies]" value="1"<?php if ($pun_config['o_smilies'] == '1') echo ' checked="checked"' ?> />&#160;<strong>Oui</strong>&#160;&#160;&#160;<input type="radio" name="form[smilies]" value="0"<?php if ($pun_config['o_smilies'] == '0') echo ' checked="checked"' ?> />&#160;<strong>Non</strong>
    359                                                                                 <span>Convertir les émoticÃŽnes en petites images.</span>
    360                                                                         </td>
    361                                                                 </tr>
    362                                                                 <tr>
    363                                                                         <th scope="row">ÉmoticÃŽnes dans les signatures</th>
    364                                                                         <td>
    365                                                                                 <input type="radio" name="form[smilies_sig]" value="1"<?php if ($pun_config['o_smilies_sig'] == '1') echo ' checked="checked"' ?> />&#160;<strong>Oui</strong>&#160;&#160;&#160;<input type="radio" name="form[smilies_sig]" value="0"<?php if ($pun_config['o_smilies_sig'] == '0') echo ' checked="checked"' ?> />&#160;<strong>Non</strong>
    366                                                                                 <span>Convertir les émoticÃŽnes en petites images dans les signatures.</span>
    367                                                                         </td>
    368                                                                 </tr>
    369                                                                 <tr>
    370                                                                         <th scope="row">Créer des liens cliquables</th>
    371                                                                         <td>
    372                                                                                 <input type="radio" name="form[make_links]" value="1"<?php if ($pun_config['o_make_links'] == '1') echo ' checked="checked"' ?> />&#160;<strong>Oui</strong>&#160;&#160;&#160;<input type="radio" name="form[make_links]" value="0"<?php if ($pun_config['o_make_links'] == '0') echo ' checked="checked"' ?> />&#160;<strong>Non</strong>
    373                                                                                 <span>Lorsque cette fonction est activée, PunBB 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>
    374                                                                         </td>
    375                                                                 </tr>
    376                                                                 <tr>
    377                                                                         <th scope="row">Résumés des discussions</th>
     399                                                                                <span><?php echo $lang_admin_options['Redirect time help'] ?></span>
     400                                                                        </td>
     401                                                                </tr>
     402                                                        </table>
     403                                                </div>
     404                                        </fieldset>
     405                                </div>
     406                                <div class="inform">
     407                                        <fieldset>
     408                                                <legend><?php echo $lang_admin_options['Display subhead'] ?></legend>
     409                                                <div class="infldset">
     410                                                        <table class="aligntop" cellspacing="0">
     411                                                                <tr>
     412                                                                        <th scope="row"><?php echo $lang_admin_options['Version number label'] ?></th>
     413                                                                        <td>
     414                                                                                <input type="radio" name="form[show_version]" value="1"<?php if ($pun_config['o_show_version'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[show_version]" value="0"<?php if ($pun_config['o_show_version'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     415                                                                                <span><?php echo $lang_admin_options['Version number help'] ?></span>
     416                                                                        </td>
     417                                                                </tr>
     418                                                                <tr>
     419                                                                        <th scope="row"><?php echo $lang_admin_options['Info in posts label'] ?></th>
     420                                                                        <td>
     421                                                                                <input type="radio" name="form[show_user_info]" value="1"<?php if ($pun_config['o_show_user_info'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[show_user_info]" value="0"<?php if ($pun_config['o_show_user_info'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     422                                                                                <span><?php echo $lang_admin_options['Info in posts help'] ?></span>
     423                                                                        </td>
     424                                                                </tr>
     425                                                                <tr>
     426                                                                        <th scope="row"><?php echo $lang_admin_options['Post count label'] ?></th>
     427                                                                        <td>
     428                                                                                <input type="radio" name="form[show_post_count]" value="1"<?php if ($pun_config['o_show_post_count'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[show_post_count]" value="0"<?php if ($pun_config['o_show_post_count'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     429                                                                                <span><?php echo $lang_admin_options['Post count help'] ?></span>
     430                                                                        </td>
     431                                                                </tr>
     432                                                                <tr>
     433                                                                        <th scope="row"><?php echo $lang_admin_options['Smilies label'] ?></th>
     434                                                                        <td>
     435                                                                                <input type="radio" name="form[smilies]" value="1"<?php if ($pun_config['o_smilies'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[smilies]" value="0"<?php if ($pun_config['o_smilies'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     436                                                                                <span><?php echo $lang_admin_options['Smilies help'] ?></span>
     437                                                                        </td>
     438                                                                </tr>
     439                                                                <tr>
     440                                                                        <th scope="row"><?php echo $lang_admin_options['Smilies sigs label'] ?></th>
     441                                                                        <td>
     442                                                                                <input type="radio" name="form[smilies_sig]" value="1"<?php if ($pun_config['o_smilies_sig'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[smilies_sig]" value="0"<?php if ($pun_config['o_smilies_sig'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     443                                                                                <span><?php echo $lang_admin_options['Smilies sigs help'] ?></span>
     444                                                                        </td>
     445                                                                </tr>
     446                                                                <tr>
     447                                                                        <th scope="row"><?php echo $lang_admin_options['Clickable links label'] ?></th>
     448                                                                        <td>
     449                                                                                <input type="radio" name="form[make_links]" value="1"<?php if ($pun_config['o_make_links'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[make_links]" value="0"<?php if ($pun_config['o_make_links'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     450                                                                                <span><?php echo $lang_admin_options['Clickable links help'] ?></span>
     451                                                                        </td>
     452                                                                </tr>
     453                                                                <tr>
     454                                                                        <th scope="row"><?php echo $lang_admin_options['Topic review label'] ?></th>
    378455                                                                        <td>
    379456                                                                                <input type="text" name="form[topic_review]" size="3" maxlength="3" value="<?php echo $pun_config['o_topic_review'] ?>" />
    380                                                                                 <span>Nombre maximum  de messages à afficher quand on écrit une réponse. 0 pour désactiver.</span>
    381                                                                         </td>
    382                                                                 </tr>
    383                                                                 <tr>
    384                                                                         <th scope="row">Discussions par page</th>
     457                                                                                <span><?php echo $lang_admin_options['Topic review help'] ?></span>
     458                                                                        </td>
     459                                                                </tr>
     460                                                                <tr>
     461                                                                        <th scope="row"><?php echo $lang_admin_options['Topics per page label'] ?></th>
    385462                                                                        <td>
    386463                                                                                <input type="text" name="form[disp_topics_default]" size="3" maxlength="3" value="<?php echo $pun_config['o_disp_topics_default'] ?>" />
    387                                                                                 <span>Le nombre de discussions par défaut à afficher sur la page d'un forum. Les utilisateurs inscrits peuvent personnaliser cette option.</span>
    388                                                                         </td>
    389                                                                 </tr>
    390                                                                 <tr>
    391                                                                         <th scope="row">Messages par page</th>
     464                                                                                <span><?php echo $lang_admin_options['Topics per page help'] ?></span>
     465                                                                        </td>
     466                                                                </tr>
     467                                                                <tr>
     468                                                                        <th scope="row"><?php echo $lang_admin_options['Posts per page label'] ?></th>
    392469                                                                        <td>
    393470                                                                                <input type="text" name="form[disp_posts_default]" size="3" maxlength="3" value="<?php echo $pun_config['o_disp_posts_default'] ?>" />
    394                                                                                 <span>Le nombre de messages par défaut à afficher sur la page d'une discussion. Les utilisateurs inscrits peuvent personnaliser cette option.</span>
    395                                                                         </td>
    396                                                                 </tr>
    397                                                                 <tr>
    398                                                                         <th scope="row">Taille du retrait</th>
     471                                                                                <span><?php echo $lang_admin_options['Posts per page help'] ?></span>
     472                                                                        </td>
     473                                                                </tr>
     474                                                                <tr>
     475                                                                        <th scope="row"><?php echo $lang_admin_options['Indent label'] ?></th>
    399476                                                                        <td>
    400477                                                                                <input type="text" name="form[indent_num_spaces]" size="3" maxlength="3" value="<?php echo $pun_config['o_indent_num_spaces'] ?>" />
    401                                                                                 <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>
    402                                                                         </td>
    403                                                                 </tr>
    404                                                         </table>
    405                                                 </div>
    406                                         </fieldset>
    407                                 </div>
    408                                 <div class="inform">
    409                                         <fieldset>
    410                                                 <legend>Fonctionnalités</legend>
    411                                                 <div class="infldset">
    412                                                         <table class="aligntop" cellspacing="0">
    413                                                                 <tr>
    414                                                                         <th scope="row">Réponse rapide</th>
    415                                                                         <td>
    416                                                                                 <input type="radio" name="form[quickpost]" value="1"<?php if ($pun_config['o_quickpost'] == '1') echo ' checked="checked"' ?> />&#160;<strong>Oui</strong>&#160;&#160;&#160;<input type="radio" name="form[quickpost]" value="0"<?php if ($pun_config['o_quickpost'] == '0') echo ' checked="checked"' ?> />
    417                                                                                 &#160;<strong>Non</strong>
    418                                                                                 <span>Lorsque cette option est activée, PunBB 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>
    419                                                                         </td>
    420                                                                 </tr>
    421                                                                 <tr>
    422                                                                         <th scope="row">Utilisateurs en ligne</th>
    423                                                                         <td>
    424                                                                                 <input type="radio" name="form[users_online]" value="1"<?php if ($pun_config['o_users_online'] == '1') echo ' checked="checked"' ?> />&#160;<strong>Oui</strong>&#160;&#160;&#160;<input type="radio" name="form[users_online]" value="0"<?php if ($pun_config['o_users_online'] == '0') echo ' checked="checked"' ?> />
    425                                                                                 &#160;<strong>Non</strong>
    426                                                                                 <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>
    427                                                                         </td>
    428                                                                 </tr>
    429                                                                 <tr>
    430                                                                         <th scope="row"><a name="censoring">Mots à censurer</a></th>
    431                                                                         <td>
    432                                                                                 <input type="radio" name="form[censoring]" value="1"<?php if ($pun_config['o_censoring'] == '1') echo ' checked="checked"' ?> />&#160;<strong>Oui</strong>&#160;&#160;&#160;<input type="radio" name="form[censoring]" value="0"<?php if ($pun_config['o_censoring'] == '0') echo ' checked="checked"' ?> />&#160;<strong>Non</strong>
    433                                                                                 <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>
    434                                                                         </td>
    435                                                                 </tr>
    436                                                                 <tr>
    437                                                                         <th scope="row"><a name="ranks">Rangs utilisateurs</a></th>
    438                                                                         <td>
    439                                                                                 <input type="radio" name="form[ranks]" value="1"<?php if ($pun_config['o_ranks'] == '1') echo ' checked="checked"' ?> />&#160;<strong>Oui</strong>&#160;&#160;&#160;<input type="radio" name="form[ranks]" value="0"<?php if ($pun_config['o_ranks'] == '0') echo ' checked="checked"' ?> />&#160;<strong>Non</strong>
    440                                                                                 <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>
    441                                                                         </td>
    442                                                                 </tr>
    443                                                                 <tr>
    444                                                                         <th scope="row">Utilisateur a écrit recemment</th>
    445                                                                         <td>
    446                                                                                 <input type="radio" name="form[show_dot]" value="1"<?php if ($pun_config['o_show_dot'] == '1') echo ' checked="checked"' ?> />&#160;<strong>Oui</strong>&#160;&#160;&#160;<input type="radio" name="form[show_dot]" value="0"<?php if ($pun_config['o_show_dot'] == '0') echo ' checked="checked"' ?> />
    447                                                                                 &#160;<strong>Non</strong>
    448                                                                                 <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>
    449                                                                         </td>
    450                                                                 </tr>
    451                                                                 <tr>
    452                                                                         <th scope="row">Saut rapide</th>
    453                                                                         <td>
    454                                                                                 <input type="radio" name="form[quickjump]" value="1"<?php if ($pun_config['o_quickjump'] == '1') echo ' checked="checked"' ?> />&#160;<strong>Oui</strong>&#160;&#160;&#160;<input type="radio" name="form[quickjump]" value="0"<?php if ($pun_config['o_quickjump'] == '0') echo ' checked="checked"' ?> />&#160;<strong>Non</strong>
    455                                                                                 <span>Active le menu déroulant de saut rapide (saut de forum en forum).</span>
    456                                                                         </td>
    457                                                                 </tr>
    458                                                                 <tr>
    459                                                                         <th scope="row">Compression GZip</th>
    460                                                                         <td>
    461                                                                                 <input type="radio" name="form[gzip]" value="1"<?php if ($pun_config['o_gzip'] == '1') echo ' checked="checked"' ?> />&#160;<strong>Oui</strong>&#160;&#160;&#160;<input type="radio" name="form[gzip]" value="0"<?php if ($pun_config['o_gzip'] == '0') echo ' checked="checked"' ?> />
    462                                                                                 &#160;<strong>Non</strong>
    463                                                                                 <span>Si activée, PunBB 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>
    464                                                                         </td>
    465                                                                 </tr>
    466                                                                 <tr>
    467                                                                         <th scope="row">Recherche dans tous les forums</th>
    468                                                                         <td>
    469                                                                                 <input type="radio" name="form[search_all_forums]" value="1"<?php if ($pun_config['o_search_all_forums'] == '1') echo ' checked="checked"' ?> />&#160;<strong>Oui</strong>&#160;&#160;&#160;<input type="radio" name="form[search_all_forums]" value="0"<?php if ($pun_config['o_search_all_forums'] == '0') echo ' checked="checked"' ?> />&#160;<strong>Non</strong>
    470                                                                                 <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>
    471                                                                         </td>
    472                                                                 </tr>
    473                                                                 <tr>
    474                                                                         <th scope="row">Items de menu additionnels</th>
     478                                                                                <span><?php echo $lang_admin_options['Indent help'] ?></span>
     479                                                                        </td>
     480                                                                </tr>
     481                                                                <tr>
     482                                                                        <th scope="row"><?php echo $lang_admin_options['Quote depth label'] ?></th>
     483                                                                        <td>
     484                                                                                <input type="text" name="form[quote_depth]" size="3" maxlength="3" value="<?php echo $pun_config['o_quote_depth'] ?>" />
     485                                                                                <span><?php echo $lang_admin_options['Quote depth help'] ?></span>
     486                                                                        </td>
     487                                                                </tr>
     488                                                        </table>
     489                                                </div>
     490                                        </fieldset>
     491                                </div>
     492                                <div class="inform">
     493                                        <fieldset>
     494                                                <legend><?php echo $lang_admin_options['Features subhead'] ?></legend>
     495                                                <div class="infldset">
     496                                                        <table class="aligntop" cellspacing="0">
     497                                                                <tr>
     498                                                                        <th scope="row"><?php echo $lang_admin_options['Quick post label'] ?></th>
     499                                                                        <td>
     500                                                                                <input type="radio" name="form[quickpost]" value="1"<?php if ($pun_config['o_quickpost'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[quickpost]" value="0"<?php if ($pun_config['o_quickpost'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     501                                                                                <span><?php echo $lang_admin_options['Quick post help'] ?></span>
     502                                                                        </td>
     503                                                                </tr>
     504                                                                <tr>
     505                                                                        <th scope="row"><?php echo $lang_admin_options['Users online label'] ?></th>
     506                                                                        <td>
     507                                                                                <input type="radio" name="form[users_online]" value="1"<?php if ($pun_config['o_users_online'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[users_online]" value="0"<?php if ($pun_config['o_users_online'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     508                                                                                <span><?php echo $lang_admin_options['Users online help'] ?></span>
     509                                                                        </td>
     510                                                                </tr>
     511                                                                <tr>
     512                                                                        <th scope="row"><a name="censoring"><?php echo $lang_admin_options['Censor words label'] ?></a></th>
     513                                                                        <td>
     514                                                                                <input type="radio" name="form[censoring]" value="1"<?php if ($pun_config['o_censoring'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[censoring]" value="0"<?php if ($pun_config['o_censoring'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     515                                                                                <span><?php printf($lang_admin_options['Censor words help'], '<a href="admin_censoring.php">'.$lang_admin_common['Censoring'].'</a>') ?></span>
     516                                                                        </td>
     517                                                                </tr>
     518                                                                <tr>
     519                                                                        <th scope="row"><a name="signatures"><?php echo $lang_admin_options['Signatures label'] ?></a></th>
     520                                                                        <td>
     521                                                                                <input type="radio" name="form[signatures]" value="1"<?php if ($pun_config['o_signatures'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[signatures]" value="0"<?php if ($pun_config['o_signatures'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     522                                                                                <span><?php echo $lang_admin_options['Signatures help'] ?></span>
     523                                                                        </td>
     524                                                                </tr>
     525                                                                <tr>
     526                                                                        <th scope="row"><a name="ranks"><?php echo $lang_admin_options['User ranks label'] ?></a></th>
     527                                                                        <td>
     528                                                                                <input type="radio" name="form[ranks]" value="1"<?php if ($pun_config['o_ranks'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[ranks]" value="0"<?php if ($pun_config['o_ranks'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     529                                                                                <span><?php printf($lang_admin_options['User ranks help'], '<a href="admin_ranks.php">'.$lang_admin_common['Ranks'].'</a>') ?></span>
     530                                                                        </td>
     531                                                                </tr>
     532                                                                <tr>
     533                                                                        <th scope="row"><?php echo $lang_admin_options['User has posted label'] ?></th>
     534                                                                        <td>
     535                                                                                <input type="radio" name="form[show_dot]" value="1"<?php if ($pun_config['o_show_dot'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[show_dot]" value="0"<?php if ($pun_config['o_show_dot'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     536                                                                                <span><?php echo $lang_admin_options['User has posted help'] ?></span>
     537                                                                        </td>
     538                                                                </tr>
     539                                                                <tr>
     540                                                                        <th scope="row"><?php echo $lang_admin_options['Topic views label'] ?></th>
     541                                                                        <td>
     542                                                                                <input type="radio" name="form[topic_views]" value="1"<?php if ($pun_config['o_topic_views'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[topic_views]" value="0"<?php if ($pun_config['o_topic_views'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     543                                                                                <span><?php echo $lang_admin_options['Topic views help'] ?></span>
     544                                                                        </td>
     545                                                                </tr>
     546                                                                <tr>
     547                                                                        <th scope="row"><?php echo $lang_admin_options['Quick jump label'] ?></th>
     548                                                                        <td>
     549                                                                                <input type="radio" name="form[quickjump]" value="1"<?php if ($pun_config['o_quickjump'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[quickjump]" value="0"<?php if ($pun_config['o_quickjump'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     550                                                                                <span><?php echo $lang_admin_options['Quick jump help'] ?></span>
     551                                                                        </td>
     552                                                                </tr>
     553                                                                <tr>
     554                                                                        <th scope="row"><?php echo $lang_admin_options['GZip label'] ?></th>
     555                                                                        <td>
     556                                                                                <input type="radio" name="form[gzip]" value="1"<?php if ($pun_config['o_gzip'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[gzip]" value="0"<?php if ($pun_config['o_gzip'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     557                                                                                <span><?php echo $lang_admin_options['GZip help'] ?></span>
     558                                                                        </td>
     559                                                                </tr>
     560                                                                <tr>
     561                                                                        <th scope="row"><?php echo $lang_admin_options['Search all label'] ?></th>
     562                                                                        <td>
     563                                                                                <input type="radio" name="form[search_all_forums]" value="1"<?php if ($pun_config['o_search_all_forums'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[search_all_forums]" value="0"<?php if ($pun_config['o_search_all_forums'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     564                                                                                <span><?php echo $lang_admin_options['Search all help'] ?></span>
     565                                                                        </td>
     566                                                                </tr>
     567                                                                <tr>
     568                                                                        <th scope="row"><?php echo $lang_admin_options['Menu items label'] ?></th>
    475569                                                                        <td>
    476570                                                                                <textarea name="form[additional_navlinks]" rows="3" cols="55"><?php echo pun_htmlspecialchars($pun_config['o_additional_navlinks']) ?></textarea>
    477                                                                                 <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 «&#160;liste des membres&#160;»). Séparez chaque entrée par un retour à la ligne.</span>
    478                                                                         </td>
    479                                                                 </tr>
    480                                                         </table>
    481                                                 </div>
    482                                         </fieldset>
    483                                 </div>
    484                                 <div class="inform">
    485                                         <fieldset>
    486                                                 <legend>Signalements</legend>
    487                                                 <div class="infldset">
    488                                                         <table class="aligntop" cellspacing="0">
    489                                                                 <tr>
    490                                                                         <th scope="row">Méthode de signalement</th>
    491                                                                         <td>
    492                                                                                 <input type="radio" name="form[report_method]" value="0"<?php if ($pun_config['o_report_method'] == '0') echo ' checked="checked"' ?> />&#160;Interne&#160;&#160;&#160;<input type="radio" name="form[report_method]" value="1"<?php if ($pun_config['o_report_method'] == '1') echo ' checked="checked"' ?> />&#160;E-mail&#160;&#160;&#160;<input type="radio" name="form[report_method]" value="2"<?php if ($pun_config['o_report_method'] == '2') echo ' checked="checked"' ?> />&#160;Les deux
    493                                                                                 <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>
    494                                                                         </td>
    495                                                                 </tr>
    496                                                                 <tr>
    497                                                                         <th scope="row">Signalement nouvelle inscription</th>
    498                                                                         <td>
    499                                                                                 <input type="radio" name="form[regs_report]" value="1"<?php if ($pun_config['o_regs_report'] == '1') echo ' checked="checked"' ?> />&#160;<strong>Oui</strong>&#160;&#160;&#160;<input type="radio" name="form[regs_report]" value="0"<?php if ($pun_config['o_regs_report'] == '0') echo ' checked="checked"' ?> />&#160;<strong>Non</strong>
    500                                                                                 <span>Si activée, PunBB enverra un e-mail à chacune des adresses de la liste ci-dessous à chaque nouvelle inscription sur les forums.</span>
    501                                                                         </td>
    502                                                                 </tr>
    503                                                                 <tr>
    504                                                                         <th scope="row">Liste d'adresses e-mail</th>
     571                                                                                <span><?php echo $lang_admin_options['Menu items help'] ?></span>
     572                                                                        </td>
     573                                                                </tr>
     574                                                        </table>
     575                                                </div>
     576                                        </fieldset>
     577                                </div>
     578                                <div class="inform">
     579                                        <fieldset>
     580                                                <legend><?php echo $lang_admin_options['Feed subhead'] ?></legend>
     581                                                <div class="infldset">
     582                                                        <table class="aligntop" cellspacing="0">
     583                                                                <tr>
     584                                                                        <th scope="row"><?php echo $lang_admin_options['Default feed label'] ?></th>
     585                                                                        <td>
     586                                                                                <input type="radio" name="form[feed_type]" value="0"<?php if ($pun_config['o_feed_type'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_options['None'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[feed_type]" value="1"<?php if ($pun_config['o_feed_type'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_options['RSS'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[feed_type]" value="2"<?php if ($pun_config['o_feed_type'] == '2') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_options['Atom'] ?></strong>
     587                                                                                <span><?php echo $lang_admin_options['Default feed help'] ?></span>
     588                                                                        </td>
     589                                                                </tr>
     590                                                                <tr>
     591                                                                        <th scope="row"><?php echo $lang_admin_options['Feed TTL label'] ?></th>
     592                                                                        <td>
     593                                                                                <select name="form[feed_ttl]">
     594                                                                                        <option value="0"<?php if ($pun_config['o_feed_ttl'] == '0') echo ' selected="selected"'; ?>><?php echo $lang_admin_options['No cache'] ?></option>
     595<?php
     596
     597                $times = array(5, 15, 30, 60);
     598
     599                foreach ($times as $time)
     600                        echo "\t\t\t\t\t\t\t\t\t\t\t".'<option value="'.$time.'"'.($pun_config['o_feed_ttl'] == $time ? ' selected="selected"' : '').'>'.sprintf($lang_admin_options['Minutes'], $time).'</option>'."\n";
     601
     602?>
     603                                                                                </select>
     604                                                                                <span><?php echo $lang_admin_options['Feed TTL help'] ?></span>
     605                                                                        </td>
     606                                                                </tr>
     607                                                        </table>
     608                                                </div>
     609                                        </fieldset>
     610                                </div>
     611                                <div class="inform">
     612                                        <fieldset>
     613                                                <legend><?php echo $lang_admin_options['Reports subhead'] ?></legend>
     614                                                <div class="infldset">
     615                                                        <table class="aligntop" cellspacing="0">
     616                                                                <tr>
     617                                                                        <th scope="row"><?php echo $lang_admin_options['Reporting method label'] ?></th>
     618                                                                        <td>
     619                                                                                <input type="radio" name="form[report_method]" value="0"<?php if ($pun_config['o_report_method'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_options['Internal'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[report_method]" value="1"<?php if ($pun_config['o_report_method'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_options['By e-mail'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[report_method]" value="2"<?php if ($pun_config['o_report_method'] == '2') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_options['Both'] ?></strong>
     620                                                                                <span><?php echo $lang_admin_options['Reporting method help'] ?></span>
     621                                                                        </td>
     622                                                                </tr>
     623                                                                <tr>
     624                                                                        <th scope="row"><?php echo $lang_admin_options['Mailing list label'] ?></th>
    505625                                                                        <td>
    506626                                                                                <textarea name="form[mailing_list]" rows="5" cols="55"><?php echo pun_htmlspecialchars($pun_config['o_mailing_list']) ?></textarea>
    507                                                                                 <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>
    508                                                                         </td>
    509                                                                 </tr>
    510                                                         </table>
    511                                                 </div>
    512                                         </fieldset>
    513                                 </div>
    514                                 <div class="inform">
    515                                         <fieldset>
    516                                                 <legend>Avatars</legend>
    517                                                 <div class="infldset">
    518                                                         <table class="aligntop" cellspacing="0">
    519                                                                 <tr>
    520                                                                         <th scope="row">Utiliser les avatars</th>
    521                                                                         <td>
    522                                                                                 <input type="radio" name="form[avatars]" value="1"<?php if ($pun_config['o_avatars'] == '1') echo ' checked="checked"' ?> />&#160;<strong>Oui</strong>&#160;&#160;&#160;<input type="radio" name="form[avatars]" value="0"<?php if ($pun_config['o_avatars'] == '0') echo ' checked="checked"' ?> />&#160;<strong>Non</strong>
    523                                                                                 <span>Si cette option est activée, les utilisateurs pourront envoyer sur le serveur un avatar qui sera affiché sous leur titre/rang.</span>
    524                                                                         </td>
    525                                                                 </tr>
    526                                                                 <tr>
    527                                                                         <th scope="row">Répertoire avatars</th>
     627                                                                                <span><?php echo $lang_admin_options['Mailing list help'] ?></span>
     628                                                                        </td>
     629                                                                </tr>
     630                                                        </table>
     631                                                </div>
     632                                        </fieldset>
     633                                </div>
     634                                <div class="inform">
     635                                        <fieldset>
     636                                                <legend><?php echo $lang_admin_options['Avatars subhead'] ?></legend>
     637                                                <div class="infldset">
     638                                                        <table class="aligntop" cellspacing="0">
     639                                                                <tr>
     640                                                                        <th scope="row"><?php echo $lang_admin_options['Use avatars label'] ?></th>
     641                                                                        <td>
     642                                                                                <input type="radio" name="form[avatars]" value="1"<?php if ($pun_config['o_avatars'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[avatars]" value="0"<?php if ($pun_config['o_avatars'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     643                                                                                <span><?php echo $lang_admin_options['Use avatars help'] ?></span>
     644                                                                        </td>
     645                                                                </tr>
     646                                                                <tr>
     647                                                                        <th scope="row"><?php echo $lang_admin_options['Upload directory label'] ?></th>
    528648                                                                        <td>
    529649                                                                                <input type="text" name="form[avatars_dir]" size="35" maxlength="50" value="<?php echo pun_htmlspecialchars($pun_config['o_avatars_dir']) ?>" />
    530                                                                                 <span>Le dossier où les avatars seront envoyés (chemin relatif au dossier racine de PunBB). <acronym title="PHP: Hypertext Preprocessor" lang="en">PHP</acronym> doit avoir les droits en écriture dans ce répertoire.</span>
    531                                                                         </td>
    532                                                                 </tr>
    533                                                                 <tr>
    534                                                                         <th scope="row">Largeur maximum</th>
     650                                                                                <span><?php echo $lang_admin_options['Upload directory help'] ?></span>
     651                                                                        </td>
     652                                                                </tr>
     653                                                                <tr>
     654                                                                        <th scope="row"><?php echo $lang_admin_options['Max width label'] ?></th>
    535655                                                                        <td>
    536656                                                                                <input type="text" name="form[avatars_width]" size="5" maxlength="5" value="<?php echo $pun_config['o_avatars_width'] ?>" />
    537                                                                                 <span>La largeur maximum admise (exprimée en pixels) pour les avatars (60 est recommandé).</span>
    538                                                                         </td>
    539                                                                 </tr>
    540                                                                 <tr>
    541                                                                         <th scope="row">Hauteur maximum</th>
     657                                                                                <span><?php echo $lang_admin_options['Max width help'] ?></span>
     658                                                                        </td>
     659                                                                </tr>
     660                                                                <tr>
     661                                                                        <th scope="row"><?php echo $lang_admin_options['Max height label'] ?></th>
    542662                                                                        <td>
    543663                                                                                <input type="text" name="form[avatars_height]" size="5" maxlength="5" value="<?php echo $pun_config['o_avatars_height'] ?>" />
    544                                                                                 <span>La hauteur maximum admise (exprimée en pixels) pour les avatars (60 est recommandé).</span>
    545                                                                         </td>
    546                                                                 </tr>
    547                                                                 <tr>
    548                                                                         <th scope="row">Taile maximum</th>
     664                                                                                <span><?php echo $lang_admin_options['Max height help'] ?></span>
     665                                                                        </td>
     666                                                                </tr>
     667                                                                <tr>
     668                                                                        <th scope="row"><?php echo $lang_admin_options['Max size label'] ?></th>
    549669                                                                        <td>
    550670                                                                                <input type="text" name="form[avatars_size]" size="6" maxlength="6" value="<?php echo $pun_config['o_avatars_size'] ?>" />
    551                                                                                 <span>La taille maximum admise (exprimée en bytes) pour les avatars (10240 est recommandé).</span>
    552                                                                         </td>
    553                                                                 </tr>
    554                                                         </table>
    555                                                 </div>
    556                                         </fieldset>
    557                                 </div>
    558                                 <div class="inform">
    559                                         <fieldset>
    560                                                 <legend>E-mail</legend>
    561                                                 <div class="infldset">
    562                                                         <table class="aligntop" cellspacing="0">
    563                                                                 <tr>
    564                                                                         <th scope="row">E-mail administrateur</th>
    565                                                                         <td>
    566                                                                                 <input type="text" name="form[admin_email]" size="50" maxlength="50" value="<?php echo $pun_config['o_admin_email'] ?>" />
    567                                                                                 <span>L'adresse e-mail de l'administrateur des forums.</span>
    568                                                                         </td>
    569                                                                 </tr>
    570                                                                 <tr>
    571                                                                         <th scope="row">E-mail webmaster</th>
    572                                                                         <td>
    573                                                                                 <input type="text" name="form[webmaster_email]" size="50" maxlength="50" value="<?php echo $pun_config['o_webmaster_email'] ?>" />
    574                                                                                 <span>Ceci est l'adresse qui sera utilisée par tous les messages envoyés par les forums.</span>
    575                                                                         </td>
    576                                                                 </tr>
    577                                                                 <tr>
    578                                                                         <th scope="row">Abonnements</th>
    579                                                                         <td>
    580                                                                                 <input type="radio" name="form[subscriptions]" value="1"<?php if ($pun_config['o_subscriptions'] == '1') echo ' checked="checked"' ?> />&#160;<strong>Oui</strong>&#160;&#160;&#160;<input type="radio" name="form[subscriptions]" value="0"<?php if ($pun_config['o_subscriptions'] == '0') echo ' checked="checked"' ?> />&#160;<strong>Non</strong>
    581                                                                                 <span>Activer l'abonnement des utilisateurs aux discussions  (réception d'un e-mail lors d'une réponse).</span>
    582                                                                         </td>
    583                                                                 </tr>
    584                                                                 <tr>
    585                                                                         <th scope="row">Adresse serveur <acronym title="Simple Mail Transfer Protocol" lang="en">SMTP</acronym></th>
     671                                                                                <span><?php echo $lang_admin_options['Max size help'] ?></span>
     672                                                                        </td>
     673                                                                </tr>
     674                                                        </table>
     675                                                </div>
     676                                        </fieldset>
     677                                </div>
     678                                <div class="inform">
     679                                        <fieldset>
     680                                                <legend><?php echo $lang_admin_options['E-mail subhead'] ?></legend>
     681                                                <div class="infldset">
     682                                                        <table class="aligntop" cellspacing="0">
     683                                                                <tr>
     684                                                                        <th scope="row"><?php echo $lang_admin_options['Admin e-mail label'] ?></th>
     685                                                                        <td>
     686                                                                                <input type="text" name="form[admin_email]" size="50" maxlength="80" value="<?php echo $pun_config['o_admin_email'] ?>" />
     687                                                                                <span><?php echo $lang_admin_options['Admin e-mail help'] ?></span>
     688                                                                        </td>
     689                                                                </tr>
     690                                                                <tr>
     691                                                                        <th scope="row"><?php echo $lang_admin_options['Webmaster e-mail label'] ?></th>
     692                                                                        <td>
     693                                                                                <input type="text" name="form[webmaster_email]" size="50" maxlength="80" value="<?php echo $pun_config['o_webmaster_email'] ?>" />
     694                                                                                <span><?php echo $lang_admin_options['Webmaster e-mail help'] ?></span>
     695                                                                        </td>
     696                                                                </tr>
     697                                                                <tr>
     698                                                                        <th scope="row"><?php echo $lang_admin_options['Forum subscriptions label'] ?></th>
     699                                                                        <td>
     700                                                                                <input type="radio" name="form[forum_subscriptions]" value="1"<?php if ($pun_config['o_forum_subscriptions'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[forum_subscriptions]" value="0"<?php if ($pun_config['o_forum_subscriptions'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     701                                                                                <span><?php echo $lang_admin_options['Forum subscriptions help'] ?></span>
     702                                                                        </td>
     703                                                                </tr>
     704                                                                <tr>
     705                                                                        <th scope="row"><?php echo $lang_admin_options['Topic subscriptions label'] ?></th>
     706                                                                        <td>
     707                                                                                <input type="radio" name="form[topic_subscriptions]" value="1"<?php if ($pun_config['o_topic_subscriptions'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[topic_subscriptions]" value="0"<?php if ($pun_config['o_topic_subscriptions'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     708                                                                                <span><?php echo $lang_admin_options['Topic subscriptions help'] ?></span>
     709                                                                        </td>
     710                                                                </tr>
     711                                                                <tr>
     712                                                                        <th scope="row"><?php echo $lang_admin_options['SMTP address label'] ?></th>
    586713                                                                        <td>
    587714                                                                                <input type="text" name="form[smtp_host]" size="30" maxlength="100" value="<?php echo pun_htmlspecialchars($pun_config['o_smtp_host']) ?>" />
    588                                                                                 <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>
    589                                                                         </td>
    590                                                                 </tr>
    591                                                                 <tr>
    592                                                                         <th scope="row">Nom d'utilisateur <acronym title="Simple Mail Transfer Protocol" lang="en">SMTP</acronym></th>
     715                                                                                <span><?php echo $lang_admin_options['SMTP address help'] ?></span>
     716                                                                        </td>
     717                                                                </tr>
     718                                                                <tr>
     719                                                                        <th scope="row"><?php echo $lang_admin_options['SMTP username label'] ?></th>
    593720                                                                        <td>
    594721                                                                                <input type="text" name="form[smtp_user]" size="25" maxlength="50" value="<?php echo pun_htmlspecialchars($pun_config['o_smtp_user']) ?>" />
    595                                                                                 <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>
    596                                                                         </td>
    597                                                                 </tr>
    598                                                                 <tr>
    599                                                                         <th scope="row">Mot de passe <acronym title="Simple Mail Transfer Protocol" lang="en">SMTP</acronym></th>
    600                                                                         <td>
    601                                                                                 <input type="text" name="form[smtp_pass]" size="25" maxlength="50" value="<?php echo pun_htmlspecialchars($pun_config['o_smtp_pass']) ?>" />
    602                                                                                 <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>
    603                                                                         </td>
    604                                                                 </tr>
    605                                                         </table>
    606                                                 </div>
    607                                         </fieldset>
    608                                 </div>
    609                                 <div class="inform">
    610                                         <fieldset>
    611                                                 <legend>Inscriptions</legend>
    612                                                 <div class="infldset">
    613                                                         <table class="aligntop" cellspacing="0">
    614                                                                 <tr>
    615                                                                         <th scope="row">Autoriser les nouvelles inscriptions</th>
    616                                                                         <td>
    617                                                                                 <input type="radio" name="form[regs_allow]" value="1"<?php if ($pun_config['o_regs_allow'] == '1') echo ' checked="checked"' ?> />&#160;<strong>Oui</strong>&#160;&#160;&#160;<input type="radio" name="form[regs_allow]" value="0"<?php if ($pun_config['o_regs_allow'] == '0') echo ' checked="checked"' ?> />&#160;<strong>Non</strong>
    618                                                                                 <span>Permet d'accepter ou non les nouvelles inscriptions aux forums. Désactivez seulement en cas de circonstances spéciales.</span>
    619                                                                         </td>
    620                                                                 </tr>
    621                                                                 <tr>
    622                                                                         <th scope="row">Vérification des inscriptions</th>
    623                                                                         <td>
    624                                                                                 <input type="radio" name="form[regs_verify]" value="1"<?php if ($pun_config['o_regs_verify'] == '1') echo ' checked="checked"' ?> />&#160;<strong>Oui</strong>&#160;&#160;&#160;<input type="radio" name="form[regs_verify]" value="0"<?php if ($pun_config['o_regs_verify'] == '0') echo ' checked="checked"' ?> />
    625                                                                                 &#160;<strong>Non</strong>
    626                                                                                 <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 incriptions abusives et pour être sûr que les utilisateurs ont une adresse e-mail valide dans leur profil.</span>
    627                                                                         </td>
    628                                                                 </tr>
    629                                                                 <tr>
    630                                                                         <th scope="row">Activer rÚgles d'utilisation</th>
    631                                                                         <td>
    632                                                                                 <input type="radio" name="form[rules]" value="1"<?php if ($pun_config['o_rules'] == '1') echo ' checked="checked"' ?> />&#160;<strong>Oui</strong>&#160;&#160;&#160;<input type="radio" name="form[rules]" value="0"<?php if ($pun_config['o_rules'] == '0') echo ' checked="checked"' ?> />&#160;<strong>Non</strong>
    633                                                                                 <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>
    634                                                                         </td>
    635                                                                 </tr>
    636                                                                 <tr>
    637                                                                         <th scope="row">RÚgles d'utilisation</th>
     722                                                                                <span><?php echo $lang_admin_options['SMTP username help'] ?></span>
     723                                                                        </td>
     724                                                                </tr>
     725                                                                <tr>
     726                                                                        <th scope="row"><?php echo $lang_admin_options['SMTP password label'] ?></th>
     727                                                                        <td>
     728                                                                                <span><input type="checkbox" name="form[smtp_change_pass]" value="1" />&#160;&#160;<?php echo $lang_admin_options['SMTP change password help'] ?></span>
     729<?php $smtp_pass = !empty($pun_config['o_smtp_pass']) ? random_key(pun_strlen($pun_config['o_smtp_pass']), true) : ''; ?>
     730                                                                                <input type="password" name="form[smtp_pass1]" size="25" maxlength="50" value="<?php echo $smtp_pass ?>" />
     731                                                                                <input type="password" name="form[smtp_pass2]" size="25" maxlength="50" value="<?php echo $smtp_pass ?>" />
     732                                                                                <span><?php echo $lang_admin_options['SMTP password help'] ?></span>
     733                                                                        </td>
     734                                                                </tr>
     735                                                                <tr>
     736                                                                        <th scope="row"><?php echo $lang_admin_options['SMTP SSL label'] ?></th>
     737                                                                        <td>
     738                                                                                <input type="radio" name="form[smtp_ssl]" value="1"<?php if ($pun_config['o_smtp_ssl'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[smtp_ssl]" value="0"<?php if ($pun_config['o_smtp_ssl'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     739                                                                                <span><?php echo $lang_admin_options['SMTP SSL help'] ?></span>
     740                                                                        </td>
     741                                                                </tr>
     742                                                        </table>
     743                                                </div>
     744                                        </fieldset>
     745                                </div>
     746                                <div class="inform">
     747                                        <fieldset>
     748                                                <legend><?php echo $lang_admin_options['Registration subhead'] ?></legend>
     749                                                <div class="infldset">
     750                                                        <table class="aligntop" cellspacing="0">
     751                                                                <tr>
     752                                                                        <th scope="row"><?php echo $lang_admin_options['Allow new label'] ?></th>
     753                                                                        <td>
     754                                                                                <input type="radio" name="form[regs_allow]" value="1"<?php if ($pun_config['o_regs_allow'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[regs_allow]" value="0"<?php if ($pun_config['o_regs_allow'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     755                                                                                <span><?php echo $lang_admin_options['Allow new help'] ?></span>
     756                                                                        </td>
     757                                                                </tr>
     758                                                                <tr>
     759                                                                        <th scope="row"><?php echo $lang_admin_options['Verify label'] ?></th>
     760                                                                        <td>
     761                                                                                <input type="radio" name="form[regs_verify]" value="1"<?php if ($pun_config['o_regs_verify'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[regs_verify]" value="0"<?php if ($pun_config['o_regs_verify'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     762                                                                                <span><?php echo $lang_admin_options['Verify help'] ?></span>
     763                                                                        </td>
     764                                                                </tr>
     765                                                                <tr>
     766                                                                        <th scope="row"><?php echo $lang_admin_options['Report new label'] ?></th>
     767                                                                        <td>
     768                                                                                <input type="radio" name="form[regs_report]" value="1"<?php if ($pun_config['o_regs_report'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[regs_report]" value="0"<?php if ($pun_config['o_regs_report'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     769                                                                                <span><?php echo $lang_admin_options['Report new help'] ?></span>
     770                                                                        </td>
     771                                                                </tr>
     772                                                                <tr>
     773                                                                        <th scope="row"><?php echo $lang_admin_options['Use rules label'] ?></th>
     774                                                                        <td>
     775                                                                                <input type="radio" name="form[rules]" value="1"<?php if ($pun_config['o_rules'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[rules]" value="0"<?php if ($pun_config['o_rules'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     776                                                                                <span><?php echo $lang_admin_options['Use rules help'] ?></span>
     777                                                                        </td>
     778                                                                </tr>
     779                                                                <tr>
     780                                                                        <th scope="row"><?php echo $lang_admin_options['Rules label'] ?></th>
    638781                                                                        <td>
    639782                                                                                <textarea name="form[rules_message]" rows="10" cols="55"><?php echo pun_htmlspecialchars($pun_config['o_rules_message']) ?></textarea>
    640                                                                                 <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>
    641                                                                         </td>
    642                                                                 </tr>
    643                                                         </table>
    644                                                 </div>
    645                                         </fieldset>
    646                                 </div>
    647                                 <div class="inform">
    648                                         <fieldset>
    649                                                 <legend>Annonce</legend>
    650                                                 <div class="infldset">
    651                                                         <table class="aligntop" cellspacing="0">
    652                                                                 <tr>
    653                                                                         <th scope="row">Afficher annonce</th>
    654                                                                         <td>
    655                                                                                 <input type="radio" name="form[announcement]" value="1"<?php if ($pun_config['o_announcement'] == '1') echo ' checked="checked"' ?> />&#160;<strong>Oui</strong>&#160;&#160;&#160;<input type="radio" name="form[announcement]" value="0"<?php if ($pun_config['o_announcement'] == '0') echo ' checked="checked"' ?> />&#160;<strong>Non</strong>
    656                                                                                 <span>Activez cette option pour afficher sur les forums le texte ci-dessous.</span>
    657                                                                         </td>
    658                                                                 </tr>
    659                                                                 <tr>
    660                                                                         <th scope="row">Message de l'annonce</th>
     783                                                                                <span><?php echo $lang_admin_options['Rules help'] ?></span>
     784                                                                        </td>
     785                                                                </tr>
     786                                                                <tr>
     787                                                                        <th scope="row"><?php echo $lang_admin_options['E-mail default label'] ?></th>
     788                                                                        <td>
     789                                                                                <span><?php echo $lang_admin_options['E-mail default help'] ?></span>
     790                                                                                <input type="radio" name="form[default_email_setting]" value="0"<?php if ($pun_config['o_default_email_setting'] == '0') echo ' checked="checked"' ?> />&#160;<?php echo $lang_admin_options['Display e-mail label'] ?><br />
     791                                                                                <input type="radio" name="form[default_email_setting]" value="1"<?php if ($pun_config['o_default_email_setting'] == '1') echo ' checked="checked"' ?> />&#160;<?php echo $lang_admin_options['Hide allow form label'] ?><br />
     792                                                                                <input type="radio" name="form[default_email_setting]" value="2"<?php if ($pun_config['o_default_email_setting'] == '2') echo ' checked="checked"' ?> />&#160;<?php echo $lang_admin_options['Hide both label'] ?><br />
     793                                                                        </td>
     794                                                                </tr>
     795                                                        </table>
     796                                                </div>
     797                                        </fieldset>
     798                                </div>
     799                                <div class="inform">
     800                                        <fieldset>
     801                                                <legend><?php echo $lang_admin_options['Announcement subhead'] ?></legend>
     802                                                <div class="infldset">
     803                                                        <table class="aligntop" cellspacing="0">
     804                                                                <tr>
     805                                                                        <th scope="row"><?php echo $lang_admin_options['Display announcement label'] ?></th>
     806                                                                        <td>
     807                                                                                <input type="radio" name="form[announcement]" value="1"<?php if ($pun_config['o_announcement'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[announcement]" value="0"<?php if ($pun_config['o_announcement'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     808                                                                                <span><?php echo $lang_admin_options['Display announcement help'] ?></span>
     809                                                                        </td>
     810                                                                </tr>
     811                                                                <tr>
     812                                                                        <th scope="row"><?php echo $lang_admin_options['Announcement message label'] ?></th>
    661813                                                                        <td>
    662814                                                                                <textarea name="form[announcement_message]" rows="5" cols="55"><?php echo pun_htmlspecialchars($pun_config['o_announcement_message']) ?></textarea>
    663                                                                                 <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>
    664                                                                         </td>
    665                                                                 </tr>
    666                                                         </table>
    667                                                 </div>
    668                                         </fieldset>
    669                                 </div>
    670                                 <div class="inform">
    671                                         <fieldset>
    672                                                 <legend>Maintenance</legend>
    673                                                 <div class="infldset">
    674                                                         <table class="aligntop" cellspacing="0">
    675                                                                 <tr>
    676                                                                         <th scope="row"><a name="maintenance">Mode maintenance</a></th>
    677                                                                         <td>
    678                                                                                 <input type="radio" name="form[maintenance]" value="1"<?php if ($pun_config['o_maintenance'] == '1') echo ' checked="checked"' ?> />&#160;<strong>Oui</strong>&#160;&#160;&#160;<input type="radio" name="form[maintenance]" value="0"<?php if ($pun_config['o_maintenance'] == '0') echo ' checked="checked"' ?> />&#160;<strong>Non</strong>
    679                                                                                 <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>
    680                                                                         </td>
    681                                                                 </tr>
    682                                                                 <tr>
    683                                                                         <th scope="row">Message de maintenance</th>
     815                                                                                <span><?php echo $lang_admin_options['Announcement message help'] ?></span>
     816                                                                        </td>
     817                                                                </tr>
     818                                                        </table>
     819                                                </div>
     820                                        </fieldset>
     821                                </div>
     822                                <div class="inform">
     823                                        <fieldset>
     824                                                <legend><?php echo $lang_admin_options['Maintenance subhead'] ?></legend>
     825                                                <div class="infldset">
     826                                                        <table class="aligntop" cellspacing="0">
     827                                                                <tr>
     828                                                                        <th scope="row"><a name="maintenance"><?php echo $lang_admin_options['Maintenance mode label'] ?></a></th>
     829                                                                        <td>
     830                                                                                <input type="radio" name="form[maintenance]" value="1"<?php if ($pun_config['o_maintenance'] == '1') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['Yes'] ?></strong>&#160;&#160;&#160;<input type="radio" name="form[maintenance]" value="0"<?php if ($pun_config['o_maintenance'] == '0') echo ' checked="checked"' ?> />&#160;<strong><?php echo $lang_admin_common['No'] ?></strong>
     831                                                                                <span><?php echo $lang_admin_options['Maintenance mode help'] ?></span>
     832                                                                        </td>
     833                                                                </tr>
     834                                                                <tr>
     835                                                                        <th scope="row"><?php echo $lang_admin_options['Maintenance message label'] ?></th>
    684836                                                                        <td>
    685837                                                                                <textarea name="form[maintenance_message]" rows="5" cols="55"><?php echo pun_htmlspecialchars($pun_config['o_maintenance_message']) ?></textarea>
    686                                                                                 <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>
    687                                                                         </td>
    688                                                                 </tr>
    689                                                         </table>
    690                                                 </div>
    691                                         </fieldset>
    692                                 </div>
    693                                 <p class="submitend"><input type="submit" name="save" value=" Enregistrer " /></p>
     838                                                                                <span><?php echo $lang_admin_options['Maintenance message help'] ?></span>
     839                                                                        </td>
     840                                                                </tr>
     841                                                        </table>
     842                                                </div>
     843                                        </fieldset>
     844                                </div>
     845                                <p class="submitend"><input type="submit" name="save" value="<?php echo $lang_admin_common['Save changes'] ?>" /></p>
    694846                        </form>
    695847                </div>
Note: See TracChangeset for help on using the changeset viewer.