$array_data['nv_login'] = $login; $array_data['nv_email'] = $email; $array_data['nv_password'] = $password; $array_data['re_password'] = $re_password; $array_data['nv_login'] = $login; $array_data['question'] = $question; $array_data['answer_question'] = $answer_question; $global_config['site_email'] = $email; $db = new sql_db($db_config); if (!empty($db->error)) { $error = !empty($db->error['user_message']) ? $db->error['user_message'] : $db->error['message']; } elseif (empty($site_name)) { $error = $lang_module['err_sitename']; } elseif (!empty($check_login)) { $error = $check_login; } elseif ($login != $db->fixdb($login)) { $error = sprintf($lang_module['account_deny_name'], '<strong>' . $login . '</strong>'); } elseif (!empty($check_email)) { $error = $check_email; } elseif (!empty($check_pass)) { $error = $check_pass; } elseif ($password != $re_password) { $error = sprintf($lang_global['passwordsincorrect'], $password, $re_password); } elseif (empty($question)) { $error = $lang_module['your_question_empty']; } elseif (empty($answer_question)) { $error = $lang_module['answer_empty']; } else { $password = $crypt->hash($password); define('NV_CONFIG_GLOBALTABLE', $db_config['prefix'] . '_config'); $db->sql_query("TRUNCATE TABLE `" . $db_config['prefix'] . "_users`");