4 require_once(
'./Services/WebAccessChecker/classes/class.ilWebAccessChecker.php');
5 require_once(
'./Services/FileDelivery/classes/Delivery.php');
6 require_once(
'./Services/FileDelivery/classes/class.ilFileDelivery.php');
38 $obj =
new self($httpState, $cookieFactory);
39 $obj->handleRequest();
52 $this->
http = $httpState;
63 $queries = $this->
http->request()->getQueryParams();
84 switch ($e->getCode()) {
94 $this->handleErrors($e);
112 $ilFileDelivery =
new Delivery(
'./Services/WebAccessChecker/templates/images/access_denied.png', $this->
http);
114 $ilFileDelivery->deliver();
120 $ilFileDelivery =
new Delivery(
'./Services/WebAccessChecker/templates/images/access_denied.mp4', $this->
http);
122 $ilFileDelivery->stream();
164 $stream->write($e->getMessage());
181 $ilFileDelivery->setCache(
true);
184 $ilFileDelivery->stream();
186 $ilFileDelivery->deliver();
Interface GlobalHttpState.
const NO_CHECKING_INSTANCE
setDisposition($disposition)
const ACCESS_DENIED_NO_LOGIN
setRevalidateFolderTokens($revalidate_folder_tokens)
$stream
PHP stream implementation.
handleAccessErrors(ilWACException $e)
const ACCESS_WITHOUT_CHECK
static http()
Fetches the global http state from ILIAS.
Class ilWebAccessChecker.
setSendStatusCode($send_status_code)
__construct(GlobalHttpState $httpState, CookieFactory $cookieFactory)
ilWebAccessCheckerDelivery constructor.
Class ilWebAccessCheckerDelivery.
const ACCESS_DENIED_NO_PUB
const INITIALISATION_FAILED
static handleErrorReporting()
Set error reporting level.
static run(GlobalHttpState $httpState, CookieFactory $cookieFactory)