Mise à jour manuelle de phpBB 2.0.10 à 2.0.11

Télécharger la dernière version de phpBB2; scripts de mise à jour automatique ; ou changements manuels de code .

Modérateur: Equipe

Mise à jour manuelle de phpBB 2.0.10 à 2.0.11

Messagede setdepic le 04 Jan 2005 à 01:52

Salut,

voici la mise à jour manuelle de phpBB 2.0.10 -> phpBB 2.0.11

[Ce message est une simple traduction des informations contenues dans ce message de phpBB.com]

Vous trouverez ci-dessous les changements à effectuer pour passer de phpBB 2.0.10 à phpBB 2.0.11, le tout résumé sous la forme d'un MOD. Cela peut vous être utile si vous voulez mettre à jour un forum où des MODs ont été installés. En effet, il est généralement plus simple d'appliquer des modifications directement sur le code source de phpBB que de réinstaller les MODs.

Lorsque vous tombez sur la déclaration 'AJOUTER APRES', le code doit être ajouté après la dernière ligne citée dans la déclaration 'TROUVER'.
Lorsque vous tombez sur la déclaration 'AJOUTER AVANT', le code doit être ajouté avant la première ligne citée dans la déclaration 'TROUVER'.
Lorsque vous tombez sur la déclaration 'REMPLACER PAR', le code cité dans la déclaration 'TROUVER' doit complètement être remplacé par le code cité dans la déclaration 'REMPLACER PAR'.

Après avoir effectué les modifications, vous devez envoyer le fichier update_to_latest.php sur votre serveur et l'éxécuter, puis enfin le supprimer.
Instructions pas à pas:
  1. Créer un répertoire nommé install à la racine de votre installation de phpBB, ex: http://www.votresite.com/phpbb/install/
    Attention, la création du répertoire install bloquera temporairement l'accès à votre forum, ne vous affolez pas, il vous suffira de le supprimer pour que tout revienne à la normale :)
  2. Envoyer update_to_latest.php dans le répertoire install
  3. Exécuter update_to_latest.php depuis votre navigateur internet en vous rendant simplement à l'url suivante :
    http://www.votresite.com/phpbb/install/ ... latest.php
  4. Supprimer le répertoire install et tout ce qu'il contient

Télécharger les fichiers nécessaire à la mise à jour (seul update_to_latest.php devrait vous intéresser).


