-
Notifications
You must be signed in to change notification settings - Fork 79
/
index.php
executable file
·26 lines (24 loc) · 1.06 KB
/
index.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
<?php
/*
* @ PHP 5.6
* @ Decoder version : 1.0.0.1
* @ Release on : 24.03.2018
* @ Website : http://EasyToYou.eu
*/
define("CLIENTAREA", true);
require_once __DIR__ . "/init.php";
$request = WHMCS\Http\Message\ServerRequest::fromGlobals();
$response = DI::make("Frontend\\Dispatcher")->dispatch($request);
$statusCode = $response->getStatusCode();
$statusFamily = substr($statusCode, 0, 1);
if (!in_array($statusFamily, array(2, 3)) && !($response instanceof WHMCS\Http\Message\JsonResponse || $response instanceof Zend\Diactoros\Response\JsonResponse || $response instanceof WHMCS\Admin\ApplicationSupport\View\Html\Smarty\ErrorPage || $response instanceof WHMCS\ClientArea) && $statusCode === 404) {
gracefulCoreRequiredFileInclude("/includes/clientareafunctions.php");
$response = new WHMCS\ClientArea();
$response->setPageTitle("404 - Page Not Found");
$response->setTemplate("error/page-not-found");
$response->skipMainBodyContainer();
$response = $response->withStatus(404);
}
(new Zend\Diactoros\Response\SapiEmitter())->emit($response);
exit;
?>