protected function password_encode($password, $salt) { // $class_name = $this->auth; // return $class_name::password_encode($password, $salt); return core_auth::password_encode($password, $salt); }
pdump($system_count, '$system_count'); pdump($system_step, '$system_step'); $skin = DEFAULT_SKINPATH; $language = DEFAULT_LANG; $galaxy = 1; $system = $system_step; $planet = round($config->game_maxPlanet / 2); foreach ($imported_string as &$string_data) { $string_data = explode(',', $string_data); $username_safe = $string_data[0]; // $user_new = player_create($username_safe, $string_data[1], '', array( // 'galaxy' => $galaxy, // 'system' => $system, // 'planet' => $planet, // ), $create_result); $user_new = player_create($username_safe, sys_random_string(), array('password_encoded_unsafe' => core_auth::password_encode($string_data[1], ''), 'galaxy' => $galaxy, 'system' => $system, 'planet' => $planet)); // $user_new = &$create_result[F_LOGIN_USER]; $moon_row = uni_create_moon($galaxy, $system, $planet, $user_new['id'], 30, '', false); if (($system += $system_step) >= $config->game_maxSystem) { $galaxy++; $system = $system_step; } } doquery('UPDATE {{users}} SET dark_matter = 50000, dark_matter_total = 50000;'); $config->db_saveItem('users_amount', $config->users_amount + $new_players); // pdump($imported_string); // generated_string } elseif (sys_get_param_str('import_result') && ($blitz_result_string = sys_get_param_str('blitz_result_string'))) { $blitz_result = explode(';', $blitz_result_string); $blitz_last_update = $blitz_result[0]; // Пока не используется
protected function password_encode($password, $salt) { return core_auth::password_encode($password, $salt); }