. */ namespace Liuch\DmarcSrg; use Liuch\DmarcSrg\ErrorHandler; use Liuch\DmarcSrg\RuntimeException; require 'init.php'; if (Core::method() == 'POST' && Core::isJson()) { try { Core::sendJson(Core::instance()->auth()->logout()); } catch (RuntimeException $e) { Core::sendJson(ErrorHandler::exceptionResult($e)); } return; } Core::sendBad();