public function __get($var) { switch ($var) { case 'amount_front': $this->amount_front = round($this->amount / 100, 2); return $this->amount_front; break; case 'price_front': $this->price_front = $this->amount_front . ' ' . $this->currency; return $this->price_front; break; case 'json_data': $this->json_data = json_decode($this->log, true); return $this->json_data; break; case 'option_selection1': $this->option_selection1 = isset($this->json_data['option_selection1']) ? $this->json_data['option_selection1'] : '-'; return $this->option_selection1; break; case 'date_front': $this->date_front = date('Y-m-d H:i:s', $this->odate); return $this->date_front; break; case 'instance': try { $this->instance = erLhcoreClassInstance::getInstance(); } catch (Exception $e) { $this->instance = false; } return $this->instance; break; case 'customer_name': if ($this->instance !== false && $this->instance->client_title != '') { $this->customer_name = $this->instance->client_title; return $this->customer_name; } else { $this->customer_name = isset($this->json_data['payer_email']) ? $this->json_data['payer_email'] : ''; if (isset($this->json_data['first_name'])) { $this->customer_name .= "<br/>" . $this->json_data['first_name'] . ' ' . $this->json_data['last_name']; } return $this->customer_name; } break; default: break; } }
<?php $xmppservice_tab_enabled_pre = erLhcoreClassInstance::getInstance()->full_xmpp_chat_supported == 1;
<?php $parts_top_menu_chat_actions_enabled = erLhcoreClassInstance::getInstance()->chat_supported == 1;
<?php $speech_action_enabled = erLhcoreClassInstance::getInstance()->speech_supported == 1;
<?php $chat_chat_tabs_footprint_tab_tab_enabled = erLhcoreClassInstance::getInstance()->footprint_supported == 1;
<?php $operator_remarks_enabled = erLhcoreClassInstance::getInstance()->chatremarks_supported == 1;
var lhcbrowserOpeator = new LHCCoBrowserOperator(window,document,{'formsenabled':<?php erLhcoreClassInstance::getInstance()->cobrowse_forms_supported == 1 ? print 'true' : (print 'false'); ?> ,'lhcbase':'<?php echo (erLhcoreClassSystem::$httpsMode == true ? 'https://' : 'http://') . $_SERVER['HTTP_HOST']; echo erLhcoreClassDesign::baseurl('cobrowse/proxycss'); ?> ','httpsmode':<?php echo erLhcoreClassSystem::$httpsMode == true ? 'true' : 'false'; ?> ,'disablejs':<?php echo erLhcoreClassModelChatConfig::fetch('disable_js_execution')->current_value == 1 ? 'true' : 'false'; ?> ,options:{opcontrol:$('#status-icon-control'),opscroll:$('#sync-user-scroll'),opmouse:$('#show-operator-mouse'),scroll:$('#scroll-user-window')},'cpos':{w:<?php echo $browse->w; ?> ,wh:<?php echo $browse->wh; ?> },'cursor':'<?php echo erLhcoreClassModelChatConfig::fetch('explicit_http_mode')->current_value; ?> //<?php echo $_SERVER['HTTP_HOST']; echo erLhcoreClassDesign::design('images/icons/cursor.png'); ?> ','nodejssettings':{'nodejssocket':<?php echo json_encode(erLhcoreClassModelChatConfig::fetch('sharing_nodejs_sllocation')->current_value); ?> ,'nodejshost':<?php echo json_encode(erLhcoreClassModelChatConfig::fetch('sharing_nodejs_socket_host')->current_value);
<?php $operator_screenshot_enabled = erLhcoreClassInstance::getInstance()->screenshot_supported == 1;
<?php $user_menu_tabs_personal_canned_messages_tab = erLhcoreClassInstance::getInstance()->cannedmsg_supported == 1;
<?php $chat_onlineusers_section_map_online_tab_enabled = erLhcoreClassInstance::getInstance()->onlinevisitortrck_supported == 1;
<?php $information_tab_user_files_tab_enabled = erLhcoreClassInstance::getInstance()->files_supported == 1;
<?php $system_configuration_links_autoresponder_enabled = erLhcoreClassInstance::getInstance()->autoresponder_supported == 1;
<?php $system_configuration_tabs_generate_js_enabled = erLhcoreClassInstance::getInstance()->chat_supported == 1 || erLhcoreClassInstance::getInstance()->chatbox_supported == 1 || erLhcoreClassInstance::getInstance()->faq_supported == 1 || erLhcoreClassInstance::getInstance()->questionnaire_supported == 1;
<?php $chat_chat_tabs_actions_cobrowse_enabled = erLhcoreClassInstance::getInstance()->cobrowse_supported == 1;
<?php $system_configuration_proactive_enabled = erLhcoreClassInstance::getInstance()->proactive_supported == 1;
<?php $system_configuration_tabs_speech_enabled = erLhcoreClassInstance::getInstance()->speech_supported == 1;
<?php $pagelayouts_parts_modules_menu_chatbox_enabled = erLhcoreClassInstance::getInstance()->chatbox_supported == 1;
<?php $chat_lists_online_operators_enabled = erLhcoreClassInstance::getInstance()->operatorschat_supported == 1;
<?php $chat_translation_enabled = erLhcoreClassInstance::getInstance()->atranslations_supported == 1;
public function userEditPhotoPath($params) { $params['dir'] = 'var/userphoto/' . date('Y') . 'y/' . date('m') . '/' . date('d') . '/' . erLhcoreClassInstance::getInstance()->id . '/' . $params['storage_id'] . '/'; }
<?php $system_configuration_links_chatbox_embed_enabled = erLhcoreClassInstance::getInstance()->chatbox_supported == 1;
<?php $department_xmpp_enabled = erLhcoreClassInstance::getInstance()->xmpp_supported == 1;
public function __get($var) { switch ($var) { case 'settings': $this->settings = (include 'extension/xmppservice/settings/settings.ini.php'); if ($this->settings['ahosting'] == true) { $this->settings['subdomain'] = str_replace('.', '-', erLhcoreClassInstance::getInstance()->address); $this->settings['enabled'] = erLhcoreClassInstance::getInstance()->full_xmpp_chat_supported == 1; $this->settings['online_visitors_tracking'] = erLhcoreClassInstance::getInstance()->full_xmpp_visitors_tracking == 1; } return $this->settings; break; default: break; } }
<?php $chat_chat_tabs_actions_transfer_enabled = erLhcoreClassInstance::getInstance()->transfer_supported == 1;
<?php $information_tab_map_tab_enabled = erLhcoreClassInstance::getInstance()->onlinevisitortrck_supported == 1;
<?php $system_configuration_links_files_enabled = erLhcoreClassInstance::getInstance()->files_supported == 1;
<?php $chat_chat_tabs_actions_blockuser_enabled = erLhcoreClassInstance::getInstance()->blocked_supported;
<?php $tpl = erLhcoreClassTemplate::getInstance('lhsystem/timezone.tpl.php'); $instanceChat = erLhcoreClassInstance::getInstance(); $timezone = $instanceChat->time_zone; $date_format = $instanceChat->date_format; $date_hour_format = $instanceChat->date_hour_format; $date_date_hour_format = $instanceChat->date_date_hour_format; if (isset($_POST['StoreTimeZoneSettings'])) { $definition = array('TimeZone' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw'), 'DateFormat' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw'), 'DateFullFormat' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw'), 'DateHourFormat' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw')); if (!isset($_POST['csfr_token']) || !$currentUser->validateCSFRToken($_POST['csfr_token'])) { erLhcoreClassModule::redirect('system/timezone'); exit; } $form = new ezcInputForm(INPUT_POST, $definition); if ($form->hasValidData('TimeZone')) { $timezone = $form->TimeZone; } else { $timezone = ''; } if ($form->hasValidData('DateFormat')) { $date_format = $form->DateFormat; } else { $date_format = ''; } if ($form->hasValidData('DateFullFormat')) { $date_date_hour_format = $form->DateFullFormat; } else { $date_date_hour_format = ''; } if ($form->hasValidData('DateHourFormat')) {
<?php $system_configuration_links_cannedmsg_enabled = erLhcoreClassInstance::getInstance()->cannedmsg_supported == 1;
<?php if (erLhcoreClassInstance::getInstance()->is_active == false) { ?> <div class="alert alert-danger alert-dismissible" role="alert" style="max-width:1024px;margin:7px auto;"> <?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('pagelayout/pagelayout', 'Your service plan has expired.'); ?> <?php if (erConfigClassLhConfig::getInstance()->getSetting('site', 'hide_billing') == false) { ?> <a class="alert-link" href="<?php echo erLhcoreClassDesign::baseurl('instance/billing'); ?> " ><i class="material-icons">account_balance</i><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('pagelayout/pagelayout', 'Billing'); ?> </a> <?php } ?> </div> <?php }