ParseError
syntax error, unexpected '<<' (T_SL), expecting case (T_CASE) or default (T_DEFAULT) or '}' ParseError thrown with message "syntax error, unexpected '<<' (T_SL), expecting case (T_CASE) or default (T_DEFAULT) or '}'" Stacktrace: #11 ParseError in /home/deploy/EHungry-2-joel/Web/classes/Restaurant.class.php:1965 #10 Composer\Autoload\includeFile in /home/deploy/EHungry-2-joel/PHP/vendor/composer/ClassLoader.php:428 #9 Composer\Autoload\ClassLoader:loadClass in [internal]:0 #8 spl_autoload_call in [internal]:0 #7 unserialize in /home/deploy/EHungry-2-joel/Web/classes/Cache.class.php:122 #6 Cache:GetType in /home/deploy/EHungry-2-joel/Web/classes/Cache.class.php:191 #5 Cache:RememberType in /home/deploy/EHungry-2-joel/Web/classes/Cache.class.php:242 #4 Cache:RememberArray in /home/deploy/EHungry-2-joel/Web/classes/Account.class.php:1349 #3 Account:getAllRestaurantsByAccountId in /home/deploy/EHungry-2-joel/Web/classes/Account.class.php:1359 #2 Account:getAllRestaurants in /home/deploy/EHungry-2-joel/Web/classes/Account.class.php:1320 #1 Account:getRestaurantCount in /home/deploy/EHungry-2-joel/Web/controllers/customer.php:297 #0 require in /home/deploy/EHungry-2-joel/Web/index.php:30
Stack frames (12)
11
ParseError
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
classes
/
Restaurant.class.php
1965
10
Composer
\
Autoload
\
includeFile
/
vendor
/
composer
/
ClassLoader.php
428
9
Composer
\
Autoload
\
ClassLoader
loadClass
[internal]
0
8
spl_autoload_call
[internal]
0
7
unserialize
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
classes
/
Cache.class.php
122
6
Cache
GetType
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
classes
/
Cache.class.php
191
5
Cache
RememberType
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
classes
/
Cache.class.php
242
4
Cache
RememberArray
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
classes
/
Account.class.php
1349
3
Account
getAllRestaurantsByAccountId
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
classes
/
Account.class.php
1359
2
Account
getAllRestaurants
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
classes
/
Account.class.php
1320
1
Account
getRestaurantCount
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
controllers
/
customer.php
297
0
require
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
index.php
30
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
classes
/
Restaurant.class.php
                    return false;
                }
                break;
            case PAYMENT_CREDIT:
            case PAYMENT_DEBIT:
            case PAYMENT_PREPAID:
            case PAYMENT_UNKNOWN_CARD:
            case PAYMENT_APPLE_PAY:
            case PAYMENT_GOOGLE_PAY:
                if (!($this->pay_with_credit & @constant($cart->getBaseOrderType()))) {
                    return false;
                }
 
                //if mercury/vantiv and adding new card
                if ($account->getEffectivePaymentProcessorId() == PaymentProcessor\Vantiv::$processorId && $handler->params['credit~card'] == -1) {
                    return true;
                }
 
                //Google Pay (Authorize.net and CardConnect)
