/home
/deploy
/EHungry-2-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-2-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-28 00:00:00_r10506_PICKUP_0"
86400
"N;"
/home
/deploy
/EHungry-2-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-28 00:00:00_r10506_PICKUP_0"
"N;"
86400
/home
/deploy
/EHungry-2-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-28 00:00:00_r10506_PICKUP_0"
null
/home
/deploy
/EHungry-2-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-28 00:00:00"
10506
null
"PICKUP"
/home
/deploy
/EHungry-2-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-28 00:00:00"
10506
"PICKUP"
/home
/deploy
/EHungry-2-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-2-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-2-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-2-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 @1768982400 {
date: 2026-01-21 00:00:00.0 America/Los_Angeles (-08:00)
}
false
array:2 [
0 => Menu {}
1 => Menu {}
]
false
false
/home
/deploy
/EHungry-2-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 @1768982400 {
date: 2026-01-21 00:00:00.0 America/Los_Angeles (-08:00)
}
"PICKUP"
false
false
false
[]
/home
/deploy
/EHungry-2-boyan
/Web
/lib
/global.php
}
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 no ordering times are currently available, check if ordering will be possible later.
//If not, return "Online ordering is closed" (effective indefinitely, represented as +200 years)
if (is_object($restaurant) && count($restaurant->getOrderingDaysForAnyType()) === 0) {
$firstAvailableTime = $restaurant->getFirstAvailableTime();
if ($firstAvailableTime) {
return $returnClosedUntilTime ? $firstAvailableTime
: ('Online ordering is closed' . (' 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-2-boyan
/Web
/templates3.0
/customer
/mycart.php
<input type="hidden" id="last-cart-action" value="<?=$_GET['cartaction'] ?? ''?>" />
<? function no_items($msg) { // phpcs:ignore ?>
<div class="inner">
<div class="item">
<span class="noitems"><?=$msg?></span>
</div>
</div>
<? }
if (isset($errMsg)) {
no_items($errMsg);
}
if ($closed_msg =
isOrderingClosed(CLOSED_MSG_RESTAURANT) ?:
(isset($restaurant)? $restaurant->generateHasNoOrderingMsg() : false) //TODO PHP8 nullsafe call
) {
$cart->clear();
no_items($closed_msg);
} else {
$cartItemCount = $cart->getCartItemCount();
if ($cartItemCount) {
$cartItems = $cart->getCartItems();
?>
<div class="inner">
<?
foreach ($cartItems as $key => $i) {
$cart_counter++;
$price = $i->getSelectedPrice();
?>
<div class="item">
<div class="itemTop">
<div class="l">
<strong class="h4"><?=$i->getDisplayName()?></strong>
<p class="description">
<?=intToMoneyString((int)$i->getTotalPriceValue()) . " ea. ".(trim($price->getDisplayName())!=trim($i->getDisplayName())?("(".$price->getDisplayName().")"):"")?>
</p>
</div>
<div class="m">
Arguments
/home
/deploy
/EHungry-2-boyan
/Web
/templates3.0
/customer
/header.php
include(CORE_PATH . "templates3.0/customer/widgets/footersmallnav.php");
} ?>
<hr>
<div class="recaptcha-terms">This site is protected by reCAPTCHA and the Google <a href="https://policies.google.com/privacy">Privacy Policy</a> and <a href="https://policies.google.com/terms">Terms of Service</a> apply.</div>
</div>
</div>
</div>
<div class="cart isClosed" id="cart">
<div class="cartHeaderWrapper">
<div class="p16" id="cartTriggerClose">
<i class="far fa-times fa-lg" role="presentation"></i>
</div>
<header>
<strong class="h3">Your order</strong>
</header>
</div>
<div class="cartInner">
<div class="cartInnerScroll">
<? include(CORE_PATH."templates3.0/customer/mycart.php"); ?>
</div>
</div>
</div>
<header class="header" style="<?=$account->logo_size == "vertical" ? "min-height:130px; " : ""?>">
<div class="inner">
<div class="logoContainer">
<? if (!isset($_REQUEST['_TEMPLATE_SETTINGS']['show_logo']) || $_REQUEST['_TEMPLATE_SETTINGS']['show_logo']->getValue() == 1) {?>
<a id="top-logo" href="<?=($account->getHomeLink())?$account->getHomeLink():formatCustomerLink('home')?>" class="logo" aria-hidden="true" tabindex="-1"><?
$noLogo = true;
if ($account->getLogoFileName()) {
$alt = MainNavigationTab::getTabName($account->id, 'home', 'Home');
$logoStyles = $account->getLogoSize() == "vertical" ? "height:250px; margin: 0 !important;" : "margin: 0 !important;";
if (strpos($account->getLogoFileName(), '_1x') !== false) {
$noLogo = false;
echo '<img src="' . $account->getUrl('logoFileName') .'" srcset="' . $account->getUrl('logoFileName') . ' 1x, ' . $account->getResponsiveUrl('logoFileName', '2x') . ' 2x" alt="'.$alt.'" style="'.$logoStyles.'">';
} else {
$noLogo = false;
echo '<img src="'.$account->getUrl('logoFileName').'" alt="'.$alt.'" style="'.$logoStyles.'" />';
}
}
Arguments
"/home/deploy/EHungry-2-boyan/Web/templates3.0/customer/mycart.php"
/home
/deploy
/EHungry-2-boyan
/Web
/controllers
/customer.php
}
if (!isset($cart) || !is_object($cart)) {
$GLOBALS['cart'] = \Cart::getCurrent();
}
//unset callback data in the event someone didn't hit the callback validation page
if (!in_array($_REQUEST['form'], ['checkout', 'nosuchpage', 'validatecallback', 'viewdeliveryzone'])) {
//TODO: probably need to add one more form here that is called ajax, callback seems to reset when it shouldnt
unset($_SESSION['validation_data']);
}
$locs = $account->getActiveRestaurants('position');
$tab = MainNavigationTab::getAllForAccount($account->getId());
include_once(CORE_PATH.'lib/helpers/customer3.0.php');
if (!in_array($_REQUEST['form'], $viewContentOnly)) {
App::debugbarTime('header');
include_once(getLayoutPartPath('header'));
App::debugbarTime('header');
}
App::debugbarTime("view '{$_REQUEST['form']}'");
$path = CORE_PATH.'view' . ($_REQUEST['_VERSION'] == 4 ? 4 : 3) . '.0/customer/'.$_REQUEST['form'].'.php';
if (is_readable($path)) {
include_once($path);
}
App::debugbarTime("view '{$_REQUEST['form']}'");
if (!in_array($_REQUEST['form'], $viewContentOnly)) {
App::debugbarTime('footer');
include_once(getLayoutPartPath('footer'));
App::debugbarTime('footer');
}
function getLayoutPartPath($part) {
if (isset($_REQUEST['_CORDOVA_APP'])) {
$cart = Cart::getCurrent();
Arguments
"/home/deploy/EHungry-2-boyan/Web/templates3.0/customer/header.php"
/home
/deploy
/EHungry-2-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-2-boyan/Web/controllers/customer.php"