



: false; } return $this->keyvalues[$key]; } /** * Set option bit field for user options */ function optionset($key, $value, $data = false) { $var = ($data) ? $data : $this->data['user_options']; if ($value && !($var & 1 << $this->keyoptions[$key])) { $var += 1 << $this->keyoptions[$key]; } else if (!$value && ($var & 1 << $this->keyoptions[$key])) { $var -= 1 << $this->keyoptions[$key]; } else { return ($data) ? $var : false; } if (!$data) { $this->data['user_options'] = $var; return true; } else { return $var; } } } ?> . 'styles_theme'); define('STYLES_IMAGESET_TABLE', $table_prefix . 'styles_imageset'); define('STYLES_IMAGESET_DATA_TABLE',$table_prefix . 'styles_imageset_data'); define('TOPICS_TABLE', $table_prefix . 'topics'); define('TOPICS_POSTED_TABLE', $table_prefix . 'topics_posted'); define('TOPICS_TRACK_TABLE', $table_prefix . 'topics_track'); define('TOPICS_WATCH_TABLE', $table_prefix . 'topics_watch'); define('USER_GROUP_TABLE', $table_prefix . 'user_group'); define('USERS_TABLE', $table_prefix . 'users'); define('WARNINGS_TABLE', $table_prefix . 'warnings'); define('WORDS_TABLE', $table_prefix . 'words'); define('ZEBRA_TABLE', $table_prefix . 'zebra'); // Additional tables ?>convert = 0 WHERE user_id = ' . $row['user_id']; $db->sql_query($sql); $row['user_pass_convert'] = 0; $row['user_password'] = $hash; } else { // Although we weren't able to convert this password we have to // increase login attempt count to make sure this cannot be exploited $sql = 'UPDATE ' . USERS_TABLE . ' SET user_login_attempts = user_login_attempts + 1 WHERE user_id = ' . $row['user_id']; $db->sql_query($sql); //-- mod : log connections -------------------------------------------------------- //-- add if (!$user->data['is_registered']) { add_log('connections', $row['user_id'], 'LOG_AUTH_FAIL_CONVERT'); } //-- end : log connections -------------------------------------------------------- return array( 'status' => LOGIN_ERROR_PASSWORD_CONVERT, 'error_msg' => 'LOGIN_ERROR_PASSWORD_CONVERT', 'user_row' => $row, ); } } } // Check password ... if (!$row['user_pass_convert'] && phpbb_check_hash($password, $row['user_password'])) { // Check for old password hash... if (strlen($row['user_password']) == 32) { $hash = phpbb_hash($password); // Update the password in the users table to the new format $sql = 'UPDATE ' . USERS_TABLE . " SET user_password = '" . $db->sql_escape($hash) . "', user_pass_convert = 0 WHERE user_id = {$row['user_id']}"; $db->sql_query($sql); $row['user_password'] = $hash; } if ($row['user_login_attempts'] != 0) { // Successful, reset login attempts (the user passed all stages) $sql = 'UPDATE ' . USERS_TABLE . ' SET user_login_attempts = 0 WHERE user_id = ' . $row['user_id']; $db->sql_query($sql); } // User inactive... if ($row['user_type'] == USER_INACTIVE || $row['user_type'] == USER_IGNORE) { //-- mod : log connections -------------------------------------------------------- //-- add add_log('connections', $row['user_id'], 'LOG_AUTH_FAIL_INACTIVE'); //-- end : log connections -------------------------------------------------------- return array( 'status' => LOGIN_ERROR_ACTIVE, 'error_msg' => 'ACTIVE_ERROR', 'user_row' => $row, ); } // Successful login... set user_login_attempts to zero... return array( 'status' => LOGIN_SUCCESS, 'error_msg' => false, 'user_row' => $row, ); } // Password incorrect - increase login attempts //-- mod : log connections -------------------------------------------------------- //-- add if (!$user->data['is_registered']) { add_log('connections', $row['user_id'], 'LOG_AUTH_FAIL'); } //-- end : log connections -------------------------------------------------------- $sql = 'UPDATE ' . USERS_TABLE . ' SET user_login_attempts = user_login_attempts + 1 WHERE user_id = ' . $row['user_id']; $db->sql_query($sql); // Give status about wrong password... return array( 'status' => LOGIN_ERROR_PASSWORD, 'error_msg' => 'LOGIN_ERROR_PASSWORD', 'user_row' => $row, ); } ?>[phpBB Debug] PHP Notice: in file /includes/session.php on line 990: Cannot modify header information - headers already sent by (output started at /includes/session.php:2246)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 990: Cannot modify header information - headers already sent by (output started at /includes/session.php:2246)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 990: Cannot modify header information - headers already sent by (output started at /includes/session.php:2246)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1776: Cannot modify header information - headers already sent by (output started at /includes/session.php:2246)
Warning: Cannot modify header information - headers already sent by (output started at /includes/session.php:2246) in /includes/functions.php on line 3888
Warning: Cannot modify header information - headers already sent by (output started at /includes/session.php:2246) in /includes/functions.php on line 3890
Warning: Cannot modify header information - headers already sent by (output started at /includes/session.php:2246) in /includes/functions.php on line 3891
Warning: Cannot modify header information - headers already sent by (output started at /includes/session.php:2246) in /includes/functions.php on line 3892









Parse error: syntax error, unexpected T_ELSE in /var/www/vhosts/free-h.net/subdomains/femmes-de-militaires/httpdocs/forum/phpBB3/includes/auth/auth_db.php on line 159
Parse error: syntax error, unexpected $end in /var/www/vhosts/free-h.net/subdomains/femmes-de-militaires/httpdocs/forum/phpBB3/includes/functions.php on line 4065



Théonaute a écrit:Bonjour,
Ça nous prend les lignes de codes environnantes des erreurs indiquées, sinon on ne va pas pouvoir vous aider.
Bien à vous,

Retourner vers Base de données des MODs
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 1 invité