public static function deregister() { if (!self::$_logged_in) { return false; } $result = ZTVDaemonController::deregister(); if ($result->output === false) { hd_print('Error: can not execute arescam.'); throw new DuneException('%tr%caption_system_error', 0, ActionFactory::show_error(true, '%tr%caption_system_error', array('%tr%error_daemon_execution_failed', '%tr%error_contact_support'))); } if ($result->rc === 0) { self::$_logged_in = false; self::$_login_expire = 0; return true; } return false; }