public static function register($username, $password) { $result = ZTVDaemonController::register(array('-u' => $username, '-p' => $password)); if ($result->output === false) { hd_print('Error: can not execute arescam.'); throw new DuneException('Internal ARES error', 0, ActionFactory::show_error(true, '%tr%caption_system_error', array('%tr%error_daemon_execution_failed', '%tr%error_contact_support'))); } return $result->rc === 0; }