/home
/deploy
/EHungry-8-simon
/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-8-simon
/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
"7872_home_schema"
86400
"""
<script type="application/ld+json">{\n
"@context": "http://schema.org",\n
"@type": "Restaurant",\n
"@id": "https://www.springroll.com.8.simon.ehungry.net/#restaurant",\n
"name": "Asian Garden - Valley Stream",\n
"url": "https://www.springroll.com.8.simon.ehungry.net/",\n
"telephone": "+15168378588",\n
"address": {\n
"@type": "PostalAddress",\n
"streetAddress": "105 Rockaway Ave",\n
"addressLocality": "Valley Stream",\n
"addressRegion": "NY",\n
"postalCode": "11580",\n
"addressCountry": "US"\n
},\n
"hasMap": "https://maps.google.com/?q=Asian Garden - Valley Stream, 105 Rockaway Ave, Valley Stream, NY, 11580",\n
"priceRange": "$$",\n
"servesCuisine": "Chinese",\n
"image": {\n
"@context": "http://schema.org",\n
"@type": "ImageObject",\n
"contentLocation": "Valley Stream, NY",\n
"url": "https://ehungry-6-simon-a-bucket.s3.us-west-2.amazonaws.com/web/documents/asiangardenvalleystream/promo_583294b350042.png"\n
},\n
"geo": {\n
"@type": "GeoCoordinates",\n
"name": "Asian Garden - Valley Stream",\n
"latitude": 40.663111,\n
"longitude": -73.69863\n
},\n
"hasMenu": [\n
{\n
"@type": "Menu",\n
"name": "Main",\n
"url": "https://www.springroll.com.8.simon.ehungry.net/restaurant/asiangardenvalleystream/order/main"\n
}\n
],\n
"openingHoursSpecification": [\n
{\n
"@type": "OpeningHoursSpecification",\n
"opens": "11:00:00",\n
"closes": "21:30:00",\n
"dayOfWeek": [\n
"http://schema.org/Tuesday",\n
"http://schema.org/Wednesday",\n
"http://schema.org/Thursday"\n
]\n
},\n
{\n
"@type": "OpeningHoursSpecification",\n
"opens": "11:00:00",\n
"closes": "22:30:00",\n
"dayOfWeek": [\n
"http://schema.org/Friday",\n
"http://schema.org/Saturday"\n
]\n
},\n
{\n
"@type": "OpeningHoursSpecification",\n
"opens": "12:00:00",\n
"closes": "21:30:00",\n
"dayOfWeek": [\n
"http://schema.org/Sunday"\n
]\n
}\n
]\n
}</script>
"""
/home
/deploy
/EHungry-8-simon
/Web
/templates3.0
/customer
/schema.php
'days' => [],
'open' => $open,
'close' => $close
];
}
$hours[$open.' - '.$close]['days'][] = 'http://schema.org/'.$d;
}
}
}
foreach ($hours as $hourInfo) {
$json['openingHoursSpecification'][] = [
'@type' => 'OpeningHoursSpecification',
'opens' => $hourInfo['open'],
'closes' => $hourInfo['close'],
'dayOfWeek' => $hourInfo['days']
];
}
$schemaScript = '<script type="application/ld+json">'.json_encode($json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES).'</script>';
Cache::Set($cacheKey, $schemaScript);
echo $schemaScript;
//account has multiple locations
} else {
}
break;
case 'ordering3':
//$_REQUEST['ordering_level']
//menu - 2:
//category - 3:
//menu item - 4:
if (!is_object($menu)) {
break;
}
$cacheKey = '';
if (is_object($restaurant)) {
$cacheKey .= $restaurant->getId();
}
if (is_object($menu)) {
Arguments
"7872_home_schema"
"""
<script type="application/ld+json">{\n
"@context": "http://schema.org",\n
"@type": "Restaurant",\n
"@id": "https://www.springroll.com.8.simon.ehungry.net/#restaurant",\n
"name": "Asian Garden - Valley Stream",\n
"url": "https://www.springroll.com.8.simon.ehungry.net/",\n
"telephone": "+15168378588",\n
"address": {\n
"@type": "PostalAddress",\n
"streetAddress": "105 Rockaway Ave",\n
"addressLocality": "Valley Stream",\n
"addressRegion": "NY",\n
"postalCode": "11580",\n
"addressCountry": "US"\n
},\n
"hasMap": "https://maps.google.com/?q=Asian Garden - Valley Stream, 105 Rockaway Ave, Valley Stream, NY, 11580",\n
"priceRange": "$$",\n
"servesCuisine": "Chinese",\n
"image": {\n
"@context": "http://schema.org",\n
"@type": "ImageObject",\n
"contentLocation": "Valley Stream, NY",\n
"url": "https://ehungry-6-simon-a-bucket.s3.us-west-2.amazonaws.com/web/documents/asiangardenvalleystream/promo_583294b350042.png"\n
},\n
"geo": {\n
"@type": "GeoCoordinates",\n
"name": "Asian Garden - Valley Stream",\n
"latitude": 40.663111,\n
"longitude": -73.69863\n
},\n
"hasMenu": [\n
{\n
"@type": "Menu",\n
"name": "Main",\n
"url": "https://www.springroll.com.8.simon.ehungry.net/restaurant/asiangardenvalleystream/order/main"\n
}\n
],\n
"openingHoursSpecification": [\n
{\n
"@type": "OpeningHoursSpecification",\n
"opens": "11:00:00",\n
"closes": "21:30:00",\n
"dayOfWeek": [\n
"http://schema.org/Tuesday",\n
"http://schema.org/Wednesday",\n
"http://schema.org/Thursday"\n
]\n
},\n
{\n
"@type": "OpeningHoursSpecification",\n
"opens": "11:00:00",\n
"closes": "22:30:00",\n
"dayOfWeek": [\n
"http://schema.org/Friday",\n
"http://schema.org/Saturday"\n
]\n
},\n
{\n
"@type": "OpeningHoursSpecification",\n
"opens": "12:00:00",\n
"closes": "21:30:00",\n
"dayOfWeek": [\n
"http://schema.org/Sunday"\n
]\n
}\n
]\n
}</script>
"""
/home
/deploy
/EHungry-8-simon
/Web
/templates3.0
/customer
/schema.php
}
$itemJson['offers'][] = $priceJson;
}
}
$categoryJson['hasMenuItem'][] = $itemJson;
}
}
}
$json['hasMenuSection'][] = $categoryJson;
}
}
$schemaScript = '<script type="application/ld+json">'.json_encode($json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES).'</script>';
Cache::Set($cacheKey, $schemaScript);
echo $schemaScript;
break;
}
};
$printSchema();
/home
/deploy
/EHungry-8-simon
/Web
/templates3.0
/customer
/header.php
<? } elseif (IS_EMBEDDED_INLINE) { ?>
const overlay = jQuery('<div id="overlay" style="position: fixed;top: 0;left: 0;width: 100%;height: 100%;background-color: #000;opacity: 0.9;z-index: 10000;"><div style="margin-top:10%;height:50px;font-weight:bold;font-size:150%;text-align:center;">Cookies are required for online ordering. <span style="color: #ffffff;">Click here to allow cookies</span>.<br><a href="<?=$account->getDomainUrl()?>" target="_blank" aria-label="Opens in new tab" title="Opens in new tab" id="notworking">Not working? Click here to open ordering in a new window.</a></div></div>');
overlay.appendTo(document.body).on('click', function (event) {
if (event.target.id != 'notworking') {
console.log('overlay clicked')
window.open("<?=$account->getDomainUrl()?>/setcookie", '_blank', 'width=20,height=20')
}
});
<? } ?>
} else {
Cookies.remove('test')
}
}
}
});
</script>
<? } ?>
<? include_once(CORE_PATH.'templates3.0/customer/schema.php');
include_once(CORE_PATH.'templates3.0/customer/google_analytics.php');
if (isset($account) && $account->getFacebookPixelId()) { ?>
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '<?=$account->getFacebookPixelId()?>');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=<?=$account->getFacebookPixelId()?>&ev=PageView&noscript=1"
/></noscript>
<!-- DO NOT MODIFY -->
<!-- End Facebook Pixel Code -->
<?
Arguments
"/home/deploy/EHungry-8-simon/Web/templates3.0/customer/schema.php"
/home
/deploy
/EHungry-8-simon
/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-8-simon/Web/templates3.0/customer/header.php"
/home
/deploy
/EHungry-8-simon
/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-8-simon/Web/controllers/customer.php"