/home
/deploy
/EHungry-6-boyan
/Web
/classes
/Cache.class.php
}
public static function SetObject($key, $var, $expire = 86400) {
return static::Set($key, serialize($var), $expire);
}
public static function SetArray($key, $var, $expire = 86400) {
return static::Set($key, serialize($var), $expire);
}
public static function SetBoolean($key, $var, $expire = 86400) {
return static::Set($key, serialize($var), $expire);
}
public static function Set($key, $var, $expire = 86400) {
App::debugbarLog('debug', "Cache set: $key");
if ($i = static::getInstance()) {
$var = static::beforeSet($var);
return $expire > 0?
$i->setEx($key, $expire, $var) :
$i->set($key, $var);
}
return null;
}
public static function Exists(...$key):?bool {
if ($i = static::getInstance()) {
return $i->exists($key);
}
return null;
}
public static function Expire($key, $ttl) {
if ($i = static::getInstance()) {
return $i->expire($key, $ttl);
}
return false;
}
/**
Arguments
"MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error."
/home
/deploy
/EHungry-6-boyan
/Web
/classes
/Cache.class.php
}
public static function SetObject($key, $var, $expire = 86400) {
return static::Set($key, serialize($var), $expire);
}
public static function SetArray($key, $var, $expire = 86400) {
return static::Set($key, serialize($var), $expire);
}
public static function SetBoolean($key, $var, $expire = 86400) {
return static::Set($key, serialize($var), $expire);
}
public static function Set($key, $var, $expire = 86400) {
App::debugbarLog('debug', "Cache set: $key");
if ($i = static::getInstance()) {
$var = static::beforeSet($var);
return $expire > 0?
$i->setEx($key, $expire, $var) :
$i->set($key, $var);
}
return null;
}
public static function Exists(...$key):?bool {
if ($i = static::getInstance()) {
return $i->exists($key);
}
return null;
}
public static function Expire($key, $ttl) {
if ($i = static::getInstance()) {
return $i->expire($key, $ttl);
}
return false;
}
/**
Arguments
"hh_2026-01-06 00:00:00_r9059_PICKUP_0"
86400
"N;"
/home
/deploy
/EHungry-6-boyan
/Web
/classes
/Cache.class.php
public static function getInstance() {
if (static::$redisObj === null) {
static::$redisObj = new Redis();
try {
if (!@static::$redisObj->connect(static::$host, (int)static::$port)) {
static::$redisObj = false;
Splunk::log(Splunk::LOG_REDIS_CONN, ['error' => 'Error connecting']);
} else {
static::$redisObj->select(static::$db);
}
} catch (RedisException $e) {
static::$redisObj = false;
Splunk::log(Splunk::LOG_REDIS_CONN, ['error' => 'Error connecting: '.$e->getMessage()]);
}
}
return static::$redisObj;
}
public static function SetObject($key, $var, $expire = 86400) {
return static::Set($key, serialize($var), $expire);
}
public static function SetArray($key, $var, $expire = 86400) {
return static::Set($key, serialize($var), $expire);
}
public static function SetBoolean($key, $var, $expire = 86400) {
return static::Set($key, serialize($var), $expire);
}
public static function Set($key, $var, $expire = 86400) {
App::debugbarLog('debug', "Cache set: $key");
if ($i = static::getInstance()) {
$var = static::beforeSet($var);
return $expire > 0?
$i->setEx($key, $expire, $var) :
$i->set($key, $var);
}
return null;
}
Arguments
"hh_2026-01-06 00:00:00_r9059_PICKUP_0"
"N;"
86400
/home
/deploy
/EHungry-6-boyan
/Web
/classes
/HolidayHours.class.php
}
}
} else {
$sql = "SELECT id FROM ".HolidayHours::getTableName()." WHERE for_date = ? AND " .
($cid ? "category_id" : "restaurant_id") . " = ? AND order_type = ? $where ORDER BY id DESC";
$db_conn->bindParameter($sql, 1, $date, "string");
$db_conn->bindParameter($sql, 1, $rid, "integer");
$db_conn->bindParameter($sql, 1, $type, "string");
$result = $db_conn->query($sql);
if ($result && $result->rowCount() > 0) {
if ($row = $result->fetch()) {
$hh = new HolidayHours($row['id']);
Cache::SetObject($cacheKey, $hh);
return $hh;
}
}
}
if ($cacheKey) {
Cache::SetObject($cacheKey, null);
}
return null;
}
public static function getByDateAndRestaurant($date, $rid) {
$db_conn = DB::conn();
$rbs = [];
$sql = "SELECT id FROM ".HolidayHours::getTableName()." WHERE for_date = ? AND restaurant_id = ? ORDER BY id DESC";
$db_conn->bindParameter($sql, 1, $date, "string");
$db_conn->bindParameter($sql, 1, $rid, "integer");
$result = $db_conn->query($sql);
if ($result) {
while ($row = $result->fetch()) {
$rbs[] = new HolidayHours($row['id']);
}
}
return $rbs;
}
public static function storeHours($holidayClosed, $forDate, $restaurantID, $holidayNotifications, $holidayOpenHour, $holidayOpenMinute, $holidayOpenMeridien, $holidayClosedHour, $holidayClosedMinute, $holidayClosedMeridien, $timeErrorMessage, $orderType, $namedHolidayID, $holidayDateRangeID, $categoryID = null, $isYearly = false, $showCategoryWhenClosed = false) {
Arguments
"hh_2026-01-06 00:00:00_r9059_PICKUP_0"
null
/home
/deploy
/EHungry-6-boyan
/Web
/classes
/HolidayHours.class.php
}
if (!$time) {
$time = $restaurant->getLocalTime();
}
$holidayHours = HolidayHours::getByDateAndCategoryAndType(date('Y-m-d 00:00:00', $time), $category->getId(), $orderType, $isHiddenToCustomers);
if (is_object($holidayHours)) {
return $holidayHours;
}
//check parent category too
if ($category->parent_id) {
$holidayHours = HolidayHours::getByDateAndCategoryAndType(date('Y-m-d 00:00:00', $time), $category->parent_id, $orderType, $isHiddenToCustomers);
if (is_object($holidayHours)) {
return $holidayHours;
}
}
return false;
}
public static function getByDateAndRestaurantAndType($date, $rid, $type = 'PICKUP') {
return HolidayHours::getByDateAndTypeAndRestaurantOrCategory($date, $rid, null, $type);
}
public static function getByDateAndCategoryAndType($date, $cid, $type = null, $isHiddenToCustomers = false) {
return HolidayHours::getByDateAndTypeAndRestaurantOrCategory($date, null, $cid, $type, $isHiddenToCustomers);
}
public static function getByDateAndTypeAndRestaurantOrCategory($date, $rid = null, $cid = null, $type = 'PICKUP', $isHiddenToCustomers = false) {
$db_conn = DB::conn();
$cacheKey = 'hh_'.$date.'_'.($cid > 0 ? ('c'.$cid):('r'.$rid)).'_'.($type?:'ALL') . "_" . ($isHiddenToCustomers ? '1' : '0');
$aObj = Cache::GetObject($cacheKey, true);
if ($aObj || is_null($aObj)) {
return $aObj;
}
$where = '';
if ($cid) {
$rid = $cid;
if ($isHiddenToCustomers) {
$where .= ' AND show_category_when_closed = 0';
Arguments
"2026-01-06 00:00:00"
9059
null
"PICKUP"
/home
/deploy
/EHungry-6-boyan
/Web
/classes
/Restaurant.class.php
}
/**
* Get open and closing time including holiday hours and closed hours
* @param $baseOrderType
* @param $localTime
* @param $returnLatestClose
* @return array
*/
public function getEffectiveOpenAndCloseTimes($baseOrderType, $localTime = null, $returnLatestClose = false) {
$dt = $baseOrderType == 'DELIVERY'? 'Delivery' : '';
$localTime = $localTime ?: $this->getLocalTime();
$dayOfWeek = date('l', $localTime);
$opensAt = $this->{'get'.$dt.$dayOfWeek.'Open'}();
$closesAt = $this->{'get'.$dt.$dayOfWeek.'Closed'}();
if ($this->two_hour_sets && ($localTime > strtotime(date('Y-m-d', $localTime) . ' ' . $closesAt) || $returnLatestClose)) {
$opensAt = $this->{'get'.$dt.$dayOfWeek.'Open2'}();
$closesAt = $this->{'get'.$dt.$dayOfWeek.'Closed2'}();
}
$holidayHours = HolidayHours::getByDateAndRestaurantAndType(date('Y-m-d 00:00:00', $localTime), $this->id, $baseOrderType);
if (is_object($holidayHours)) {
$opensAt = $holidayHours->getStartHour();
$closesAt = $holidayHours->getEndHour();
}
$closedHours = ClosedHours::getByDateAndRestaurantAndType($localTime, $this->id, $baseOrderType);
if (!is_object($holidayHours) && is_array($closedHours) && count($closedHours) > 0) {
foreach ($closedHours as $h) {
$startTime = date('H:i:s', strtotime($h->getStartTime()));
$endTime = date('H:i:s', strtotime($h->getEndTime().'-1 minute'));
if ($startTime <= $opensAt && $endTime >= $opensAt) {
$opensAt = $endTime;
}
if ($startTime <= $closesAt && $endTime >= $closesAt) {
$closesAt = $startTime;
}
}
}
return ['open' => $opensAt, 'close' => $closesAt];
}
Arguments
"2026-01-06 00:00:00"
9059
"PICKUP"
/home
/deploy
/EHungry-6-boyan
/Web
/classes
/Restaurant.class.php
$opensAt = $endTime;
}
if ($startTime <= $closesAt && $endTime >= $closesAt) {
$closesAt = $startTime;
}
}
}
return ['open' => $opensAt, 'close' => $closesAt];
}
/**
* @param int|null $localTime
* @param string|null $orderType
* @param $checkForDateOnly if true it will return the latest effective close time for $localTime's date, ignoring the time
* @return false|int|mixed
*/
public function getLatestEffectiveCloseTime($localTime = null, $orderType = null, $checkForDateOnly = false) {
//pickup closing time
$localTime = $localTime ?: $this->getLocalTime();
$openAndClose = $this->getEffectiveOpenAndCloseTimes($orderType?:'PICKUP', $localTime, true);
$dateAdjustment = $openAndClose['close'] < $openAndClose['open'] && ($checkForDateOnly || $openAndClose['close'] < date('H:i', $localTime)) ? ' +1 day' : '';
$pickupCloseTimestamp = strtotime(date('Y-m-d', $localTime) . ' ' . $openAndClose['close'] . $dateAdjustment);
if ($orderType) {
return $pickupCloseTimestamp;
}
//delivery closing time
$deliveryOpenAndClose = $this->getEffectiveOpenAndCloseTimes('DELIVERY', $localTime, true);
$dateAdjustment = $deliveryOpenAndClose['close'] < $deliveryOpenAndClose['open'] && ($checkForDateOnly || $deliveryOpenAndClose['close'] < date('H:i', $localTime)) ? ' +1 day' : '';
$deliveryCloseTimestamp = strtotime(date('Y-m-d', $localTime) . ' ' . $deliveryOpenAndClose['close'] . $dateAdjustment);
//return latest closing time between pickup and del
return max($deliveryCloseTimestamp, $pickupCloseTimestamp);
}
public function getTodaysHoursInfo() {
$today = date('l');
$holidayDate = date('Y-m-d 00:00:00', $this->getLocalTime());
$hours = [];
Arguments
/home
/deploy
/EHungry-6-boyan
/Web
/classes
/Restaurant.class.php
'close' => $closeDelivery2,
'closed' => $closedDelivery
];
}
}
}
}
return ['hours' => $hours, 'earliestOpen' => $earliestOpen, 'latestClose' => $latestClose, 'earliestOpen2' => $earliestOpen2, 'latestClose2' => $latestClose2];
}
/**
* Returns the latest possible timestamp to place an order, based on the max_advance_days setting
* @param string $orderType
* @return int
*/
public function getMaxAdvanceDaysTimestamp($orderType) {
$localTime = $this->getLocalTime();
$maxAdvanceDays = is_numeric($this->max_advance_days) && $this->max_advance_days > 0 ? $this->max_advance_days : 28;
$maxAdvanceTimestamp = strtotime('+'.$maxAdvanceDays.' Days', $localTime);
return $this->getLatestEffectiveCloseTime($maxAdvanceTimestamp, $orderType);
}
/**
* Returns the first time available in the datepicker for the current location and menu.
* @param $menus
* @return false|int|null
* @throws Exception
*/
public function getFirstAvailableTime($menus = []) {
$availableDays = $this->getOrderingDaysForAnyType(true, $menus);
if (count($availableDays)) {
$availableDay = reset($availableDays);
$pickupTimes = $this->getEffectiveOpenAndCloseTimes('PICKUP', strtotime($availableDay));
$deliveryTimes = $this->getEffectiveOpenAndCloseTimes('DELIVERY', strtotime($availableDay));
$firstAvailableTime = min($pickupTimes['open'], $deliveryTimes['open']);
return strtotime($availableDay . ' ' . $firstAvailableTime);
}
return null;
}
Arguments
/home
/deploy
/EHungry-6-boyan
/Web
/classes
/Restaurant.class.php
$isDateTomorrow = date('Y-m-d', strtotime(' +1 day', $restaurantTime)) == date('Y-m-d', $dateTimestamp);
$isDateToday = date('Y-m-d', $restaurantTime) == date('Y-m-d', $dateTimestamp);
if ($this->same_day_orders_only || $this->asap_orders_only) {
//same day orders only - and we're still in open hours from previous night (ex: between 00:00 and 4:00 am)
//we remove hours after 4:00 am since they are technically the next day
if ($inHoursFromPrevDay && $isDateTomorrow) {
$startEndInvalidArray[] = ['00:00' => '23:59'];
} else {
if ($prevDayClose && ($inHoursFromPrevDay || $isDateTomorrow)) {
$startEndInvalidArray[] = [date('H:i', strtotime($prevDayClose . '+ 1 minute')) => '23:59'];
} else {
if (!$isDateToday) {
$startEndInvalidArray[] = ['00:00' => '23:59'];
}
}
}
} else {
//remove times after max number of days in advance of order ready date that a customer can place an order
$dateFromTimestamp = date('Y-m-d', $dateTimestamp);
$dateMaxTimestamp = $this->getMaxAdvanceDaysTimestamp($cart->getBaseOrderType());
if (date('Y-m-d', $restaurantTime) != $dateFromTimestamp &&
date('Y-m-d', $dateMaxTimestamp) == $dateFromTimestamp) {
if ($prevDayClose) {
$startEndInvalidArray[] = [date('H:i', strtotime($prevDayClose . '+ 1 minute')) => '23:59'];
}
} else {
if ($dateTimestamp > $dateMaxTimestamp && date('Y-m-d', $restaurantTime) != $dateFromTimestamp) {
$startEndInvalidArray[] = ['00:00' => '23:59'];
}
}
}
}
//remove times when ordering is closed
if ($cart->getBaseOrderType()) {
$closedUntil = $this->getLocalPublicOrderingClosedUntilText(true, $cart->getBaseOrderType());
if ($closedUntil && date('Y-m-d', $dateTimestamp) == date('Y-m-d', $closedUntil)) {
$startEndInvalidArray[] = ['00:00' => date('H:i', $closedUntil)];
}
}
Arguments
/home
/deploy
/EHungry-6-boyan
/Web
/classes
/Restaurant.class.php
//disable days for when the cart items' category is closed
$categories = $cart->getCartItemsCategories();
foreach ($categories as $category) {
$isCategoryHidden = ClosedHours::isCategoryDisabled($this, $category, $currentLocalTime, false, $orderType) || HolidayHours::isCategoryDisabled($this, $category, $currentLocalTime, false, $orderType);
if ($isCategoryHidden) {
$closed = true;
}
}
//ordering closed
$closedUntil = $this->getLocalPublicOrderingClosedUntilText(true, $orderType);
if ($closedUntil && strtotime(date('Y-m-d', $closedUntil)) > strtotime(date('Y-m-d', $currentLocalTime))) {
$closed = true;
}
$dateCurrent = date('Y-m-d', $currentLocalTime);
if (!$closed) {
//if no times are available on that day - show whole day as unavailable
$times = $this->getAvailableTimes(new DateTime($dateCurrent), $excludeClosedHours, $menus, $ignoreOrderingDaysLimit, $excludeHoursPastClosing);
if (count($times)) {
$ymd = date('Y-m-d', $currentLocalTime);
$availableDates[$ymd] = $ymd;
}
}
}
$cart->setBaseOrderType($savedOrderType);
$cart->updateToSession();
$cache[$cacheKey] = $availableDates;
if ($returnAsKeys) {
return $availableDates;
} else {
return array_values($availableDates);
}
}
public function hasAvailableDays($selectedTime, $orderType) {
Arguments
DateTime @1765267200 {
date: 2025-12-09 00:00:00.0 America/Los_Angeles (-08:00)
}
false
array:1 [
0 => Menu {}
]
false
false
/home
/deploy
/EHungry-6-boyan
/Web
/classes
/Restaurant.class.php
* @param bool $ignoreDaysLimit
* @param Menu[] $menus
* @return array
* @throws Exception
*/
public function getOrderingDaysForAnyType($ignoreDaysLimit = false, $menus = []) {
// Use a static variable to store cache within the request scope, so we don't recalculate this on every call within the request
static $cache = [];
$cacheKey = ($ignoreDaysLimit ? '1' : '0') .
($menus === null ? 'null' : md5(json_encode($menus)));
if (isset($cache[$cacheKey])) {
return $cache[$cacheKey];
}
$orderTypes = $this->getEnabledBaseOrderTypes();
$availableDates = [];
$dateTime = new DateTime(date('Y-m-d', $this->getLocalTime()));
if (isset($orderTypes["PICKUP"]) || isset($orderTypes["DINEIN"])) {
$availableDates = $this->getAvailableDates($dateTime, 'PICKUP', false, $ignoreDaysLimit, false, $menus);
}
if (isset($orderTypes["DELIVERY"])) {
$availableDates = array_merge($availableDates, $this->getAvailableDates($dateTime, 'DELIVERY', false, $ignoreDaysLimit, false, $menus));
}
sort($availableDates);
$cache[$cacheKey] = $availableDates;
return $availableDates;
}
/**
* @param DateTime $date
* @return array
*/
public function getAvailableTimeSlots($date) {
//time slots
if ($this->time_slots_enabled) {
$validTimes = $this->getAvailableTimes($date);
$timeSlots = RestaurantTimeSlot::getForRestaurant($this);
$validTimeSlots = [];
Arguments
DateTime @1765267200 {
date: 2025-12-09 00:00:00.0 America/Los_Angeles (-08:00)
}
"PICKUP"
false
false
false
[]
/home
/deploy
/EHungry-6-boyan
/Web
/classes
/Restaurant.class.php
$cart->setBaseOrderType($savedOrderType);
$cart->updateToSession();
$cache[$cacheKey] = $availableDates;
if ($returnAsKeys) {
return $availableDates;
} else {
return array_values($availableDates);
}
}
public function hasAvailableDays($selectedTime, $orderType) {
$dateTime = new DateTime(date('Y-m-d', $selectedTime));
$availableDates = $this->getAvailableDates($dateTime, $orderType, true, true, false, []);
return count($availableDates) > 0;
}
public function hasOrderingDaysForAnyType() {
return count($this->getOrderingDaysForAnyType()) > 0;
}
/**
* @param bool $ignoreDaysLimit
* @param Menu[] $menus
* @return array
* @throws Exception
*/
public function getOrderingDaysForAnyType($ignoreDaysLimit = false, $menus = []) {
// Use a static variable to store cache within the request scope, so we don't recalculate this on every call within the request
static $cache = [];
$cacheKey = ($ignoreDaysLimit ? '1' : '0') .
($menus === null ? 'null' : md5(json_encode($menus)));
if (isset($cache[$cacheKey])) {
return $cache[$cacheKey];
}
$orderTypes = $this->getEnabledBaseOrderTypes();
$availableDates = [];
/home
/deploy
/EHungry-6-boyan
/Web
/lib
/global.php
if ($restaurant->getPublicOrderingIsClosedForever()) {
return $returnClosedUntilTime ? 'Indefinitely' : 'Online ordering is not currently offered at this location.';
}
if ($restaurant->public_ordering_closed_until) {
return $restaurant->getLocalPublicOrderingClosedUntilText($returnClosedUntilTime);
}
}
if (is_string($defaultMsg)) {
return $returnClosedUntilTime ? 'Indefinitely' : $defaultMsg;
}
return $returnClosedUntilTime ? 'Indefinitely' : ($result?: true); //in case result is an empty string
}
if ($skipLoginCheck && is_object($restaurant) && $restaurant->isOrderingClosed()) {
return true;
}
if (is_object($restaurant) && !$restaurant->hasOrderingDaysForAnyType()) {
if ($restaurant->same_day_orders_only || $restaurant->asap_orders_only) {
$firstAvailableTime = $restaurant->getFirstAvailableTime();
return $returnClosedUntilTime ? $firstAvailableTime
: ('Online ordering is closed' . ($firstAvailableTime ? (' until ' . date('F jS \a\t g:iA', $firstAvailableTime)) : ''));
}
return $returnClosedUntilTime ? strtotime('+200 years') : 'Online ordering is closed';
}
return false;
}
function addErrorDialogueToLoadEvent() {
if (!isset($_REQUEST['hide_error_dialog'])) {
$errStr = str_replace("'", "‘", $_REQUEST['errors']);
$errStr = preg_replace('/\r\n/', ' ', $errStr);
if ($errStr) {
return '<script type="text/javascript" defer="defer">
var tmpOnload = window.onload;
window.onload = function() {
if(tmpOnload) tmpOnload();
/home
/deploy
/EHungry-6-boyan
/Web
/model3.0
/customer
/ordering3.php
}
$_REQUEST['_PAGETITLE_IS_ORDERING'] = true;
switch ($_REQUEST['ordering_level']) {
case 0:
$_REQUEST['_PAGETITLE'] = 'Choose A Location';
break;
case 1: //Restaurant
if (count($menus) == 1) {
$qs = '';
if ($_GET['embed']) {
$qs = '?embed='.$_GET['embed'];
}
redirectToOrdering([$restaurant, reset($menus)], $qs);
}
$_REQUEST['_PAGETITLE'] = 'Choose A Menu';
break;
case 2: //Menu
break;
case 3: //Category
if (isOrderingClosed(CLOSED_MSG_RESTAURANT)) {
$contentAndCartClass = 'contentandcart-category-closed';
}
if (ClosedHours::isCategoryHidden($restaurant, $category) || HolidayHours::isCategoryHidden($restaurant, $category)) {
redirectToOrderingWithError('Sorry, this category is currently unavailable.', [$restaurant, $menu, -1]);
}
$page_fragment = $account->getCategoryPageFragment($menu, $category->getId(), $restaurant->getHideAllPrices(), $restaurant, true);
if (isset($_REQUEST['sort'])) {
if ($_REQUEST['sort'] == "name") {
usort($items, array("MenuItem", "nameAlphaSort"));
} elseif ($_REQUEST['sort'] == "price") {
usort($items, array("MenuItem", "priceSort"));
}
}
break;
case 4: //Item
case 5: //Price
//check if we're closed right now. If so, display warning
if (!isset($_SESSION['time_ok']) && is_object($restaurant)) {
Arguments
/home
/deploy
/EHungry-6-boyan
/Web
/controllers
/customer.php
$cart->setDefaultOrderType($account, $restaurant);
$cart->setDefaultFees($account, $restaurant);
}
$restaurantRequiredPages = [
'login',
'customerorders'
];
if (is_null($restaurant) && in_array($_REQUEST['form'], $restaurantRequiredPages)) {
redirectTo('home');
}
$modelPath = CORE_PATH . 'model4.0/customer/'.$_REQUEST['form'].'.php';
} else {
$_REQUEST['mobiledetect'] = new Mobile_Detect;
}
if (is_readable($modelPath)) {
include_once($modelPath);
}
App::debugbarTime("model '{$_REQUEST['form']}'");
$custom_nav = CustomNavigationTab::getAllForAccount($account->getId());
$view2HideRightColumns = ['checkout', 'dashboard', 'customerdetails', 'customerorders',
'mydeliveryaddresses', 'emailpreferences', 'mycoupons', 'mycreditcards', 'mypassword',
'customerorderdetails', 'editcustomer', 'adddeliveryaddress',
'editlocation', 'orderconfirmation','viewcart', 'map', 'validatecallback'];
if (in_array($_REQUEST['form'], $view2HideRightColumns)) {
$hideRightColumn = true;
}
$myAccountPages = ['accountsettings', 'dashboard', 'customerdetails', 'customerorders', 'editaddress', 'editcustomer', 'mydeliveryaddresses', 'editlocation', 'emailpreferences', 'mycoupons', 'mycreditcards', 'mypassword', 'adddeliveryaddress', 'map', 'myloyalty'];
if (in_array($_REQUEST['form'], $myAccountPages)) {
$isMyAccountPage = true;
}
if (!isset($cart) || !is_object($cart)) {
$GLOBALS['cart'] = \Cart::getCurrent();
Arguments
"/home/deploy/EHungry-6-boyan/Web/model3.0/customer/ordering3.php"
/home
/deploy
/EHungry-6-boyan
/Web
/index.php
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");
Arguments
"/home/deploy/EHungry-6-boyan/Web/controllers/customer.php"