'faxstatus' => 'faxstatus',
'files' => 'files',
'reportcspviolation' => 'reportcspviolation',
'status' => 'status',
'smscallback' => 'smscallback',
'updatehours' => 'updatehours',
'itsacheckmatecallback' => 'itsacheckmatecallback',
'itsacheckmatewebhook' => 'itsacheckmatewebhook',
'shipdaywebhook' => 'shipdaywebhook',
'supermenuwebhook' => 'supermenuwebhook',
'ivr' => 'ivr',
];
//stories are only accessible on dev servers
if (DevLevel >= 2) {
$controllers['stories'] = 'stories';
}
$path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
if (isPaymentDomain()) {
$controller = 'payments';
} elseif (isSpringroll()) {
if (strpos($_REQUEST['aid'], 'restaurant/') === 0) {
$_REQUEST['aid'] = substr($_REQUEST['aid'], strlen('restaurant/'));
} elseif (strpos($_REQUEST['aid'], 'account/') === 0) {
$controller = 'account';
} elseif (strpos($_REQUEST['aid'], 'phonecallback/') === 0) {
$controller = 'phonecallback';
} else {
$controller = 'marketplace';
}
} else if (preg_match('/\/account-settings\//', $path)) {
$controller = 'accountsettings';
} elseif (($path === '/auth' || preg_match('#/auth(/.*)?$#', $path)) && !str_starts_with($path, '/'.ManagerAPI::PREFIX)) {
$controller = 'auth';
} else if (preg_match('/\/checkout\//', $_SERVER['REQUEST_URI'])) {
$controller = 'checkout';
}
if (!$controller) {
"Call to undefined function isPaymentDomain()"
<? /** @noinspection PhpIncludeInspection - to avoid marking dynamic includes */
//TODO create a «root»/_bootstrap.php which can be used by .psysh.php, tests/bootstrap.php and Web/index.php
require(dirname(__DIR__).'/PHP/base_consts.php');
require(dirname(__DIR__).'/PHP/autoloader.php');
initializeAutoLoader();
//disabled for now since we already have our own Alerts infrastructure, and it's not worth it to append another cloud provider to the startup of every freaking request; it's also not possible to catch errors this early if we depend on database checks, but we'll leave it here in case we change our mind?
//ErrorHandlers::sentryInit(); //early catch of errors and failsafe for smaller controllers, not in Sentry
App::startTime();
ErrorHandlers::register();
// Global.php is the core setup file for the application
App::debugbarTime('Global.php');
require(dirname(__DIR__) . '/PHP/Global.php');
App::debugbarTime('Global.php');
/** @var string $controller The main controller - defined at /PHP/Global.php */
App::debugbarTime('Sentry - controller');
ErrorHandlers::sentryInit($controller); //doesn't always do much - not every controller has a Sentry project
App::debugbarTime('Sentry - controller');
App::debugbarTime("controller: $controller");
apache_note('AppController', $controller);
if (file_exists(CORE_PATH."lib/helpers/$controller.php")) {
require CORE_PATH."lib/helpers/$controller.php";
}
require CORE_PATH."controllers/$controller.php";
App::debugbarTime("controller: $controller");
| Key | Value |
| aid | "restaurant/chinawoklevittown/order/main/special-combination-platter/c19-orange-chicken"
|
| Key | Value |
| PHPSESSID | "ug44jn04g29rf6jhatgcisvedu"
|
| Key | Value |
| loc | "en_US"
|
| customer_account_id | 62575
|
| cart | Cart {}
|
| restaurant_id | 7478
|
| eot | 1770239515
|
| menu_id | 9519
|
| Key | Value |
| UNIQUE_ID | "aYOHRBgng7GsYkcuSFfHGwAAAAI"
|
| SCRIPT_URL | "/restaurant/chinawoklevittown/order/main/special-combination-platter/c19-orange-chicken"
|
| SCRIPT_URI | "http://www.springroll.com.2.joel.ehungry.net/restaurant/chinawoklevittown/order/main/special-combination-platter/c19-orange-chicken"
|
| HTTP_HOST | "www.springroll.com.2.joel.ehungry.net"
|
| HTTP_X_REAL_IP | "216.73.216.159"
|
| HTTP_X_CONFKEY | "Main_Domain:14844"
|
| HTTP_SCHEME | "https"
|
| HTTP_EHENV | "TODO"
|
| HTTP_CONNECTION | "close"
|
| HTTP_ACCEPT | "*/*"
|
| HTTP_USER_AGENT | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
|
| HTTP_ACCEPT_ENCODING | "gzip, br, zstd, deflate"
|
| HTTP_COOKIE | "PHPSESSID=ug44jn04g29rf6jhatgcisvedu"
|
| PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
|
| SERVER_SIGNATURE | "" |
| SERVER_SOFTWARE | "Apache/2.4.62 () mod_wsgi/4.6.5 Python/3.7 PHP/7.2.34"
|
| SERVER_NAME | "www.springroll.com.2.joel.ehungry.net"
|
| SERVER_ADDR | "127.0.0.1"
|
| SERVER_PORT | "80"
|
| REMOTE_ADDR | "216.73.216.159"
|
| DOCUMENT_ROOT | "/home/deploy/EHungry-2-joel/Web"
|
| REQUEST_SCHEME | "http"
|
| CONTEXT_PREFIX | "" |
| CONTEXT_DOCUMENT_ROOT | "/home/deploy/EHungry-2-joel/Web"
|
| SERVER_ADMIN | "root@localhost"
|
| SCRIPT_FILENAME | "/home/deploy/EHungry-2-joel/Web/index.php"
|
| REMOTE_PORT | "49058"
|
| GATEWAY_INTERFACE | "CGI/1.1"
|
| SERVER_PROTOCOL | "HTTP/1.0"
|
| REQUEST_METHOD | "GET"
|
| QUERY_STRING | "aid=restaurant/chinawoklevittown/order/main/special-combination-platter/c19-orange-chicken"
|
| REQUEST_URI | "/restaurant/chinawoklevittown/order/main/special-combination-platter/c19-orange-chicken"
|
| SCRIPT_NAME | "/restaurant/chinawoklevittown/order/main/special-combination-platter/c19-orange-chicken"
|
| PHP_SELF | "/restaurant/chinawoklevittown/order/main/special-combination-platter/c19-orange-chicken"
|
| REQUEST_TIME_FLOAT | 1770227524.637
|
| REQUEST_TIME | 1770227524
|