forked from cernbox/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index2.php
35 lines (27 loc) · 804 Bytes
/
index2.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
# File used by SSO
try
{
require_once 'lib/base.php';
OC::handleRequest();
}
catch(\OC\ServiceUnavailableException $ex)
{
\OCP\Util::logException('index', $ex);
//show the user a detailed error page
OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE);
OC_Template::printExceptionErrorPage($ex);
}
catch (\OC\HintException $ex)
{
OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE);
OC_Template::printErrorPage($ex->getMessage(), $ex->getHint());
}
catch (Exception $ex)
{
\OCP\Util::logException('index', $ex);
//show the user a detailed error page
OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR);
OC_Template::printExceptionErrorPage($ex);
}
?>