Instructions pour mise à jour du code :

  • OUVRIR admin/admin_board.php
  • TROUVER :

    Code: Tout sélectionner
    $activation_admin = ( $new['require_activation'] == USER_ACTIVATION_ADMIN ) ? "checked=\"checked\"" : "";


  • APRES , AJOUTER :

    Code: Tout sélectionner
    $confirm_yes = ($new['enable_confirm']) ? 'checked="checked"' : '';
    $confirm_no = (!$new['enable_confirm']) ? 'checked="checked"' : '';


  • TROUVER :
    Code: Tout sélectionner
    "L_ADMIN" => $lang['Acc_Admin'], 


  • APRES , AJOUTER :

    Code: Tout sélectionner
    "L_VISUAL_CONFIRM" => $lang['Visual_confirm'],
       "L_VISUAL_CONFIRM_EXPLAIN" => $lang['Visual_confirm_explain'], 


  • OUVRIR common.php
  • TROUVER :

    Code: Tout sélectionner
    function unset_vars(&$var)
    {
       while (list($var_name, $null) = @each($var))
       {
          unset($GLOBALS[$var_name]);
       }
       return;
    }

    //
    error_reporting  (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
    set_magic_quotes_runtime(0); // Disable magic_quotes_runtime

    $ini_val = (@phpversion() >= '4.0.0') ? 'ini_get' : 'get_cfg_var';

    // Unset globally registered vars - PHP5 ... hhmmm
    if (@$ini_val('register_globals') == '1' || strtolower(@$ini_val('register_globals')) == 'on')
    {
       $var_prefix = 'HTTP';
       $var_suffix = '_VARS';
       
       $test = array('_GET', '_POST', '_SERVER', '_COOKIE', '_ENV');

       foreach ($test as $var)
       {
          if (is_array(${$var_prefix . $var . $var_suffix}))
          {
             unset_vars(${$var_prefix . $var . $var_suffix});
             @reset(${$var_prefix . $var . $var_suffix});
          }

          if (is_array(${$var}))
          {
             unset_vars(${$var});
             @reset(${$var});
          }
       }

       if (is_array(${'_FILES'}))
       {
          unset_vars(${'_FILES'});
          @reset(${'_FILES'});
       }

       if (is_array(${'HTTP_POST_FILES'}))
       {
          unset_vars(${'HTTP_POST_FILES'});
          @reset(${'HTTP_POST_FILES'});
       }
    }

    // PHP5 with register_long_arrays off?
    if (!isset($HTTP_POST_VARS) && isset($_POST))
    {
       $HTTP_POST_VARS = $_POST;
       $HTTP_GET_VARS = $_GET;
       $HTTP_SERVER_VARS = $_SERVER;
       $HTTP_COOKIE_VARS = $_COOKIE;
       $HTTP_ENV_VARS = $_ENV;
       $HTTP_POST_FILES = $_FILES;
    }

  • REMPLACER PAR :

    Code: Tout sélectionner
    error_reporting  (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
    set_magic_quotes_runtime(0); // Disable magic_quotes_runtime

    // The following code (unsetting globals) was contributed by Matt Kavanagh

    // PHP5 with register_long_arrays off?
    if (!isset($HTTP_POST_VARS) && isset($_POST))
    {
       $HTTP_POST_VARS = $_POST;
       $HTTP_GET_VARS = $_GET;
       $HTTP_SERVER_VARS = $_SERVER;
       $HTTP_COOKIE_VARS = $_COOKIE;
       $HTTP_ENV_VARS = $_ENV;
       $HTTP_POST_FILES = $_FILES;

       // _SESSION is the only superglobal which is conditionally set
       if (isset($_SESSION))
       {
          $HTTP_SESSION_VARS = $_SESSION;
       }
    }

    if (@phpversion() < '4.0.0')
    {
       // PHP3 path; in PHP3, globals are _always_ registered
       
       // We 'flip' the array of variables to test like this so that
       // we can validate later with isset($test[$var]) (no in_array())
       $test = array('HTTP_GET_VARS' => NULL, 'HTTP_POST_VARS' => NULL, 'HTTP_COOKIE_VARS' => NULL, 'HTTP_SERVER_VARS' => NULL, 'HTTP_ENV_VARS' => NULL, 'HTTP_POST_FILES' => NULL);

       // Loop through each input array
       @reset($test);
       while (list($input,) = @each($test))
       {
          while (list($var,) = @each($$input))
          {
             // Validate the variable to be unset
             if (!isset($test[$var]) && $var != 'test' && $var != 'input')
             {
                unset($$var);
             }
          }
       }
    }
    else if (@ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals')) == 'on')
    {
       // PHP4+ path
       
       // Not only will array_merge give a warning if a parameter
       // is not an array, it will actually fail. So we check if
       // HTTP_SESSION_VARS has been initialised.
       if (!isset($HTTP_SESSION_VARS))
       {
          $HTTP_SESSION_VARS = array();
       }

       // Merge all into one extremely huge array; unset
       // this later
       $input = array_merge($HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $HTTP_SERVER_VARS, $HTTP_SESSION_VARS, $HTTP_ENV_VARS, $HTTP_POST_FILES);

       unset($input['input']);
       
       while (list($var,) = @each($input))
       {
          unset($$var);
       }
       
       unset($input);
    }

  • OUVRIR groupcp.php
  • TROUVER :

    Code: Tout sélectionner
    $username = ( isset($HTTP_POST_VARS['username']) ) ? htmlspecialchars($HTTP_POST_VARS['username']) : '';


  • REMPLACER PAR :
    Code: Tout sélectionner
    $username = ( isset($HTTP_POST_VARS['username']) ) ? phpbb_clean_username($HTTP_POST_VARS['username']) : '';




  • OUVRIR login.php
  • TROUVER :
    Code: Tout sélectionner
    $username = isset($HTTP_POST_VARS['username']) ? trim(htmlspecialchars($HTTP_POST_VARS['username'])) : '';
          $username = substr(str_replace("\\'", "'", $username), 0, 25);
          $username = str_replace("'", "\\'", $username);


  • REMPLACER PAR :
    Code: Tout sélectionner
    $username = isset($HTTP_POST_VARS['username']) ? phpbb_clean_username($HTTP_POST_VARS['username']) : '';




  • OUVRIR privmsg.php
  • TROUVER :

    Code: Tout sélectionner
    $to_username = $HTTP_POST_VARS['username'];


  • REMPLACER PAR :

    Code: Tout sélectionner
    $to_username = phpbb_clean_username($HTTP_POST_VARS['username']);


  • TROUVER :

    Code: Tout sélectionner
    $to_username = ( isset($HTTP_POST_VARS['username']) ) ? trim(strip_tags(stripslashes($HTTP_POST_VARS['username']))) : '';


  • REMPLACER PAR :
    Code: Tout sélectionner
    $to_username = (isset($HTTP_POST_VARS['username']) ) ? trim(htmlspecialchars(stripslashes($HTTP_POST_VARS['username']))) : '';


  • TROUVER :
    Code: Tout sélectionner
    'USERNAME' => preg_replace($html_entities_match, $html_entities_replace, $to_username),


  • REMPLACER PAR :
    Code: Tout sélectionner
    'USERNAME' => $to_username,



  • OUVRIR profile.php
  • TROUVER :
    Code: Tout sélectionner
    include($phpbb_root_path . 'includes/usercp_register.'.$phpEx);
          exit;
       }


  • APRES , AJOUTER :

    Code: Tout sélectionner
    else if ( $mode == 'confirm' )
       {
          // Visual Confirmation
          if ( $userdata['session_logged_in'] )
          {
             exit;
          }

          include($phpbb_root_path . 'includes/usercp_confirm.'.$phpEx);
          exit;
       }




  • OUVRIR search.php
  • TROUVER :
    Code: Tout sélectionner
    $search_author = htmlspecialchars($search_author);


  • REMPLACER PAR :
    Code: Tout sélectionner
    $search_author = phpbb_clean_username($search_author);





  • OUVRIR viewtopic.php
  • TROUVER :

    Code: Tout sélectionner
    $words = explode(' ', trim(htmlspecialchars(urldecode($HTTP_GET_VARS['highlight']))));


  • REMPLACER PAR :
    Code: Tout sélectionner
    $words = explode(' ', trim(htmlspecialchars($HTTP_GET_VARS['highlight'])));





  • OUVRIR includes/constants.php
  • TROUVER :
    Code: Tout sélectionner
    // Table names


  • APRES , AJOUTER :

    Code: Tout sélectionner
    define('CONFIRM_TABLE', $table_prefix.'confirm');

  • OUVRIR includes/functions.php
  • TROUVER :
    Code: Tout sélectionner
    //
    // Get Userdata, $user can be username or user_id. If force_str is true, the username will be forced.
    //


  • AVANT, AJOUTER :
    Code: Tout sélectionner
    // added at phpBB 2.0.11 to properly format the username
    function phpbb_clean_username($username)
    {
       $username = htmlspecialchars(rtrim(trim($username), "\\"));
       $username = substr(str_replace("\\'", "'", $username), 0, 25);
       $username = str_replace("'", "\\'", $username);

       return $username;
    }


  • TROUVER :
    Code: Tout sélectionner
    $user = trim(htmlspecialchars($user));
          $user = substr(str_replace("\\'", "'", $user), 0, 25);
          $user = str_replace("'", "\\'", $user);


  • REMPLACER PAR :
    Code: Tout sélectionner
    $user = phpbb_clean_username($user);




  • OUVRIR includes/functions_post.php
  • TROUVER :
    Code: Tout sélectionner
    $username = trim(strip_tags($username));


  • REMPLACER PAR :

    Code: Tout sélectionner
    $username = phpbb_clean_username($username);





  • OUVRIR includes/functions_search.php
  • TROUVER :

    Code: Tout sélectionner
    $username_search = preg_replace('/\*/', '%', trim(strip_tags($search_match)));


  • REMPLACER PAR :
    Code: Tout sélectionner
    $username_search = preg_replace('/\*/', '%', phpbb_clean_username($search_match));


  • TROUVER :
    Code: Tout sélectionner
    'USERNAME' => ( !empty($search_match) ) ? strip_tags($search_match) : '',


  • REMPLACER PAR :
    Code: Tout sélectionner
    'USERNAME' => (!empty($search_match)) ? phpbb_clean_username($search_match) : '',





  • OUVRIR includes/topic_review.php
  • TROUVER :
    Code: Tout sélectionner
    if ( !isset($topic_id) )
          {
             message_die(GENERAL_MESSAGE, 'Topic_not_exist');
          }


  • REMPLACER PAR :
    Code: Tout sélectionner
    if ( !isset($topic_id) || !$topic_id)
          {
             message_die(GENERAL_MESSAGE, 'Topic_post_not_exist');
          }

  • OUVRIR includes/usercp_register.php
  • TROUVER :

    Code: Tout sélectionner
    if ( !defined('IN_PHPBB') )
    {
       die("Hacking attempt");


  • AVANT, AJOUTER :
    Code: Tout sélectionner
    /*

       This code has been modified from its original form by psoTFX @ phpbb.com
       Changes introduce the back-ported phpBB 2.2 visual confirmation code.

       NOTE: Anyone using the modified code contained within this script MUST include
       a relevant message such as this in usercp_register.php ... failure to do so
       will affect a breach of Section 2a of the GPL and our copyright

       png visual confirmation system : (c) phpBB Group, 2003 : All Rights Reserved

    */


  • TROUVER :

    Code: Tout sélectionner
    $strip_var_list = array('username' => 'username', 'email' => 'email', 'icq' => 'icq', 'aim' => 'aim', 'msn' => 'msn', 'yim' => 'yim', 'website' => 'website', 'location' => 'location', 'occupation' => 'occupation', 'interests' => 'interests');


  • APRES, AJOUTER :
    Code: Tout sélectionner
    $strip_var_list['confirm_code'] = 'confirm_code';


  • TROUVER :

    Code: Tout sélectionner
    $passwd_sql = '';
       if ( !empty($new_password) && !empty($password_confirm) )


  • AVANT, AJOUTER :
    Code: Tout sélectionner
    if ($board_config['enable_confirm'] && $mode == 'register')
       {
          if (empty($HTTP_POST_VARS['confirm_id']))
          {
             $error = TRUE;
             $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Confirm_code_wrong'];
          }
          else
          {
             $confirm_id = htmlspecialchars($HTTP_POST_VARS['confirm_id']);
             if (!preg_match('/^[A-Za-z0-9]+$/', $confirm_id))
             {
                $confirm_id = '';
             }
             
             $sql = 'SELECT code
                FROM ' . CONFIRM_TABLE . "
                WHERE confirm_id = '$confirm_id'
                   AND session_id = '" . $userdata['session_id'] . "'";
             if (!($result = $db->sql_query($sql)))
             {
                message_die(GENERAL_ERROR, 'Could not obtain confirmation code', __LINE__, __FILE__, $sql);
             }

             if ($row = $db->sql_fetchrow($result))
             {
                if ($row['code'] != $confirm_code)
                {
                   $error = TRUE;
                   $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Confirm_code_wrong'];
                }
                else
                {
                   $sql = 'DELETE FROM ' . CONFIRM_TABLE . "
                      WHERE confirm_id = '$confirm_id'
                         AND session_id = '" . $userdata['session_id'] . "'";
                   if (!$db->sql_query($sql))
                   {
                      message_die(GENERAL_ERROR, 'Could not delete confirmation code', __LINE__, __FILE__, $sql);
                   }
                }
             }
             else
             {       
                $error = TRUE;
                $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Confirm_code_wrong'];
             }
             $db->sql_freeresult($result);
          }
       }


  • TROUVER :

    Code: Tout sélectionner
    $template->assign_block_vars('switch_namechange_disallowed', array());
       }


  • APRES , AJOUTER :

    Code: Tout sélectionner
    // Visual Confirmation
       $confirm_image = '';
       if (!empty($board_config['enable_confirm']) && $mode == 'register')
       {
          $sql = 'SELECT session_id
             FROM ' . SESSIONS_TABLE;
          if (!($result = $db->sql_query($sql)))
          {
             message_die(GENERAL_ERROR, 'Could not select session data', '', __LINE__, __FILE__, $sql);
          }

          if ($row = $db->sql_fetchrow($result))
          {
             $confirm_sql = '';
             do
             {
                $confirm_sql .= (($confirm_sql != '') ? ', ' : '') . "'" . $row['session_id'] . "'";
             }
             while ($row = $db->sql_fetchrow($result));
           
             $sql = 'DELETE FROM ' .  CONFIRM_TABLE . "
                WHERE session_id NOT IN ($confirm_sql)";
             if (!$db->sql_query($sql))
             {
                message_die(GENERAL_ERROR, 'Could not delete stale confirm data', '', __LINE__, __FILE__, $sql);
             }
          }
          $db->sql_freeresult($result);

          $sql = 'SELECT COUNT(session_id) AS attempts
             FROM ' . CONFIRM_TABLE . "
             WHERE session_id = '" . $userdata['session_id'] . "'";
          if (!($result = $db->sql_query($sql)))
          {
             message_die(GENERAL_ERROR, 'Could not obtain confirm code count', '', __LINE__, __FILE__, $sql);
          }

          if ($row = $db->sql_fetchrow($result))
          {
             if ($row['attempts'] > 3)
             {
                message_die(GENERAL_MESSAGE, $lang['Too_many_registers']);
             }
          }
          $db->sql_freeresult($result);
           
          $confirm_chars = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J',  'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T',  'U', 'V', 'W', 'X', 'Y', 'Z', '1', '2', '3', '4', '5', '6', '7', '8', '9');

          list($usec, $sec) = explode(' ', microtime());
          mt_srand($sec * $usec);

          $max_chars = count($confirm_chars) - 1;
          $code = '';
          for ($i = 0; $i < 6; $i++)
          {
             $code .= $confirm_chars[mt_rand(0, $max_chars)];
          }

          $confirm_id = md5(uniqid($user_ip));

          $sql = 'INSERT INTO ' . CONFIRM_TABLE . " (confirm_id, session_id, code)
             VALUES ('$confirm_id', '". $userdata['session_id'] . "', '$code')";
          if (!$db->sql_query($sql))
          {
             message_die(GENERAL_ERROR, 'Could not insert new confirm code information', '', __LINE__, __FILE__, $sql);
          }

          unset($code);
           
          $confirm_image = (@extension_loaded('zlib')) ? '<img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id") . '" alt="" title="" />' : '<img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=1") . '" alt="" title="" /><img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=2") . '" alt="" title="" /><img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=3") . '" alt="" title="" /><img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=4") . '" alt="" title="" /><img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=5") . '" alt="" title="" /><img src="' . append_sid("profile.$phpEx?mode=confirm&amp;id=$confirm_id&amp;c=6") . '" alt="" title="" />';
          $s_hidden_fields .= '<input type="hidden" name="confirm_id" value="' . $confirm_id . '" />';

          $template->assign_block_vars('switch_confirm', array());
       }


  • TROUVER :

    Code: Tout sélectionner
    'EMAIL' => $email,


  • APRES , AJOUTER :

    Code: Tout sélectionner
    'CONFIRM_IMG' => $confirm_image,


  • TROUVER :

    Code: Tout sélectionner
    'L_EMAIL_ADDRESS' => $lang['Email_address'],


  • APRES , AJOUTER :


    Code: Tout sélectionner
    'L_CONFIRM_CODE_IMPAIRED'   => sprintf($lang['Confirm_code_impaired'], '<a href="mailto:' . $board_config['board_email'] . '">', '</a>'),
          'L_CONFIRM_CODE'         => $lang['Confirm_code'],
          'L_CONFIRM_CODE_EXPLAIN'   => $lang['Confirm_code_explain'],

  • OUVRIR includes/usercp_sendpasswd.php
  • TROUVER :

    Code: Tout sélectionner
    $username = ( !empty($HTTP_POST_VARS['username']) ) ? trim(strip_tags($HTTP_POST_VARS['username'])) : '';


  • REMPLACER PAR :

    Code: Tout sélectionner
    $username = ( !empty($HTTP_POST_VARS['username']) ) ? phpbb_clean_username($HTTP_POST_VARS['username']) : '';





  • OUVRIR includes/usercp_viewprofile.php
  • TROUVER :

    Code: Tout sélectionner
    include($phpbb_root_path . 'includes/page_header.'.$phpEx);



    NOTE :
    Soyez prudent avec cette instruction !
    Il a été forcé d'ajouter un espace entre les caractères : & et #39; dans ce code.
    Parce que phpBB n’affiche pas cette série de caractères sans espace.
    Cet espace ne devra pas être inclus quand le code sera placé dans votre fichier, merci de votre attention.


  • APRES , AJOUTER :

    Code: Tout sélectionner
    if (function_exists('get_html_translation_table'))
    {
       $u_search_author = urlencode(strtr($profiledata['username'], array_flip(get_html_translation_table(HTML_ENTITIES))));
    }
    else
    {
       $u_search_author = urlencode(str_replace(array('&amp;','& #039;', '&quot;', '&lt;', '&gt;'), array('&', "'", '"', '<', '>'), $profiledata['username']));
    }


  • TROUVER :

    Code: Tout sélectionner
    'U_SEARCH_USER' => append_sid("search.$phpEx?search_author=" . urlencode($profiledata['username'])),


  • REMPLACER PAR :
    Code: Tout sélectionner
    'U_SEARCH_USER' => append_sid("search.$phpEx?search_author=" . $u_search_author),






  • OUVRIR templates/subSilver/admin/board_config_body.tpl
  • TROUVER :

    Code: Tout sélectionner
    <td class="row2"><input type="radio" name="require_activation" value="{ACTIVATION_NONE}" {ACTIVATION_NONE_CHECKED} />{L_NONE}&nbsp; &nbsp;<input type="radio" name="require_activation" value="{ACTIVATION_USER}" {ACTIVATION_USER_CHECKED} />{L_USER}&nbsp; &nbsp;<input type="radio" name="require_activation" value="{ACTIVATION_ADMIN}" {ACTIVATION_ADMIN_CHECKED} />{L_ADMIN}</td>
       </tr>
       <tr>


  • APRES , AJOUTER :

    Code: Tout sélectionner
    <td class="row1">{L_VISUAL_CONFIRM}<br /><span class="gensmall">{L_VISUAL_CONFIRM_EXPLAIN}</span></td>
          <td class="row2"><input type="radio" name="enable_confirm" value="1" {CONFIRM_ENABLE} />{L_YES}&nbsp; &nbsp;<input type="radio" name="enable_confirm" value="0" {CONFIRM_DISABLE} />{L_NO}</td>
       </tr>
       <tr>


  • OUVRIR language/lang_english/lang_main.php
  • TROUVER :

    Code: Tout sélectionner
    //
    // That's all, Folks!
    // -------------------------------------------------


  • AVANT, AJOUTER :
    Code: Tout sélectionner
    $lang['Confirm_code_wrong'] = 'The confirmation code you entered was incorrect';
    $lang['Too_many_registers'] = 'You have exceeded the number of registration attempts for this session. Please try again later.';
    $lang['Confirm_code_impaired'] = 'If you are visually impaired or cannot otherwise read this code please contact the %sAdministrator%s for help.';
    $lang['Confirm_code'] = 'Confirmation code';
    $lang['Confirm_code_explain'] = 'Enter the code exactly as you see it. The code is case sensitive and zero has a diagonal line through it.';




  • OUVRIR language/lang_english/lang_admin.php
  • TROUVER :


    Code: Tout sélectionner
    //
    // That's all Folks!
    // -------------------------------------------------


  • AVANT, AJOUTER :
    Code: Tout sélectionner
    $lang['Visual_confirm'] = 'Enable Visual Confirmation';
    $lang['Visual_confirm_explain'] = 'Requires users enter a code defined by an image when registering.';

  • OUVRIR language/lang_french/lang_main.php
  • TROUVER :

    Code: Tout sélectionner
    //
    // That's all, Folks!
    // -------------------------------------------------


  • AVANT, AJOUTER :
    Code: Tout sélectionner
    $lang['Confirm_code_wrong'] = 'Le code de confirmation que vous avez entré ne correspond pas à celui de l\'image. Veuillez réessayer ultérieurement.';
    $lang['Too_many_registers'] = 'Vous avez dépassé le nombre de tentatives d\'enregistrements pour cette session. Veuillez réessayer ultérieurement.';
    $lang['Confirm_code_impaired'] = 'Si vous êtes visuellement déficient ou si vous ne pouvez lire ce code, veuillez contacter %sAdministrator%s afin d\'obtenir de l\'aide.';
    $lang['Confirm_code'] = 'Code de confirmation';
    $lang['Confirm_code_explain'] = 'Entrez exactement le code que vous voyez sur l\'image';




  • OUVRIR language/lang_french/lang_admin.php
  • TROUVER :


    Code: Tout sélectionner
    //
    // That's all Folks!
    // -------------------------------------------------


  • AVANT, AJOUTER :
    Code: Tout sélectionner
    $lang['Visual_confirm'] = 'Activer la confirmation visuelle';
    $lang['Visual_confirm_explain'] = 'Requiert que les nouveaux utilisateurs entrent un code défini par une image lors de leur enregistrement.';


  • OUVRIR templates/subSilver/profile_add_body.tpl
  • [b]TROUVER :

    Code: Tout sélectionner
    <tr>
         <td class="row1"><span class="gen">{L_CONFIRM_PASSWORD}: * </span><br />
          <span class="gensmall">{L_PASSWORD_CONFIRM_IF_CHANGED}</span></td>
         <td class="row2">
          <input type="password" class="post" style="width: 200px" name="password_confirm" size="25" maxlength="32" value="{PASSWORD_CONFIRM}" />
         </td>
       </tr>


  • APRES , AJOUTER :

    Code: Tout sélectionner
    <!-- Visual Confirmation -->
       <!-- BEGIN switch_confirm -->
       <tr>
          <td class="row1" colspan="2" align="center"><span class="gensmall">{L_CONFIRM_CODE_IMPAIRED}</span><br /><br />{CONFIRM_IMG}<br /><br /></td>
       </tr>
       <tr>
         <td class="row1"><span class="gen">{L_CONFIRM_CODE}: * </span><br /><span class="gensmall">{L_CONFIRM_CODE_EXPLAIN}</span></td>
         <td class="row2"><input type="text" class="post" style="width: 200px" name="confirm_code" size="6" maxlength="6" value="" /></td>
       </tr>
       <!-- END switch_confirm -->


@+.

[ MAJ 25-05-2005 ] Galixte
setdepic
Grand-maître des floodeurs
Grand-maître des floodeurs
 
Messages: 3580
Inscription: 08 Jan 2003 à 12:39
Localisation: ICI

Retourner vers Téléchargements et mises à jour

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 1 invité

Liens : phpBB.biz • phpBBHacks.com • phpBB-Seo.com • EzCom-fr.com • phpBB-Services.com • phpBB3 Styles • phpBB podpora • Net Avenir • PromoBenef • Ticket Gagnant •