50+ restaurants in the area
Restaurants in the area
Tokyo Fire - Damascus
9811 Main St #101 Damascus, MD 28072
0.1 mi
0.00
Pick up
Tasty 68 - Damascus
26131 Ridge Rd Damascus, MD 20872
0.2 mi
0.00
Pick up
Delivery
Hunan Cafe - Gaithersburg
18749 N Frederick Ave,Suite H Gaithersburg, MD 20879
8.7 mi
0.00
Pick up
Delivery
Hai Zhou Village - Germantown
13539 Clopper Rd Germantown, MD 20874
9.6 mi
0.00
Pick up
Delivery
China Sea - Frederick
6944 Crestwood Blvd Frederick, MD 21703
13.6 mi
0.00
Pick up
Delivery
Green Bamboo - Rockville
5751 Fishers Ln Rockville, MD 20852
16.2 mi
0.00
Pick up
Delivery
Hunan Diamond - Columbia
5485 Harpers Farm Rd Columbia, MD 21044
17.4 mi
0.00
Pick up
Hunan Family - Columbia
5430 Lynx Ln I Columbia, MD 21044
RedisException
Stack frames (18)
17
RedisException
/
home
/deploy
/EHungry-3-boyan
/Web
/classes
/Cache.class.php
69
16
Redis
setex
/
home
/deploy
/EHungry-3-boyan
/Web
/classes
/Cache.class.php
69
15
Cache
Set
/
home
/deploy
/EHungry-3-boyan
/Web
/classes
/Cache.class.php
53
14
Cache
SetObject
/
home
/deploy
/EHungry-3-boyan
/Web
/classes
/HolidayHours.class.php
157
13
HolidayHours
getByDateAndTypeAndRestaurantOrCategory
/
home
/deploy
/EHungry-3-boyan
/Web
/classes
/HolidayHours.class.php
102
12
HolidayHours
getByDateAndRestaurantAndType
/
home
/deploy
/EHungry-3-boyan
/Web
/classes
/Restaurant.class.php
1289
11
Restaurant
isOpenAtForType
/
home
/deploy
/EHungry-3-boyan
/Web
/classes
/Cart.class.php
859
10
Cart
getIsClosedAtTime
/
home
/deploy
/EHungry-3-boyan
/Web
/classes
/Cart.class.php
909
9
Cart
{closure}
/
home
/deploy
/EHungry-3-boyan
/Web
/classes
/Cart.class.php
920
8
Cart
getNextOpenTime
/
home
/deploy
/EHungry-3-boyan
/Web
/classes
/Cart.class.php
936
7
Cart
getNextOpenTimeForAnyType
/
home
/deploy
/EHungry-3-boyan
/Web
/eds
/ordering
/restaurant.php
108
6
EDS
\Restaurant
openStatus
/
home
/deploy
/EHungry-3-boyan
/Web
/marketplace
/routes
/restaurant_list.php
894
5
Marketplace
\RestaurantListRoute
card
/
home
/deploy
/EHungry-3-boyan
/Web
/marketplace
/routes
/restaurant_list.php
602
4
Marketplace
\RestaurantListRoute
restaurantList
/
home
/deploy
/EHungry-3-boyan
/Web
/marketplace
/routes
/restaurant_list.php
96
3
Marketplace
\RestaurantListRoute
restaurantsByStateAndCity
/
home
/deploy
/EHungry-3-boyan
/Web
/Services
/Router.php
47
2
eHungry
\Services
\Router
handle
/
home
/deploy
/EHungry-3-boyan
/Web
/marketplace
/router.php
27
1
include
/
home
/deploy
/EHungry-3-boyan
/Web
/controllers
/marketplace.php
2
0
require
/
home
/deploy
/EHungry-3-boyan
/Web
/index.php
30
/
home
/deploy
/EHungry-3-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-3-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-22 00:00:00_r8575_PICKUP_0"86400"N;"
/
home
/deploy
/EHungry-3-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-22 00:00:00_r8575_PICKUP_0""N;"86400
/
home
/deploy
/EHungry-3-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-22 00:00:00_r8575_PICKUP_0"null
/
home
/deploy
/EHungry-3-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-22 00:00:00"8575null"PICKUP"
/
home
/deploy
/EHungry-3-boyan
/Web
/classes
/Restaurant.class.php
if ($type == 'PICKUP') {
if (!$this->getHasPickupBase() && !$this->getHasDineInBase()) {
return [
'open' => false,
'error' => PICKUP_LABEL.'/'.DINEIN_LABEL.' are not available at this restaurant.',
'dayNumber' => $dayNumber,
];
}
} elseif ($type == 'DELIVERY') {
if (!$this->getHasDeliveryBase()) {
return [
'open' => false,
'error' => DELIVERY_LABEL.' is not available at this restaurant.',
'dayNumber' => $dayNumber
];
}
}
// check to see if we are operating in holiday hours
$holidayHours = HolidayHours::getByDateAndRestaurantAndType(date('Y-m-d 00:00:00', $local), $this->getId(), $type);
if (is_object($holidayHours)) {
$startTime = strtotime(date('1990-01-01 H:i:00', strtotime($holidayHours->getStartHour())));
$endTime = strtotime(date('1990-01-01 H:i:00', strtotime($holidayHours->getEndHour())));
$readyTime = strtotime(date('1990-01-01 H:i:s', $local));
if (!$holidayHours->getIsClosed() && ($startTime <= $readyTime && $endTime >= $readyTime)) {
return [
'open' => true,
'dayNumber' => $dayNumber,
];
} else {
return [
'open' => false,
'error' => 'We are closed at the selected time. '.$holidayHours->getMessage(),
'dayNumber' => $dayNumber,
];
}
}
$closedHours = ClosedHours::getByDateAndRestaurantAndType($local, $this->getId(), $type);
if (is_array($closedHours) && count($closedHours) > 0) {
foreach ($closedHours as $h) {
Arguments
"2026-01-22 00:00:00"8575"PICKUP"
/
home
/deploy
/EHungry-3-boyan
/Web
/classes
/Cart.class.php
}
}
return $additionalTime * 60; // converted from minutes to seconds
}
/**
* Determines if the given restaurant location is closed at the given time
* @param Restaurant $restaurant
* @param string $selectedReadyTime The timestamp to check
* @param null $menu
* @param bool $returnClosedHours
* @return bool|ClosedHours
*/
public function getIsClosedAtTime($restaurant, $selectedReadyTime, $menu = null, $returnClosedHours = false, $ignoreMenuTime = false) {
$menus = [null];
if (!$ignoreMenuTime) {
$menus = $menu ? [$menu] : ($this->getMenus() ?: [null]);
}
foreach ($menus as $menu) {
$openInfo = $restaurant->isOpenAtForType($selectedReadyTime, $this->getBaseOrderType(), $menu);
if ($returnClosedHours && isset($openInfo['closedHours']) && is_object($openInfo['closedHours'])) {
return $openInfo['closedHours'];
} elseif (!$openInfo['open']) {
return true;
}
}
return false;
}
public function getIsTypeClosed($restaurant) {
return $this->getIsClosedAtTime($restaurant, $restaurant->getLocalTime());
}
/**
* Finds what day an order is actually for (when placed after midnight especially)
* @param Restaurant $restaurant
* @param string $selectedReadyTime The timestamp to check
* @return int|null
*/
public function getDayOrderIsFor($restaurant, $selectedReadyTime) {
Arguments
1769071560"PICKUP"null
/
home
/deploy
/EHungry-3-boyan
/Web
/classes
/Cart.class.php
* @return false|float|int
*/
public function getNextOpenTime($restaurant, $selectedTime, $ignoreMenuTime = false, $noLimit = false) {
if (!$ignoreMenuTime && isset($_SESSION['menu_id'])) {
$menu = new Menu($_SESSION['menu_id']);
} else {
$menu = null;
}
$selectedTime = floor($selectedTime / 60) * 60;
//if we're open at the selected time, just return that
if (!$this->getIsClosedAtTime($restaurant, $selectedTime, $menu, false, $ignoreMenuTime)) {
return $selectedTime;
}
$limit = $noLimit ? 8736 : 336; //336 = 14 * 24 = 2 weeks / 8736 = 1 year
$findOpenTime = function ($selectedTime, $timeAdjust, $limit) use ($restaurant, $menu, $ignoreMenuTime) {
$counter = 0;
while ($this->getIsClosedAtTime($restaurant, $selectedTime, $menu, false, $ignoreMenuTime)) {
$selectedTime = strtotime($timeAdjust, $selectedTime);
if ($counter >= $limit) {
break;
}
$counter++;
}
return $selectedTime;
};
//going forward by each hour, check for an open time
$selectedTime = $findOpenTime($selectedTime, '+60 Minute', $limit);
//opened sometime in last hour. If open 30 minutes ago, check the 30 before that, otherwise check last 30 minutes
$thrityAgo = strtotime('-30 Minute', $selectedTime);
if (!$this->getIsClosedAtTime($restaurant, $thrityAgo, $menu, false, $ignoreMenuTime)) {
$thrityAgo = strtotime('-60 Minute', $selectedTime);
}
return $findOpenTime($thrityAgo, '+1 Minute', 30);
}
Arguments
Restaurant {}1769071560nullfalsetrue
/
home
/deploy
/EHungry-3-boyan
/Web
/classes
/Cart.class.php
if (!$this->getIsClosedAtTime($restaurant, $selectedTime, $menu, false, $ignoreMenuTime)) {
return $selectedTime;
}
$limit = $noLimit ? 8736 : 336; //336 = 14 * 24 = 2 weeks / 8736 = 1 year
$findOpenTime = function ($selectedTime, $timeAdjust, $limit) use ($restaurant, $menu, $ignoreMenuTime) {
$counter = 0;
while ($this->getIsClosedAtTime($restaurant, $selectedTime, $menu, false, $ignoreMenuTime)) {
$selectedTime = strtotime($timeAdjust, $selectedTime);
if ($counter >= $limit) {
break;
}
$counter++;
}
return $selectedTime;
};
//going forward by each hour, check for an open time
$selectedTime = $findOpenTime($selectedTime, '+60 Minute', $limit);
//opened sometime in last hour. If open 30 minutes ago, check the 30 before that, otherwise check last 30 minutes
$thrityAgo = strtotime('-30 Minute', $selectedTime);
if (!$this->getIsClosedAtTime($restaurant, $thrityAgo, $menu, false, $ignoreMenuTime)) {
$thrityAgo = strtotime('-60 Minute', $selectedTime);
}
return $findOpenTime($thrityAgo, '+1 Minute', 30);
}
public function getNextOpenTimeForAnyType($restaurant, $time = false) {
$tmpOt = $this->getBaseOrderType();
$nextOpenTime = null;
foreach (CustomerOrder::TYPES_CAMEL as $type => $typeCamel) {
if ($restaurant->{'getHas' . $typeCamel . 'Base'}()) {
$this->setBaseOrderType($type);
$newNextOpenTime = $this->getNextOpenTime($restaurant, $time ?: $restaurant->getLocalTime(), true, true);
$nextOpenTime = !$nextOpenTime || $newNextOpenTime < $nextOpenTime ? $newNextOpenTime : $nextOpenTime;
}
}
$this->setBaseOrderType($tmpOt);
Arguments
1769071560"+60 Minute"8736
/
home
/deploy
/EHungry-3-boyan
/Web
/classes
/Cart.class.php
};
//going forward by each hour, check for an open time
$selectedTime = $findOpenTime($selectedTime, '+60 Minute', $limit);
//opened sometime in last hour. If open 30 minutes ago, check the 30 before that, otherwise check last 30 minutes
$thrityAgo = strtotime('-30 Minute', $selectedTime);
if (!$this->getIsClosedAtTime($restaurant, $thrityAgo, $menu, false, $ignoreMenuTime)) {
$thrityAgo = strtotime('-60 Minute', $selectedTime);
}
return $findOpenTime($thrityAgo, '+1 Minute', 30);
}
public function getNextOpenTimeForAnyType($restaurant, $time = false) {
$tmpOt = $this->getBaseOrderType();
$nextOpenTime = null;
foreach (CustomerOrder::TYPES_CAMEL as $type => $typeCamel) {
if ($restaurant->{'getHas' . $typeCamel . 'Base'}()) {
$this->setBaseOrderType($type);
$newNextOpenTime = $this->getNextOpenTime($restaurant, $time ?: $restaurant->getLocalTime(), true, true);
$nextOpenTime = !$nextOpenTime || $newNextOpenTime < $nextOpenTime ? $newNextOpenTime : $nextOpenTime;
}
}
$this->setBaseOrderType($tmpOt);
return $nextOpenTime;
}
public function getNextOpenTimeForType($restaurant, $type, $time = false) {
$tmpOt = $this->getBaseOrderType();
$this->setBaseOrderType($type);
$nextOpenTime = $this->getNextOpenTime($restaurant, $time ?: $restaurant->getLocalTime(), true, true);
$this->setBaseOrderType($tmpOt);
return $nextOpenTime;
}
/*public function isItemInOrder($mid = NULL) {
if(!$mid) return false;
$items = $this->getCartItems();
$required_products = explode(',',$mid);
if(is_array($items)) foreach($items as $i) if(is_a($i, 'MenuItem') && in_array($i->getId(), $required_products)) return true;
Arguments
Restaurant {}1769064360.0truetrue
/
home
/deploy
/EHungry-3-boyan
/Web
/eds
/ordering
/restaurant.php
$isOrderingClosed = isOrderingClosed(CLOSED_MSG_RESTAURANT);
$orderingClosedUntil = isOrderingClosed(CLOSED_MSG_RESTAURANT, true);
$orderingClosedUntilTimestamp = is_numeric($orderingClosedUntil)? $orderingClosedUntil : false;
$isOpen = !$isOrderingClosed && ($restaurant->pickupAvailableNow() || $restaurant->deliveryAvailableNow());
if ($restaurant->getPublicOrderingClosedUntil()) {
$orderingClosedUntil = $restaurant->getLocalPublicOrderingClosedUntilText(true);
$closedUntilTimestamp = is_numeric($orderingClosedUntil)? $orderingClosedUntil : false;
$hasAvailableDays =
$restaurant->hasAvailableDays($restaurant->getLocalTime(), $cart->getBaseOrderType());
if ($hasAvailableDays) {
$nextOpenTime = $cart->getNextOpenTimeForAnyType($restaurant, $closedUntilTimestamp);
if (date('giA', $nextOpenTime) > date('giA', $earliestOpen)) {
$earliestOpen = $nextOpenTime;
}
} else {
$orderingClosedUntil = 'Indefinitely';
$nextOpenTime = strtotime('+100 years');
}
} else {
$nextOpenTime = $cart->getNextOpenTimeForAnyType($restaurant, $orderingClosedUntilTimestamp);
}
$opensSoon =
!$isOpen && $orderingClosedUntil !== 'Indefinitely' && date('Y-m-d', $nextOpenTime) == date('Y-m-d', $restaurant->getLocalTime());
if ($isOpen) {
$closeTimestamp = $restaurant->getLatestEffectiveCloseTime($restaurant->getLocalTime());
\Cache::Set($openUntilKey, $closeTimestamp);
} elseif ($opensSoon) {
\Cache::Set($opensSoonKey, $nextOpenTime);
\Cache::Set($orderingClosedUntilKey, $orderingClosedUntil);
} else {
\Cache::Set($closedUntilKey, $nextOpenTime);
\Cache::Set($orderingClosedUntilKey, $orderingClosedUntil);
}
}
ob_start();
echo Label(
array_merge(
Arguments
Restaurant {}false
/
home
/deploy
/EHungry-3-boyan
/Web
/marketplace
/routes
/restaurant_list.php
ob_start();
?>
<div class="restaurant_card d-flex flex-column flex-md-row <?=$props['class']?>" <?=\EDS\stringify_attrs(\EDS\omit($attrs, array_keys($props)))?>>
<?=\EDS\Restaurant::image(
['class' => 'restaurant_card-image'],
$badge ? ('<div class="restaurant_card-badge align-self-start rounded-start mt-3 bg-success ps-2 pe-2p5 py-1 text-white eds-interface-text-s-bold">' . $badge . '</div>') : null,
$account
)?>
<div class="p-3 eds-interface-text-m-regular">
<div class="d-flex gap-2 align-items-baseline">
<? // Display name ?>
<div>
<div class="restaurant_card-title eds-display-text-title-xs flex-fill"><?=$restaurant->display_name?></div>
<div class="eds-copy-text-s-regular mt-1"><?=$restaurant->getFullAddress(false)?></div>
</div>
</div>
<?=\EDS\Restaurant::openStatus(['class' => 'mt-1'], $cart, $restaurant, false, true, true)?>
<div class="d-flex flex-wrap align-items-baseline mt-2" style="--eds-bullet-spacing-before: 0.5rem">
<span class="bullet-separated"><?=$distance?></span>
<?=\EDS\Restaurant::rating(['class' => 'bullet-separated'], $restaurant)?>
<?=\EDS\Restaurant::priceRange(['class' => 'bullet-separated'], $restaurant)?>
<? if (\RAHCampaign::isActiveForRestaurant($restaurant)) { ?>
<div class="bullet-separated"><?=\RAHCampaign::badge()?></div>
<? } ?>
</div>
<? if ($is_open) { // Order types ?>
<div class="d-flex align-items-baseline eds-copy-text-s-bold mt-2">
<?=\EDS\Icon(['icon' => 'utensils-alt', 'variant' => 'solid', 'class' => 'me-1 text-light'])?>
<? if ($restaurant->getHasPickupBase()) { ?>
<span class="comma-separated"><?=PICKUP_LABEL?></span>
<? } ?>
<? if ($restaurant->getHasDeliveryBase()) { ?>
<span class="comma-separated"><?=DELIVERY_LABEL?></span>
Arguments
array:1 [ "class" => "mt-1" ]
Cart {}Restaurant {}falsetruetrue
/
home
/deploy
/EHungry-3-boyan
/Web
/marketplace
/routes
/restaurant_list.php
max-height: none !important;
}
}
</style>
<div id="filtered-restaurants" class="d-flex flex-column gap-3 mt-3">
<? if (!$filtered_restaurants) { ?>
No restaurants match your search.
<? } ?>
<? foreach ($filtered_restaurants as $restaurant) {
$GLOBALS['account'] = new \Account($restaurant->account_id); // Unfortunately needed for `formatCustomerOrderLink`
?>
<?=\EDS\html('a', [
'id' => 'restaurant_' . $restaurant->id,
'class' => 'overflow-hidden rounded-2 border bg-white text-dark text-decoration-none',
'href' => formatCustomerOrderLink([$restaurant]),
'onclick' => static::confirmNewCart($cart, $restaurant),
], static::card($cart, $restaurant))?>
<? } ?>
</div>
</div>
</div>
<? } else { ?>
<?=static::states()?>
<? } ?>
</div>
<?=\EDS\Dialog(['id' => 'modal-map-restaurant', 'size' => 'medium', 'fullscreen' => false])?>
</section>
<?
if ($nearMeCuisine && !$map_is_shown) {
echo static::nearMeJs();
}
if (count($url_params) > 0) { // sc-60709: use canonical url and noindex for restaurant searches
\EDS\Portal::input('canonical_url', $canonicalUrl);
\EDS\Portal::input('meta-robots', 'noindex');
}
Arguments
Cart {}Restaurant {}
/
home
/deploy
/EHungry-3-boyan
/Web
/marketplace
/routes
/restaurant_list.php
}
return static::restaurantList($request);
}
public static function restaurantsByStateAndCity(array $params, array $request) {
$state = \EDS\undasherize($params['state']);
$city = \EDS\undasherize($params['city']);
$request = array_merge($request, static::getStateAndCityIfRestaurantsAvailable($state, $city));
$address = "$city, $state";
$request['search'] = $address;
$geocode_data = \ZipCode::getGeoLocation($address);
if ($geocode_data) {
$request['lat'] = $geocode_data[0];
$request['lng'] = $geocode_data[1];
}
return static::restaurantList($request);
}
private static function getStateAndCityIfRestaurantsAvailable(?string $state_or_abbr, ?string $city) {
$state_or_abbr = trim($state_or_abbr ?: '');
$city = trim($city ?: '');
$states = DataService::getStates();
$state_name = (
$state_or_abbr && array_key_exists($state_or_abbr, $states)
? $state_or_abbr
: (getStateFullName($state_or_abbr) && array_key_exists(getStateFullName($state_or_abbr), $states)
? getStateFullName($state_or_abbr)
: null)
);
$city_name = $state_name && in_array($city, $states[$state_name]) ? $city : null;
return ['state' => $state_name, 'city' => $city_name];
}
// Components
Arguments
array:9 [ "aid" => "restaurants/maryland/damascus" "status" => [] "controller" => "marketplace" "form" => "home" "state" => "Maryland" "city" => "Damascus" "search" => "Damascus, Maryland" "lat" => 39.2884381 "lng" => -77.2038716 ]
/
home
/deploy
/EHungry-3-boyan
/Web
/Services
/Router.php
* ```
*
* @return mixed
*/
public static function handle(string $method, string $url, array $request, array $route_classes) {
$_REQUEST['_VERSION'] = 4; // Important for some methods that rely on the version
$account_id_string = Account::getAccountIdString();
$decoded_url = urldecode($url); // Handle encoded characters like `%20`
$unprefixed_url = $account_id_string
? preg_replace("/^\/$account_id_string/", '', $decoded_url)
: $decoded_url;
foreach ($route_classes as $route_class) {
$routes = $route_class::ROUTES;
foreach ($routes as $path => $handler) {
$params = [];
if (preg_match("/^$path\/?$/i", "$method $unprefixed_url", $params)) {
return $route_class::$handler($params, $request);
}
}
}
return self::notFound();
}
public static function notFound(): string {
http_response_code(404);
ob_start();
?>
<div class="mt-4 py-5 text-center">
<? if (isSpringroll()) { ?>
<img style="width: 100px" src="<?=getAssetUrl('error-page.png')?>" srcset="<?=getAssetUrl('error-page@3x.png')?> 3x, <?=getAssetUrl('error-page@2x.png')?> 2x" alt=" " aria-hidden="true" />
<hgroup class="my-4">
<h3 class="eds-display-text-title-s mb-2">Oops! This one's missing</h3>
<p class="eds-interface-text-l-regular mb-0">This page is as empty as a dumpling without its filling.</p>
</hgroup>
Arguments
array:5 [ 0 => "GET /restaurants/maryland/damascus" "state" => "maryland" 1 => "maryland" "city" => "damascus" 2 => "damascus" ]
array:9 [ "aid" => "restaurants/maryland/damascus" "status" => [] "controller" => "marketplace" "form" => "home" "state" => "Maryland" "city" => "Damascus" "search" => "Damascus, Maryland" "lat" => 39.2884381 "lng" => -77.2038716 ]
/
home
/deploy
/EHungry-3-boyan
/Web
/marketplace
/router.php
require_once(CORE_PATH . 'auth/forgotpassword.php');
require_once(CORE_PATH . 'auth/login.php');
require_once(CORE_PATH . 'auth/register.php');
require_once(CORE_PATH . 'marketplace/assets/assets.php');
require_once(__DIR__ . '/routes/landing.php');
require_once(__DIR__ . '/routes/campaigns.php');
require_once(__DIR__ . '/routes/product.php');
require_once(__DIR__ . '/routes/restaurant_list.php');
require_once(__DIR__ . '/routes/restaurant_details.php');
require_once(__DIR__ . '/routes/support.php');
require_once(__DIR__ . '/routes/generatedfilesroute.php');
$handler_output = \eHungry\Services\Router::handle(
$_SERVER['REQUEST_METHOD'],
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) ?? '/',
$_REQUEST,
[
\AccountSettings\ProfileInfoRoutes::class,
\AccountSettings\BasicInformationRoutes::class,
\AccountSettings\ChangePasswordRoutes::class,
\AccountSettings\AddressRoutes::class,
\AccountSettings\PaymentMethodRoutes::class,
\AccountSettings\CommunicationRoutes::class,
\AccountSettings\CampaignsRoutes::class,
\AccountSettings\AccountRoutes::class,
\AccountSettings\OrderRoutes::class,
\AccountSettings\CouponRoutes::class,
\Auth\ForgotPasswordRoutes::class,
\Auth\LoginRoutes::class,
\Auth\RegisterRoutes::class,
LandingRoute::class,
CampaignsRoute::class,
ProductRoute::class,
RestaurantListRoute::class,
RestaurantPageRoute::class,
SupportRoutes::class,
Arguments
"GET""/restaurants/maryland/damascus"array:4 [ "aid" => "restaurants/maryland/damascus" "status" => [] "controller" => "marketplace" "form" => "home" ]
array:20 [ 0 => "AccountSettings\ProfileInfoRoutes" 1 => "AccountSettings\BasicInformationRoutes" 2 => "AccountSettings\ChangePasswordRoutes" 3 => "AccountSettings\AddressRoutes" 4 => "AccountSettings\PaymentMethodRoutes" 5 => "AccountSettings\CommunicationRoutes" 6 => "AccountSettings\CampaignsRoutes" 7 => "AccountSettings\AccountRoutes" 8 => "AccountSettings\OrderRoutes" 9 => "AccountSettings\CouponRoutes" 10 => "Auth\ForgotPasswordRoutes" 11 => "Auth\LoginRoutes" 12 => "Auth\RegisterRoutes" 13 => "Marketplace\LandingRoute" 14 => "Marketplace\CampaignsRoute" 15 => "Marketplace\ProductRoute" 16 => "Marketplace\RestaurantListRoute" 17 => "Marketplace\RestaurantPageRoute" 18 => "Marketplace\SupportRoutes" 19 => "Marketplace\GeneratedFilesRoute" ]
/
home
/deploy
/EHungry-3-boyan
/Web
/controllers
/marketplace.php
<? include(CORE_PATH . 'marketplace/router.php');
Arguments
"/home/deploy/EHungry-3-boyan/Web/marketplace/router.php"
/
home
/deploy
/EHungry-3-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-3-boyan/Web/controllers/marketplace.php"
Environment & details:
| Key | Value |
| aid | "restaurants/maryland/damascus"
|
empty
empty
| Key | Value |
| PHPSESSID | "fscafgon0bsages6rtvjmm40af"
|
| Key | Value |
| loc | "en_US"
|
| customer_account_id | 74018
|
| cart | Cart {}
|
| restaurant_id | 7291
|
| status | array:2 [ 1 => [] 2 => [] ] |
| app_banner_shown | true
|
| redirect_form | "checkout"
|
| menu_id | 9291
|
| Key | Value |
| UNIQUE_ID | "aXGdqOf3hDPYEdd7_J2jxQAAAA4"
|
| SCRIPT_URL | "/restaurants/maryland/damascus"
|
| SCRIPT_URI | "http://www.springroll.com.3.boyan.ehungry.net/restaurants/maryland/damascus"
|
| HTTP_HOST | "www.springroll.com.3.boyan.ehungry.net"
|
| HTTP_X_REAL_IP | "216.73.216.48"
|
| HTTP_X_FORWARDED_FOR | "216.73.216.48"
|
| HTTP_X_CONFKEY | "Main_Domain:6462"
|
| 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=fscafgon0bsages6rtvjmm40af"
|
| PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
|
| SERVER_SIGNATURE | "" |
| SERVER_SOFTWARE | "Apache/2.4.66 () mod_wsgi/4.6.5 Python/3.7 PHP/7.2.34"
|
| SERVER_NAME | "www.springroll.com.3.boyan.ehungry.net"
|
| SERVER_ADDR | "127.0.0.1"
|
| SERVER_PORT | "80"
|
| REMOTE_ADDR | "127.0.0.1"
|
| DOCUMENT_ROOT | "/home/deploy/EHungry-3-boyan/Web"
|
| REQUEST_SCHEME | "http"
|
| CONTEXT_PREFIX | "" |
| CONTEXT_DOCUMENT_ROOT | "/home/deploy/EHungry-3-boyan/Web"
|
| SERVER_ADMIN | "root@localhost"
|
| SCRIPT_FILENAME | "/home/deploy/EHungry-3-boyan/Web/index.php"
|
| REMOTE_PORT | "45068"
|
| GATEWAY_INTERFACE | "CGI/1.1"
|
| SERVER_PROTOCOL | "HTTP/1.0"
|
| REQUEST_METHOD | "GET"
|
| QUERY_STRING | "aid=restaurants/maryland/damascus"
|
| REQUEST_URI | "/restaurants/maryland/damascus"
|
| SCRIPT_NAME | "/restaurants/maryland/damascus"
|
| PHP_SELF | "/restaurants/maryland/damascus"
|
| REQUEST_TIME_FLOAT | 1769053608.513
|
| REQUEST_TIME | 1769053608
|
empty
0. Whoops\Handler\PrettyPageHandler
Fatal error: Uncaught RedisException: 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. in [no active file]:0 Stack trace: #0 {main} thrown in [no active file] on line 0