<<<<<<< HEAD
                if ((!empty($handler->params['googlePayToken']) || !empty($handler->params['applePayToken'])) && $account->canUseDigitalWallets()) {
=======
                if (!empty($handler->params['google~pay~token']) && $account->canUseGooglePay()) {
>>>>>>> origin/Release/PHP7
                    return true;
                }
 
                $card = new CustomerPaymentInfo($handler->params['credit~card']);
 
                //credit card must match the delivery address it was created for
                if ($cart->getBaseOrderType() == 'DELIVERY'
                    && ($card->delivery_address_id && $card->delivery_address_id != $cart->getDeliveryAddressId())
                    && ($card->delivery_address_id != -1 || $card->saved)) {
                    return false;
                }
 
                $cardTypeName = $card->getShortTypeName();
                $cart->setHouseAccountId(null);
                $cart->setCustomPaymentTypeId(null);
 
Arguments
  1. "syntax error, unexpected '<<' (T_SL), expecting case (T_CASE) or default (T_DEFAULT) or '}'"
    
/
home
/
deploy
/
EHungry-2-joel
/
PHP
/
vendor
/
composer
/
ClassLoader.php
     */
    public function unregister()
    {
        spl_autoload_unregister(array($this, 'loadClass'));
 
        if (null !== $this->vendorDir) {
            unset(self::$registeredLoaders[$this->vendorDir]);
        }
    }
 
    /**
     * Loads the given class or interface.
     *
     * @param  string    $class The name of the class
     * @return true|null True if loaded, null otherwise
     */
    public function loadClass($class)
    {
        if ($file = $this->findFile($class)) {
            includeFile($file);
 
            return true;
        }
 
        return null;
    }
 
    /**
     * Finds the path to the file where the class is defined.
     *
     * @param string $class The name of the class
     *
     * @return string|false The path if found, false otherwise
     */
    public function findFile($class)
    {
        // class map lookup
        if (isset($this->classMap[$class])) {
            return $this->classMap[$class];
        }
Arguments
  1. "/home/deploy/EHungry-2-joel/PHP/vendor/composer/../../../Web/classes/Restaurant.class.php"
    
[internal]
Arguments
  1. "Restaurant"
    
[internal]
Arguments
  1. "Restaurant"
    
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
classes
/
Cache.class.php
     * @return bool|array|null
     */
    public static function GetArray($key, $allowNull = false) {
        return static::GetType('array', $key, $allowNull);
    }
 
    /**
     * This one can either return a boolean when key is found, or a null if key isn't found. So you need to check the
     * result with with is_bool() or is_null().
     * @param string $key The key to lookup
     * @return bool|null
     */
    public static function GetBoolean($key) {
        return static::GetType('bool', $key, false, null);
    }
 
    private static function GetType($type, $key, $allowNull, $notFoundResult = false) {
        $r = static::Get($key);
        if ($r) {
            $uco = unserialize($r);
            $typeFunc = 'is_'.$type;
            if ($typeFunc($uco) || ($allowNull && is_null($uco))) {
                return $uco;
            }
        }
        return $notFoundResult;
    }
 
    public static function Get($key) {
        if (array_key_exists($key, static::$requestCache)) {
            $r = static::$requestCache[$key];
            $r = static::afterGet($r);
            App::cacheHit($key);
            return $r;
        }
 
        if ($i = static::getInstance()) {
            if ($r = $i->get($key)) {
                //if a key has been used more than 3 times, store it in the in-memory request cache.
                //We don't store every cache load in-memory, otherwise we might run out of memory on some pages (eg if they load every account)
Arguments
  1. """
    a:1:{i:0;O:10:"Restaurant":29:{s:10:"timestamps";b:1;s:12:"coupon_count";N;s:11:"\x00*\x00fillable";a:6:{i:0;s:5:"email";i:1;s:18:"notification_email";i:2;s:28:"pickup_ordering_closed_until";i:3;s:28:"dinein_ordering_closed_until";i:4;s:30:"delivery_ordering_closed_until";i:5;s:16:"is_on_springroll";}s:10:"\x00*\x00visible";a:14:{i:0;s:10:"allow_tips";i:1;s:18:"closed_until_texts";i:2;s:30:"delivery_ordering_closed_until";i:3;s:28:"dinein_ordering_closed_until";i:4;s:12:"display_name";i:5;s:24:"enabled_base_order_types";i:6;s:2:"id";i:7;s:9:"is_locked";i:8;s:28:"pickup_ordering_closed_until";i:9;s:8:"position";i:10;s:29:"shipday_auto_dispatch_enabled";i:11;s:34:"show_future_order_delivery_minutes";i:12;s:32:"show_future_order_pickup_minutes";i:13;s:11:"timezone_id";}s:10:"\x00*\x00appends";a:3:{i:0;s:11:"timezone_id";i:1;s:24:"enabled_base_order_types";i:2;s:18:"closed_until_texts";}s:8:"\x00*\x00casts";a:5:{s:9:"is_locked";s:7:"boolean";s:12:"has_delivery";s:7:"boolean";s:11:"has_dine_in";s:7:"boolean";s:10:"has_pickup";s:7:"boolean";s:18:"ordering_is_closed";s:7:"boolean";}s:8:"\x00*\x00dates";a:3:{i:0;s:28:"pickup_ordering_closed_until";i:1;s:28:"dinein_ordering_closed_until";i:2;s:30:"delivery_ordering_closed_until";}s:12:"pdfPageCount";i:0;s:9:"\x00*\x00hidden";a:1:{i:0;s:8:"password";}s:12:"\x00*\x00nullables";a:0:{}s:13:"\x00*\x00connection";s:7:"default";s:8:"\x00*\x00table";N;s:13:"\x00*\x00primaryKey";s:2:"id";s:10:"\x00*\x00keyType";s:3:"int";s:12:"incrementing";b:1;s:7:"\x00*\x00with";a:0:{}s:12:"\x00*\x00withCount";a:0:{}s:10:"\x00*\x00perPage";i:15;s:6:"exists";b:1;s:18:"wasRecentlyCreated";b:0;s:13:"\x00*\x00attributes";a:300:{s:2:"id";i:4056;s:10:"account_id";i:3526;s:11:"monday_open";s:8:"11:00:00";s:12:"tuesday_open";s:8:"11:00:00";s:14:"wednesday_open";s:8:"11:00:00";s:13:"thursday_open";s:8:"11:00:00";s:11:"friday_open";s:8:"11:00:00";s:13:"saturday_open";s:8:"12:00:00";s:11:"sunday_open";s:8:"12:00:00";s:13:"monday_closed";s:8:"22:00:00";s:14:"tuesday_closed";s:8:"22:00:00";s:16:"wednesday_closed";s:8:"22:00:00";s:15:"thursday_closed";s:8:"22:00:00";s:13:"friday_closed";s:8:"23:00:00";s:15:"saturday_closed";s:8:"23:00:00";s:13:"sunday_closed";s:8:"23:00:00";s:13:"monday_open_2";s:8:"11:00:00";s:14:"tuesday_open_2";s:8:"11:00:00";s:16:"wednesday_open_2";s:8:"11:00:00";s:15:"thursday_open_2";s:8:"11:00:00";s:13:"friday_open_2";s:8:"11:00:00";s:15:"saturday_open_2";s:8:"12:00:00";s:13:"sunday_open_2";s:8:"12:00:00";s:15:"monday_closed_2";s:8:"22:00:00";s:16:"tuesday_closed_2";s:8:"22:00:00";s:18:"wednesday_closed_2";s:8:"22:00:00";s:17:"thursday_closed_2";s:8:"22:00:00";s:15:"friday_closed_2";s:8:"23:00:00";s:17:"saturday_closed_2";s:8:"23:00:00";s:15:"sunday_closed_2";s:8:"23:00:00";s:20:"delivery_monday_open";s:8:"11:00:00";s:21:"delivery_tuesday_open";s:8:"11:00:00";s:23:"delivery_wednesday_open";s:8:"11:00:00";s:22:"delivery_thursday_open";s:8:"11:00:00";s:20:"delivery_friday_open";s:8:"11:00:00";s:22:"delivery_saturday_open";s:8:"12:00:00";s:20:"delivery_sunday_open";s:8:"12:00:00";s:22:"delivery_monday_closed";s:8:"22:00:00";s:23:"delivery_tuesday_closed";s:8:"22:00:00";s:25:"delivery_wednesday_closed";s:8:"22:00:00";s:24:"delivery_thursday_closed";s:8:"22:00:00";s:22:"delivery_friday_closed";s:8:"23:00:00";s:24:"delivery_saturday_closed";s:8:"23:00:00";s:22:"delivery_sunday_closed";s:8:"23:00:00";s:22:"delivery_monday_open_2";s:8:"11:00:00";s:23:"delivery_tuesday_open_2";s:8:"11:00:00";s:25:"delivery_wednesday_open_2";s:8:"11:00:00";s:24:"delivery_thursday_open_2";s:8:"11:00:00";s:22:"delivery_friday_open_2";s:8:"11:00:00";s:24:"delivery_saturday_open_2";s:8:"12:00:00";s:22:"delivery_sunday_open_2";s:8:"12:00:00";s:24:"delivery_monday_closed_2";s:8:"22:00:00";s:25:"delivery_tuesday_closed_2";s:8:"22:00:00";s:27:"delivery_wednesday_closed_2";s:8:"22:00:00";s:26:"delivery_thursday_closed_2";s:8:"22:00:00";s:24:"delivery_friday_closed_2";s:8:"23:00:00";s:26:"delivery_saturday_closed_2";s:8:"23:00:00";s:24:"delivery_sunday_closed_2";s:8:"23:00:00";s:13:"two_hour_sets";i:0;s:23:"separate_delivery_hours";i:1;s:8:"timezone";i:2;s:10:"tax_rate_2";d:0;s:8:"tax_rate";d:10.75;s:16:"tax_rate_label_2";s:0:"";s:14:"tax_rate_label";s:0:"";s:19:"is_tax_2_cumulative";i:0;s:12:"has_delivery";i:1;s:11:"has_dine_in";i:0;s:10:"has_pickup";i:1;s:10:"allow_tips";i:1;s:19:"show_tip_calculator";i:1;s:16:"closed_on_monday";i:0;s:17:"closed_on_tuesday";i:0;s:19:"closed_on_wednesday";i:0;s:18:"closed_on_thursday";i:0;s:16:"closed_on_friday";i:0;s:18:"closed_on_saturday";i:0;s:16:"closed_on_sunday";i:0;s:25:"delivery_closed_on_monday";i:0;s:26:"delivery_closed_on_tuesday";i:0;s:28:"delivery_closed_on_wednesday";i:0;s:27:"delivery_closed_on_thursday";i:0;s:25:"delivery_closed_on_friday";i:0;s:27:"delivery_closed_on_saturday";i:0;s:25:"delivery_closed_on_sunday";i:0;s:16:"order_delay_type";i:2;s:18:"delay_under_amount";i:1500;s:16:"amount_per_delay";i:0;s:18:"delay_time_minutes";i:0;s:13:"pay_at_pickup";i:1;s:22:"pay_with_house_account";i:0;s:15:"pay_with_credit";i:3;s:23:"send_orders_immediately";i:1;s:12:"display_name";s:17:"China Express 168";s:23:"inherited_restaurant_id";i:0;s:9:"is_locked";i:0;s:10:"created_on";s:19:"2014-06-28 19:40:27";s:11:"modified_at";s:19:"2023-06-05 22:26:30";s:7:"street1";s:20:"4248 S Wentworth Ave";s:7:"street2";s:0:"";s:4:"city";s:7:"Chicago";s:5:"state";s:2:"IL";s:3:"zip";s:5:"60609";s:5:"suite";s:0:"";s:13:"primary_phone";s:15:"(773) 268-3823 ";s:12:"second_phone";s:0:"";s:11:"primary_fax";s:14:"(773) 268-3818";s:5:"email";s:26:"orders@no1chinaexpress.com";s:18:"notification_email";s:24:"china168.fooda@gmail.com";s:14:"accepted_cards";s:23:"CASH|VISA|MC|DISC|AMEX|";s:18:"ordering_is_closed";i:0;s:28:"public_ordering_closed_until";s:19:"0000-00-00 00:00:00";s:19:"delay_under_minutes";i:10;s:18:"delay_over_minutes";i:25;s:25:"delivery_order_delay_type";i:2;s:27:"delivery_delay_under_amount";i:1500;s:25:"delivery_amount_per_delay";i:0;s:27:"delivery_delay_time_minutes";i:0;s:28:"delivery_delay_under_minutes";i:50;s:27:"delivery_delay_over_minutes";i:70;s:16:"delivery_minimum";i:800;s:13:"order_minimum";i:0;s:18:"order_minimum_card";i:0;s:21:"order_sending_methods";i:121;s:18:"order_sending_type";i:1;s:14:"sms_is_enabled";i:0;s:17:"sms_require_click";i:0;s:23:"sms_click_failure_retry";i:0;s:23:"sms_click_failure_phone";i:0;s:18:"phone_notification";i:1;s:25:"phone_notification_number";s:14:"(773) 268-3823";s:27:"phone_notification_throttle";i:0;s:10:"is_deleted";i:0;s:15:"delivery_charge";d:0;s:20:"delivery_charge_type";i:1;s:23:"minimum_delivery_charge";i:100;s:13:"mobile_number";s:14:"(773) 922-0578";s:8:"latitude";d:41.8170036;s:9:"longitude";d:-87.6316443;s:15:"manual_position";i:0;s:13:"pdf_menu_file";i:0;s:19:"checkout_return_url";s:66:"http://www.eatchinaexpress.com/chinaexpress/&#63;form=page&id=2417";s:16:"show_pickup_time";i:1;s:14:"pickup_message";s:0:"";s:16:"delivery_message";s:0:"";s:14:"dinein_message";s:0:"";s:29:"additional_order_time_message";s:0:"";s:29:"select_menu_from_current_time";i:0;s:23:"pizza_option_percentage";d:0.5;s:10:"custom_url";s:0:"";s:18:"delivery_zip_codes";s:0:"";s:15:"delivery_radius";d:0;s:32:"encoded_delivery_radius_polyline";s:0:"";s:9:"url_alias";s:17:"china_express_168";s:34:"remote_web_service_notification_id";i:0;s:18:"external_vendor_id";i:0;s:15:"has_no_ordering";i:0;s:12:"option_label";s:0:"";s:13:"topping_label";s:11:"Preparation";s:11:"extra_label";s:0:"";s:18:"option_description";s:0:"";s:17:"extra_description";s:0:"";s:19:"topping_description";s:0:"";s:24:"instructions_description";s:0:"";s:19:"per_order_surcharge";d:0;s:24:"per_order_surcharge_type";i:2;s:24:"per_order_surcharge_name";s:0:"";s:30:"per_order_surcharge_order_type";s:0:"";s:26:"voice_notification_message";s:35:"Thank You.  Please enter your order";s:22:"require_phone_keypress";i:1;s:18:"phone_wait_minutes";i:0;s:16:"phone_call_tries";i:5;s:11:"amd_enabled";i:0;s:21:"sms_upon_call_failure";i:1;s:17:"is_directory_only";i:0;s:15:"hide_all_prices";i:0;s:32:"custom_pickup_order_confirmation";s:466:"--------------Friendly Reminder PLEASE READ------------\r\n
    \r\n
    Order paid with a Credit Card will require Credit Card and ID presented at the time of PICKUP.  Name must be match on both credit card and ID.  Pictures must be match with the ID.\r\n
    \r\n
    Order placed after 15 mins before closing time may be rejected by restaurant staff.  Please call 773-268-3823 to confirm your order if you are placing your order during these time frame.  All rejected order will be refunded.";s:34:"custom_delivery_order_confirmation";s:470:"--------------Friendly Reminder PLEASE READ------------\r\n
    \r\n
    Order paid with a Credit Card will require Credit Card and ID presented at the time of DELIVERY.  Name must be match on both credit card and ID.  Pictures must be match with the ID.  \r\n
    \r\n
    Order placed after 30 mins before closing time may be rejected by restaurant staff.  Please call 773-268-3823 to confirm your order if you are placing your order during these time frame.  All rejected order will be refunded.";s:23:"custom_rejection_markup";s:0:"";s:25:"custom_order_time_snippet";s:0:"";s:23:"disallow_multiple_menus";i:0;s:27:"permit_time_error_overrides";i:0;s:12:"freepos_tax1";d:0;s:12:"freepos_tax2";d:0;s:12:"freepos_tax3";d:0;s:23:"payment_processor_txkey";s:0:"";s:25:"payment_processor_loginid";s:0:"";s:28:"payment_processor_public_key";s:0:"";s:10:"dress_code";s:0:"";s:7:"parking";s:0:"";s:13:"entertainment";s:0:"";s:21:"custom_credit_message";s:0:"";s:28:"custom_delivery_zone_message";s:0:"";s:21:"has_store_hour_ranges";i:0;s:21:"has_no_default_prices";i:0;s:28:"custom_time_rejection_markup";s:0:"";s:16:"max_advance_days";i:28;s:30:"group_order_delivery_lead_time";i:60;s:28:"group_order_pickup_lead_time";i:20;s:14:"hide_asap_time";i:0;s:31:"alternate_delivery_destinations";s:0:"";s:16:"has_group_orders";i:0;s:20:"default_payment_type";i:0;s:18:"default_order_type";s:1:"0";s:8:"is_store";i:0;s:25:"require_prep_time_opening";i:0;s:16:"price_sort_order";s:0:"";s:32:"permit_admin_time_error_override";i:0;s:17:"delivery_map_file";s:0:"";s:26:"delivery_charge_is_taxable";i:0;s:29:"delivery_allowed_till_closing";i:1;s:12:"cvv_required";i:1;s:24:"billing_address_required";i:1;s:15:"billing_options";i:1;s:18:"use_driving_radius";i:0;s:25:"show_future_order_minutes";i:75;s:17:"no_cc_at_delivery";i:1;s:23:"send_end_of_day_summary";i:0;s:6:"cc_fee";s:0:"";s:16:"asap_orders_only";i:0;s:12:"asap_no_time";i:0;s:17:"delivery_fee_name";s:0:"";s:22:"additional_fee_taxable";i:0;s:7:"url_tag";s:17:"china-express-168";s:8:"position";i:0;s:34:"label_instead_special_instructions";s:31:"FIVE STARS REWARD CARD PHONE #:";s:12:"cuisine_type";s:7:"Chinese";s:20:"same_day_orders_only";i:0;s:18:"hours_text_enabled";i:0;s:10:"hours_text";s:0:"";s:14:"hours_text_url";s:0:"";s:17:"order_button_text";s:0:"";s:25:"hide_special_instructions";i:0;s:29:"special_instructions_required";i:0;s:28:"special_instructions_details";s:0:"";s:23:"throttle_period_minutes";i:0;s:13:"throttle_rate";i:0;s:22:"delivery_throttle_rate";i:0;s:34:"show_future_order_delivery_minutes";i:75;s:32:"show_future_order_pickup_minutes";i:75;s:30:"coupon_global_terms_conditions";s:0:"";s:22:"prep_time_message_type";s:7:"DEFAULT";s:24:"prep_time_message_pickup";s:0:"";s:26:"prep_time_message_delivery";s:0:"";s:24:"prep_time_message_dinein";s:0:"";s:22:"default_tip_percentage";i:0;s:22:"combined_throttle_rate";i:0;s:19:"allow_tip_at_pickup";i:0;s:11:"default_tip";s:1:"0";s:12:"allow_no_tip";i:1;s:25:"hide_0_tip_on_order_sheet";i:0;s:15:"pay_with_paypal";i:7;s:15:"cc_fee_includes";s:0:"";s:10:"image_file";s:0:"";s:21:"show_cutlery_checkbox";i:0;s:22:"cutlery_checkbox_label";s:0:"";s:21:"show_napkins_checkbox";i:0;s:22:"napkins_checkbox_label";s:0:"";s:33:"items_special_instructions_length";i:0;s:16:"bag_fees_enabled";i:0;s:18:"is_bag_fee_taxable";i:0;s:20:"bags_formula_enabled";i:0;s:28:"bags_formula_count_per_price";i:0;s:18:"bags_formula_price";i:0;s:21:"hold_calls_until_open";i:0;s:25:"min_online_payment_amount";i:0;s:28:"order_status_webhook_enabled";i:0;s:6:"pos_id";s:0:"";s:12:"pos_password";s:0:"";s:18:"time_slots_enabled";i:0;s:15:"time_slots_view";i:0;s:32:"time_slots_delivery_orders_limit";i:0;s:30:"time_slots_pickup_orders_limit";i:0;s:32:"time_slots_combined_orders_limit";i:0;s:25:"custom_time_slots_enabled";i:0;s:22:"supermenu_sync_enabled";i:0;s:17:"delivery_tax_code";N;s:23:"additional_fee_tax_code";N;s:11:"cc_fee_name";s:0:"";s:16:"tip_display_name";N;s:21:"tip_highlight_enabled";i:0;s:26:"third_party_restaurant_fee";i:0;s:24:"third_party_customer_fee";i:0;s:25:"checkout_message_location";i:0;s:16:"checkout_message";N;s:29:"shipday_auto_dispatch_enabled";i:0;s:36:"third_party_optimal_delivery_enabled";i:0;s:31:"third_party_delivery_radius_min";s:4:"0.00";s:31:"third_party_delivery_radius_max";s:4:"0.00";s:17:"hide_driver_notes";i:0;s:19:"driver_notes_length";i:0;s:35:"third_party_delivery_radius_enabled";i:0;s:28:"pickup_ordering_closed_until";N;s:30:"delivery_ordering_closed_until";N;s:28:"dinein_ordering_closed_until";N;s:16:"is_on_springroll";i:0;s:13:"google_rating";s:4:"0.00";s:18:"google_price_level";i:0;s:35:"third_party_restaurant_distance_fee";i:0;s:33:"third_party_customer_distance_fee";i:0;}s:11:"\x00*\x00original";a:300:{s:2:"id";i:4056;s:10:"account_id";i:3526;s:11:"monday_open";s:8:"11:00:00";s:12:"tuesday_open";s:8:"11:00:00";s:14:"wednesday_open";s:8:"11:00:00";s:13:"thursday_open";s:8:"11:00:00";s:11:"friday_open";s:8:"11:00:00";s:13:"saturday_open";s:8:"12:00:00";s:11:"sunday_open";s:8:"12:00:00";s:13:"monday_closed";s:8:"22:00:00";s:14:"tuesday_closed";s:8:"22:00:00";s:16:"wednesday_closed";s:8:"22:00:00";s:15:"thursday_closed";s:8:"22:00:00";s:13:"friday_closed";s:8:"23:00:00";s:15:"saturday_closed";s:8:"23:00:00";s:13:"sunday_closed";s:8:"23:00:00";s:13:"monday_open_2";s:8:"11:00:00";s:14:"tuesday_open_2";s:8:"11:00:00";s:16:"wednesday_open_2";s:8:"11:00:00";s:15:"thursday_open_2";s:8:"11:00:00";s:13:"friday_open_2";s:8:"11:00:00";s:15:"saturday_open_2";s:8:"12:00:00";s:13:"sunday_open_2";s:8:"12:00:00";s:15:"monday_closed_2";s:8:"22:00:00";s:16:"tuesday_closed_2";s:8:"22:00:00";s:18:"wednesday_closed_2";s:8:"22:00:00";s:17:"thursday_closed_2";s:8:"22:00:00";s:15:"friday_closed_2";s:8:"23:00:00";s:17:"saturday_closed_2";s:8:"23:00:00";s:15:"sunday_closed_2";s:8:"23:00:00";s:20:"delivery_monday_open";s:8:"11:00:00";s:21:"delivery_tuesday_open";s:8:"11:00:00";s:23:"delivery_wednesday_open";s:8:"11:00:00";s:22:"delivery_thursday_open";s:8:"11:00:00";s:20:"delivery_friday_open";s:8:"11:00:00";s:22:"delivery_saturday_open";s:8:"12:00:00";s:20:"delivery_sunday_open";s:8:"12:00:00";s:22:"delivery_monday_closed";s:8:"22:00:00";s:23:"delivery_tuesday_closed";s:8:"22:00:00";s:25:"delivery_wednesday_closed";s:8:"22:00:00";s:24:"delivery_thursday_closed";s:8:"22:00:00";s:22:"delivery_friday_closed";s:8:"23:00:00";s:24:"delivery_saturday_closed";s:8:"23:00:00";s:22:"delivery_sunday_closed";s:8:"23:00:00";s:22:"delivery_monday_open_2";s:8:"11:00:00";s:23:"delivery_tuesday_open_2";s:8:"11:00:00";s:25:"delivery_wednesday_open_2";s:8:"11:00:00";s:24:"delivery_thursday_open_2";s:8:"11:00:00";s:22:"delivery_friday_open_2";s:8:"11:00:00";s:24:"delivery_saturday_open_2";s:8:"12:00:00";s:22:"delivery_sunday_open_2";s:8:"12:00:00";s:24:"delivery_monday_closed_2";s:8:"22:00:00";s:25:"delivery_tuesday_closed_2";s:8:"22:00:00";s:27:"delivery_wednesday_closed_2";s:8:"22:00:00";s:26:"delivery_thursday_closed_2";s:8:"22:00:00";s:24:"delivery_friday_closed_2";s:8:"23:00:00";s:26:"delivery_saturday_closed_2";s:8:"23:00:00";s:24:"delivery_sunday_closed_2";s:8:"23:00:00";s:13:"two_hour_sets";i:0;s:23:"separate_delivery_hours";i:1;s:8:"timezone";i:2;s:10:"tax_rate_2";d:0;s:8:"tax_rate";d:10.75;s:16:"tax_rate_label_2";s:0:"";s:14:"tax_rate_label";s:0:"";s:19:"is_tax_2_cumulative";i:0;s:12:"has_delivery";i:1;s:11:"has_dine_in";i:0;s:10:"has_pickup";i:1;s:10:"allow_tips";i:1;s:19:"show_tip_calculator";i:1;s:16:"closed_on_monday";i:0;s:17:"closed_on_tuesday";i:0;s:19:"closed_on_wednesday";i:0;s:18:"closed_on_thursday";i:0;s:16:"closed_on_friday";i:0;s:18:"closed_on_saturday";i:0;s:16:"closed_on_sunday";i:0;s:25:"delivery_closed_on_monday";i:0;s:26:"delivery_closed_on_tuesday";i:0;s:28:"delivery_closed_on_wednesday";i:0;s:27:"delivery_closed_on_thursday";i:0;s:25:"delivery_closed_on_friday";i:0;s:27:"delivery_closed_on_saturday";i:0;s:25:"delivery_closed_on_sunday";i:0;s:16:"order_delay_type";i:2;s:18:"delay_under_amount";i:1500;s:16:"amount_per_delay";i:0;s:18:"delay_time_minutes";i:0;s:13:"pay_at_pickup";i:1;s:22:"pay_with_house_account";i:0;s:15:"pay_with_credit";i:3;s:23:"send_orders_immediately";i:1;s:12:"display_name";s:17:"China Express 168";s:23:"inherited_restaurant_id";i:0;s:9:"is_locked";i:0;s:10:"created_on";s:19:"2014-06-28 19:40:27";s:11:"modified_at";s:19:"2023-06-05 22:26:30";s:7:"street1";s:20:"4248 S Wentworth Ave";s:7:"street2";s:0:"";s:4:"city";s:7:"Chicago";s:5:"state";s:2:"IL";s:3:"zip";s:5:"60609";s:5:"suite";s:0:"";s:13:"primary_phone";s:15:"(773) 268-3823 ";s:12:"second_phone";s:0:"";s:11:"primary_fax";s:14:"(773) 268-3818";s:5:"email";s:26:"orders@no1chinaexpress.com";s:18:"notification_email";s:24:"china168.fooda@gmail.com";s:14:"accepted_cards";s:23:"CASH|VISA|MC|DISC|AMEX|";s:18:"ordering_is_closed";i:0;s:28:"public_ordering_closed_until";s:19:"0000-00-00 00:00:00";s:19:"delay_under_minutes";i:10;s:18:"delay_over_minutes";i:25;s:25:"delivery_order_delay_type";i:2;s:27:"delivery_delay_under_amount";i:1500;s:25:"delivery_amount_per_delay";i:0;s:27:"delivery_delay_time_minutes";i:0;s:28:"delivery_delay_under_minutes";i:50;s:27:"delivery_delay_over_minutes";i:70;s:16:"delivery_minimum";i:800;s:13:"order_minimum";i:0;s:18:"order_minimum_card";i:0;s:21:"order_sending_methods";i:121;s:18:"order_sending_type";i:1;s:14:"sms_is_enabled";i:0;s:17:"sms_require_click";i:0;s:23:"sms_click_failure_retry";i:0;s:23:"sms_click_failure_phone";i:0;s:18:"phone_notification";i:1;s:25:"phone_notification_number";s:14:"(773) 268-3823";s:27:"phone_notification_throttle";i:0;s:10:"is_deleted";i:0;s:15:"delivery_charge";d:0;s:20:"delivery_charge_type";i:1;s:23:"minimum_delivery_charge";i:100;s:13:"mobile_number";s:14:"(773) 922-0578";s:8:"latitude";d:41.8170036;s:9:"longitude";d:-87.6316443;s:15:"manual_position";i:0;s:13:"pdf_menu_file";i:0;s:19:"checkout_return_url";s:66:"http://www.eatchinaexpress.com/chinaexpress/&#63;form=page&id=2417";s:16:"show_pickup_time";i:1;s:14:"pickup_message";s:0:"";s:16:"delivery_message";s:0:"";s:14:"dinein_message";s:0:"";s:29:"additional_order_time_message";s:0:"";s:29:"select_menu_from_current_time";i:0;s:23:"pizza_option_percentage";d:0.5;s:10:"custom_url";s:0:"";s:18:"delivery_zip_codes";s:0:"";s:15:"delivery_radius";d:0;s:32:"encoded_delivery_radius_polyline";s:0:"";s:9:"url_alias";s:17:"china_express_168";s:34:"remote_web_service_notification_id";i:0;s:18:"external_vendor_id";i:0;s:15:"has_no_ordering";i:0;s:12:"option_label";s:0:"";s:13:"topping_label";s:11:"Preparation";s:11:"extra_label";s:0:"";s:18:"option_description";s:0:"";s:17:"extra_description";s:0:"";s:19:"topping_description";s:0:"";s:24:"instructions_description";s:0:"";s:19:"per_order_surcharge";d:0;s:24:"per_order_surcharge_type";i:2;s:24:"per_order_surcharge_name";s:0:"";s:30:"per_order_surcharge_order_type";s:0:"";s:26:"voice_notification_message";s:35:"Thank You.  Please enter your order";s:22:"require_phone_keypress";i:1;s:18:"phone_wait_minutes";i:0;s:16:"phone_call_tries";i:5;s:11:"amd_enabled";i:0;s:21:"sms_upon_call_failure";i:1;s:17:"is_directory_only";i:0;s:15:"hide_all_prices";i:0;s:32:"custom_pickup_order_confirmation";s:466:"--------------Friendly Reminder PLEASE READ------------\r\n
    \r\n
    Order paid with a Credit Card will require Credit Card and ID presented at the time of PICKUP.  Name must be match on both credit card and ID.  Pictures must be match with the ID.\r\n
    \r\n
    Order placed after 15 mins before closing time may be rejected by restaurant staff.  Please call 773-268-3823 to confirm your order if you are placing your order during these time frame.  All rejected order will be refunded.";s:34:"custom_delivery_order_confirmation";s:470:"--------------Friendly Reminder PLEASE READ------------\r\n
    \r\n
    Order paid with a Credit Card will require Credit Card and ID presented at the time of DELIVERY.  Name must be match on both credit card and ID.  Pictures must be match with the ID.  \r\n
    \r\n
    Order placed after 30 mins before closing time may be rejected by restaurant staff.  Please call 773-268-3823 to confirm your order if you are placing your order during these time frame.  All rejected order will be refunded.";s:23:"custom_rejection_markup";s:0:"";s:25:"custom_order_time_snippet";s:0:"";s:23:"disallow_multiple_menus";i:0;s:27:"permit_time_error_overrides";i:0;s:12:"freepos_tax1";d:0;s:12:"freepos_tax2";d:0;s:12:"freepos_tax3";d:0;s:23:"payment_processor_txkey";s:0:"";s:25:"payment_processor_loginid";s:0:"";s:28:"payment_processor_public_key";s:0:"";s:10:"dress_code";s:0:"";s:7:"parking";s:0:"";s:13:"entertainment";s:0:"";s:21:"custom_credit_message";s:0:"";s:28:"custom_delivery_zone_message";s:0:"";s:21:"has_store_hour_ranges";i:0;s:21:"has_no_default_prices";i:0;s:28:"custom_time_rejection_markup";s:0:"";s:16:"max_advance_days";i:28;s:30:"group_order_delivery_lead_time";i:60;s:28:"group_order_pickup_lead_time";i:20;s:14:"hide_asap_time";i:0;s:31:"alternate_delivery_destinations";s:0:"";s:16:"has_group_orders";i:0;s:20:"default_payment_type";i:0;s:18:"default_order_type";s:1:"0";s:8:"is_store";i:0;s:25:"require_prep_time_opening";i:0;s:16:"price_sort_order";s:0:"";s:32:"permit_admin_time_error_override";i:0;s:17:"delivery_map_file";s:0:"";s:26:"delivery_charge_is_taxable";i:0;s:29:"delivery_allowed_till_closing";i:1;s:12:"cvv_required";i:1;s:24:"billing_address_required";i:1;s:15:"billing_options";i:1;s:18:"use_driving_radius";i:0;s:25:"show_future_order_minutes";i:75;s:17:"no_cc_at_delivery";i:1;s:23:"send_end_of_day_summary";i:0;s:6:"cc_fee";s:0:"";s:16:"asap_orders_only";i:0;s:12:"asap_no_time";i:0;s:17:"delivery_fee_name";s:0:"";s:22:"additional_fee_taxable";i:0;s:7:"url_tag";s:17:"china-express-168";s:8:"position";i:0;s:34:"label_instead_special_instructions";s:31:"FIVE STARS REWARD CARD PHONE #:";s:12:"cuisine_type";s:7:"Chinese";s:20:"same_day_orders_only";i:0;s:18:"hours_text_enabled";i:0;s:10:"hours_text";s:0:"";s:14:"hours_text_url";s:0:"";s:17:"order_button_text";s:0:"";s:25:"hide_special_instructions";i:0;s:29:"special_instructions_required";i:0;s:28:"special_instructions_details";s:0:"";s:23:"throttle_period_minutes";i:0;s:13:"throttle_rate";i:0;s:22:"delivery_throttle_rate";i:0;s:34:"show_future_order_delivery_minutes";i:75;s:32:"show_future_order_pickup_minutes";i:75;s:30:"coupon_global_terms_conditions";s:0:"";s:22:"prep_time_message_type";s:7:"DEFAULT";s:24:"prep_time_message_pickup";s:0:"";s:26:"prep_time_message_delivery";s:0:"";s:24:"prep_time_message_dinein";s:0:"";s:22:"default_tip_percentage";i:0;s:22:"combined_throttle_rate";i:0;s:19:"allow_tip_at_pickup";i:0;s:11:"default_tip";s:1:"0";s:12:"allow_no_tip";i:1;s:25:"hide_0_tip_on_order_sheet";i:0;s:15:"pay_with_paypal";i:7;s:15:"cc_fee_includes";s:0:"";s:10:"image_file";s:0:"";s:21:"show_cutlery_checkbox";i:0;s:22:"cutlery_checkbox_label";s:0:"";s:21:"show_napkins_checkbox";i:0;s:22:"napkins_checkbox_label";s:0:"";s:33:"items_special_instructions_length";i:0;s:16:"bag_fees_enabled";i:0;s:18:"is_bag_fee_taxable";i:0;s:20:"bags_formula_enabled";i:0;s:28:"bags_formula_count_per_price";i:0;s:18:"bags_formula_price";i:0;s:21:"hold_calls_until_open";i:0;s:25:"min_online_payment_amount";i:0;s:28:"order_status_webhook_enabled";i:0;s:6:"pos_id";s:0:"";s:12:"pos_password";s:0:"";s:18:"time_slots_enabled";i:0;s:15:"time_slots_view";i:0;s:32:"time_slots_delivery_orders_limit";i:0;s:30:"time_slots_pickup_orders_limit";i:0;s:32:"time_slots_combined_orders_limit";i:0;s:25:"custom_time_slots_enabled";i:0;s:22:"supermenu_sync_enabled";i:0;s:17:"delivery_tax_code";N;s:23:"additional_fee_tax_code";N;s:11:"cc_fee_name";s:0:"";s:16:"tip_display_name";N;s:21:"tip_highlight_enabled";i:0;s:26:"third_party_restaurant_fee";i:0;s:24:"third_party_customer_fee";i:0;s:25:"checkout_message_location";i:0;s:16:"checkout_message";N;s:29:"shipday_auto_dispatch_enabled";i:0;s:36:"third_party_optimal_delivery_enabled";i:0;s:31:"third_party_delivery_radius_min";s:4:"0.00";s:31:"third_party_delivery_radius_max";s:4:"0.00";s:17:"hide_driver_notes";i:0;s:19:"driver_notes_length";i:0;s:35:"third_party_delivery_radius_enabled";i:0;s:28:"pickup_ordering_closed_until";N;s:30:"delivery_ordering_closed_until";N;s:28:"dinein_ordering_closed_until";N;s:16:"is_on_springroll";i:0;s:13:"google_rating";s:4:"0.00";s:18:"google_price_level";i:0;s:35:"third_party_restaurant_distance_fee";i:0;s:33:"third_party_customer_distance_fee";i:0;}s:13:"\x00*\x00dateFormat";N;s:9:"\x00*\x00events";a:0:{}s:14:"\x00*\x00observables";a:0:{}s:12:"\x00*\x00relations";a:0:{}s:10:"\x00*\x00touches";a:0:{}s:10:"\x00*\x00guarded";a:1:{i:0;s:1:"*";}s:17:"\x00*\x00_uploadAccount";N;}}
    """
    
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
classes
/
Cache.class.php
            return $i->del($key);
        }
        return false;
    }
 
    public static function DeleteMany(array $keys) {
        if ($i = static::getInstance()) {
            return $i->del($keys);
        }
        return false;
    }
 
    private static function RememberType($type, $allowNull, $key, callable $generator, $expire = 86400) {
        if (!static::getInstance()) {
            return false;
        }
 
        if ($type) {
            $notFound = $type == 'bool'? null : false;
            $value = static::GetType($type, $key, $allowNull, $notFound);
            if ($value !== $notFound) {
                return $value;
            }
        } else {
            if ($value = static::Get($key)) {
                return $value;
            }
        }
 
        $value = $generator();
        if (is_null($value) && !$allowNull) { //skips saving a null value if these are forbidden
            return null;
        }
        static::Set($key, $type? serialize($value) : $value, $expire);
 
        return $value;
    }
 
    /**
     * If the value for $key is not found, it's generated using $generator and then, stored for further uses.
Arguments
  1. "array"
    
  2. "restaurants_3526_display_name_1"
    
  3. true
    
  4. false
    
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
classes
/
Cache.class.php
     * @param string   $key
     * @param callable $generator
     * @param bool     $allowNull
     * @param int      $expire
     * @return null|bool|object
     */
    public static function RememberObject($key, callable $generator, $allowNull = false, $expire = 86400) {
        return static::RememberType('object', $allowNull, $key, $generator, $expire);
    }
 
    /**
     * If the value for $key is not found, it's generated using $generator and then, stored for further uses.
     * @param string   $key
     * @param callable $generator
     * @param bool     $allowNull
     * @param int      $expire
     * @return null|bool|array
     */
    public static function RememberArray($key, callable $generator, $allowNull = false, $expire = 86400) {
        return static::RememberType('array', $allowNull, $key, $generator, $expire);
    }
 
    /**
     * If the value for $key is not found, it's generated using $generator and then, stored for further uses.
     * @param string   $key
     * @param callable $generator
     * @param int      $expire
     * @return null|bool
     */
    public static function RememberBoolean($key, callable $generator, $expire = 86400) {
        return static::RememberType('array', false, $key, $generator, $expire);
    }
}
 
Arguments
  1. "array"
    
  2. true
    
  3. "restaurants_3526_display_name_1"
    
  4. Closure {
      class: "Account"
      use: {
        $aid: 3526
        $orderBy: "display_name"
        $activeOnly: true
      }
    }
    
  5. 86400
    
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
classes
/
Account.class.php
     * @param int    $aid
     * @param string $orderBy One of: position, id, display_name
     * @param bool   $activeOnly
     * @return Restaurant[]|null
     * @see Restaurant::clearCacheByAccountId() so you can clean up the cache keys
     */
    public static function getAllRestaurantsByAccountId($aid, $orderBy = 'display_name', $activeOnly = false) {
        $cacheKey = "restaurants_{$aid}_{$orderBy}_".($activeOnly? 1 : 0);
 
        return Cache::RememberArray($cacheKey, function () use ($aid, $orderBy, $activeOnly) {
            $list = Restaurant::isDeleted(false)->where('account_id', $aid);
            if ($activeOnly) {
                $list->where('is_locked', false);
            }
            if (in_array($orderBy, ['position', 'id', 'display_name'])) {
                $list->orderBy($orderBy);
            }
 
            return $list->get()->all()?: null;
        }, true);
    }
 
    /**
     * All restaurants for the current account which are not deleted and, optionally, not locked ($activeOnly)
     * @param string $orderBy One of: position, id, display_name
     * @param bool   $activeOnly
     * @return Restaurant[]|null
     */
    public function getAllRestaurants($orderBy = 'display_name', $activeOnly = false) {
        return self::getAllRestaurantsByAccountId($this->id, $orderBy, $activeOnly);
    }
 
    public static function checkIfRestaurantPhoneNumberExistsWithinAReseller($rid, $phone) {
        // We start by validating and formatting the given phone number
        $pv = new PhoneValidator($phone);
 
        // If the phone number is not valid, we return
        if ($phone == '' || !$pv->validate()) {
            return '';
        }
Arguments
  1. "restaurants_3526_display_name_1"
    
  2. Closure {
      class: "Account"
      use: {
        $aid: 3526
        $orderBy: "display_name"
        $activeOnly: true
      }
    }
    
  3. true
    
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
classes
/
Account.class.php
            $list = Restaurant::isDeleted(false)->where('account_id', $aid);
            if ($activeOnly) {
                $list->where('is_locked', false);
            }
            if (in_array($orderBy, ['position', 'id', 'display_name'])) {
                $list->orderBy($orderBy);
            }
 
            return $list->get()->all()?: null;
        }, true);
    }
 
    /**
     * All restaurants for the current account which are not deleted and, optionally, not locked ($activeOnly)
     * @param string $orderBy One of: position, id, display_name
     * @param bool   $activeOnly
     * @return Restaurant[]|null
     */
    public function getAllRestaurants($orderBy = 'display_name', $activeOnly = false) {
        return self::getAllRestaurantsByAccountId($this->id, $orderBy, $activeOnly);
    }
 
    public static function checkIfRestaurantPhoneNumberExistsWithinAReseller($rid, $phone) {
        // We start by validating and formatting the given phone number
        $pv = new PhoneValidator($phone);
 
        // If the phone number is not valid, we return
        if ($phone == '' || !$pv->validate()) {
            return '';
        }
 
        // Otherwise, we get the formatted number
        $formattedPhone = $pv->getPrettyNumber();
 
        $db_conn = DB::conn();
        $sql = "SELECT r.display_name FROM ".Restaurant::getTableName()." AS r INNER JOIN account AS a ON r.account_id = a.id WHERE a.reseller_user_id = ? AND TRIM(r.primary_phone) = ? LIMIT 1";
        $db_conn->bindParameter($sql, 1, $rid, "string");
        $db_conn->bindParameter($sql, 1, $formattedPhone, "string");
 
        $result = $db_conn->query($sql);
Arguments
  1. 3526
    
  2. "display_name"
    
  3. true
    
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
classes
/
Account.class.php
            return false;
        }
 
        if (!$restaurant->getPublicOrderingIsClosed()) {
            return 'ACTIVE';
        }
 
        if ($restaurant->getPublicOrderingIsClosedForever()) {
            return 'DISABLE';
        }
 
        return 'TEMP DISABLE';
    }
 
    public function getActiveRestaurants($order_by = 'display_name') {
        return $this->getAllRestaurants($order_by, true);
    }
 
    public function getRestaurantCount() {
        $restaurants = $this->getAllRestaurants('display_name', true);
 
        if (is_array($restaurants)) {
            return count($restaurants);
        }
        return 0;
    }
 
    /**
     * All restaurants for the given account which are not deleted and, optionally, not locked ($activeOnly)
     * @param int    $aid
     * @param string $orderBy One of: position, id, display_name
     * @param bool   $activeOnly
     * @return Restaurant[]|null
     * @see Restaurant::clearCacheByAccountId() so you can clean up the cache keys
     */
    public static function getAllRestaurantsByAccountId($aid, $orderBy = 'display_name', $activeOnly = false) {
        $cacheKey = "restaurants_{$aid}_{$orderBy}_".($activeOnly? 1 : 0);
 
        return Cache::RememberArray($cacheKey, function () use ($aid, $orderBy, $activeOnly) {
            $list = Restaurant::isDeleted(false)->where('account_id', $aid);
Arguments
  1. "display_name"
    
  2. true
    
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
controllers
/
customer.php
if (!$customDomainSet && $_REQUEST['aid'] != $account->getUrlTag()) {
    $uri = str_ireplace($_REQUEST['aid'], $account->getUrlTag(), $_SERVER['REQUEST_URI']);
    header('Location: '.$uri, true, 301);
    exit(0);
}
 
$_REQUEST['_SINGLE_RESTAURANT'] = false;
//if this is a child group order, we can "import" the restaurant and skip location selection
if (isset($_SESSION['group_order_id'])) {
    $restaurant = GroupOrder::find($_SESSION['group_order_id'])->restaurant;
    $_REQUEST['_SINGLE_RESTAURANT'] = true;
} elseif (isset($_SESSION['restaurant_id'])) {
    $restaurant = new Restaurant($_SESSION['restaurant_id']);
    if ($account->getId() != $restaurant->getAccountId()) {
        $restaurant = null;
    }
}
 
//if no restaurant chosen, if account only has 1 location, select it
if ($account->getRestaurantCount() == 1) {
    $_REQUEST['_SINGLE_RESTAURANT'] = true;
    if (!isset($restaurant) || !is_object($restaurant)) {
        $restaurant = $account->getDefaultRestaurant();
    }
}
 
if (isset($restaurant) && $restaurant) {
    $cart = Cart::clearCurrentIfRestaurantIsDifferent($restaurant);
    $_SESSION['restaurant_id'] = $restaurant->getId();
    $menus = $restaurant->getActiveMenus();
    if (count($menus) == 1) {
        $_REQUEST['_SINGLE_MENU'] = true;
    }
}
 
$domain = null;
//must be premium plan
if ($account->hasPermission(WHITELABEL)) {
    $domain = CustomDomain::getForAccount($account->getId());
}
/
home
/
deploy
/
EHungry-2-joel
/
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
  1. "/home/deploy/EHungry-2-joel/Web/controllers/customer.php"
    

Environment & details:

Key Value
aid
"order/lunch/party-tray-family-dinner/shrimp-party-tray"
empty
empty
Key Value
PHPSESSID
"3s80sjb0b339amb3h9p58sgr2i"
Key Value
loc
"en_US"
customer_account_id
3526
Key Value
UNIQUE_ID
"acNYvzO44AGYZigT_t4GSwAAAAk"
SCRIPT_URL
"/order/lunch/party-tray-family-dinner/shrimp-party-tray"
SCRIPT_URI
"http://www.eatchinaexpress.com.2.joel.ehungry.net/order/lunch/party-tray-family-dinner/shrimp-party-tray"
HTTP_HOST
"www.eatchinaexpress.com.2.joel.ehungry.net"
HTTP_X_REAL_IP
"216.73.216.187"
HTTP_X_CONFKEY
"Main_Domain:892"
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=3s80sjb0b339amb3h9p58sgr2i"
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.eatchinaexpress.com.2.joel.ehungry.net"
SERVER_ADDR
"127.0.0.1"
SERVER_PORT
"80"
REMOTE_ADDR
"216.73.216.187"
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
"35560"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.0"
REQUEST_METHOD
"GET"
QUERY_STRING
"aid=chinaexpress"
REQUEST_URI
"/order/lunch/party-tray-family-dinner/shrimp-party-tray"
SCRIPT_NAME
"/order/lunch/party-tray-family-dinner/shrimp-party-tray"
PHP_SELF
"/order/lunch/party-tray-family-dinner/shrimp-party-tray"
REQUEST_TIME_FLOAT
1774409919.843
REQUEST_TIME
1774409919
empty
0. Whoops\Handler\PrettyPageHandler