├── .gitignore ├── README.md ├── instance ├── bootstrap │ └── bootstrap.php ├── classes │ ├── dbhandlers │ │ ├── directadmin.php │ │ ├── httpsocket.php │ │ └── mysql.php │ ├── erlhcoreclassinstance.php │ ├── erlhcoreclassinstanceapi.php │ ├── erlhcoreclassmodelinstance.php │ ├── erlhcoreclassmodelinstancealias.php │ ├── erlhcoreclassmodelinstanceinvoice.php │ ├── filter │ │ └── filter.php │ └── tcpdf_min │ │ ├── CHANGELOG.TXT │ │ ├── LICENSE.TXT │ │ ├── README.TXT │ │ ├── composer.json │ │ ├── config │ │ └── tcpdf_config.php │ │ ├── fonts │ │ ├── freeserif.ctg.z │ │ ├── freeserif.php │ │ ├── freeserif.z │ │ ├── freeserifb.ctg.z │ │ ├── freeserifb.php │ │ ├── freeserifb.z │ │ ├── freeserifbi.ctg.z │ │ ├── freeserifbi.php │ │ ├── freeserifbi.z │ │ ├── freeserifi.ctg.z │ │ ├── freeserifi.php │ │ ├── freeserifi.z │ │ ├── helvetica.php │ │ ├── helveticab.php │ │ ├── helveticabi.php │ │ ├── helveticai.php │ │ ├── symbol.php │ │ └── zapfdingbats.php │ │ ├── include │ │ ├── barcodes │ │ │ ├── datamatrix.php │ │ │ ├── pdf417.php │ │ │ └── qrcode.php │ │ ├── sRGB.icc │ │ ├── tcpdf_colors.php │ │ ├── tcpdf_filters.php │ │ ├── tcpdf_font_data.php │ │ ├── tcpdf_fonts.php │ │ ├── tcpdf_images.php │ │ └── tcpdf_static.php │ │ ├── tcpdf.php │ │ ├── tcpdf_autoconfig.php │ │ ├── tcpdf_barcodes_1d.php │ │ ├── tcpdf_barcodes_2d.php │ │ ├── tcpdf_import.php │ │ ├── tcpdf_parser.php │ │ └── tools │ │ ├── .htaccess │ │ ├── convert_fonts_examples.txt │ │ └── tcpdf_addfont.php ├── design │ └── instancetheme │ │ ├── expire_options │ │ └── expire_options.php │ │ └── tpl │ │ ├── lhinstance │ │ ├── aliases.tpl.php │ │ ├── assign.tpl.php │ │ ├── assigned │ │ │ └── widget.tpl.php │ │ ├── attr_int_1.tpl.php │ │ ├── attr_int_2.tpl.php │ │ ├── attr_int_3.tpl.php │ │ ├── client_data.tpl.php │ │ ├── edit.tpl.php │ │ ├── email.tpl.php │ │ ├── expire_options_mails │ │ │ ├── case1.tpl.php │ │ │ ├── case2.tpl.php │ │ │ └── case3.tpl.php │ │ ├── features.tpl.php │ │ ├── features_multiinclude.tpl.php │ │ ├── form.tpl.php │ │ ├── form_attributes.tpl.php │ │ ├── form_custom_fields_multiinclude.tpl.php │ │ ├── form_reseller.tpl.php │ │ ├── invoices.tpl.php │ │ ├── list.tpl.php │ │ ├── list │ │ │ └── search_panel.tpl.php │ │ ├── list_body.tpl.php │ │ ├── new.tpl.php │ │ ├── sms.tpl.php │ │ ├── tabs │ │ │ └── extension_tab_multiinclude.tpl.php │ │ ├── tabs_content │ │ │ └── extension_tab_multiinclude.tpl.php │ │ └── users_attributes.tpl.php │ │ └── pagelayouts │ │ └── parts │ │ └── top_menu_extension_multiinclude.tpl.php.tpl.php ├── doc │ ├── api.php │ ├── apiinstance.php │ ├── apikey.php │ ├── apireseller.php │ ├── changelog.txt │ ├── cron.sh │ ├── cron_lhc.sh │ ├── cron_workflow.log │ ├── cronjobs_resque │ │ ├── crontab.cron │ │ ├── webhook.sh │ │ └── workflow.sh │ ├── db_3.sql │ ├── doc.txt │ ├── fetch.php │ ├── install.sql │ ├── reseller_api.php │ ├── split_features.sql │ ├── structure.json │ └── updateview.log ├── modules │ ├── lhcron │ │ ├── delete_legacy.php │ │ ├── extensions_update.php │ │ ├── maintain.php │ │ ├── resque_archive.php │ │ ├── resque_delete.php │ │ ├── resque_webhook.php │ │ ├── resque_workflow.php │ │ ├── update_counter.php │ │ ├── update_instances.php │ │ ├── update_structure.php │ │ └── workflow.php │ └── lhinstance │ │ ├── apigetinstance.php │ │ ├── apikey.php │ │ ├── assign.php │ │ ├── billingpdf.php │ │ ├── deleteapikey.php │ │ ├── edit.php │ │ ├── fetchinstance.php │ │ ├── invoices.php │ │ ├── isfree.php │ │ ├── list.php │ │ ├── listexport.php │ │ ├── module.php │ │ ├── new.php │ │ ├── paypalipn.php │ │ ├── registerinstance.php │ │ ├── rslregisterinstance.php │ │ ├── rslsuspendinstance.php │ │ ├── rslterminateinstance.php │ │ ├── suspendinstance.php │ │ └── terminateinstance.php ├── pos │ ├── erlhcoreclassmodelinstance.php │ ├── erlhcoreclassmodelinstancealias.php │ └── erlhcoreclassmodelinstanceinvoice.php └── translations │ └── lt_LT │ └── translation.ts ├── instancecustomer ├── bootstrap │ └── bootstrap.php ├── classes │ ├── erlhcoreclassinstance.php │ ├── erlhcoreclassmodelinstance.php │ ├── erlhcoreclassmodelinstancealias.php │ ├── erlhcoreclassmodelinstanceinvoice.php │ ├── lhdb.php │ └── tcpdf_min │ │ ├── CHANGELOG.TXT │ │ ├── LICENSE.TXT │ │ ├── README.TXT │ │ ├── composer.json │ │ ├── config │ │ └── tcpdf_config.php │ │ ├── fonts │ │ ├── freeserif.ctg.z │ │ ├── freeserif.php │ │ ├── freeserif.z │ │ ├── freeserifb.ctg.z │ │ ├── freeserifb.php │ │ ├── freeserifb.z │ │ ├── freeserifbi.ctg.z │ │ ├── freeserifbi.php │ │ ├── freeserifbi.z │ │ ├── freeserifi.ctg.z │ │ ├── freeserifi.php │ │ ├── freeserifi.z │ │ ├── helvetica.php │ │ ├── helveticab.php │ │ ├── helveticabi.php │ │ ├── helveticai.php │ │ ├── symbol.php │ │ └── zapfdingbats.php │ │ ├── include │ │ ├── barcodes │ │ │ ├── datamatrix.php │ │ │ ├── pdf417.php │ │ │ └── qrcode.php │ │ ├── sRGB.icc │ │ ├── tcpdf_colors.php │ │ ├── tcpdf_filters.php │ │ ├── tcpdf_font_data.php │ │ ├── tcpdf_fonts.php │ │ ├── tcpdf_images.php │ │ └── tcpdf_static.php │ │ ├── tcpdf.php │ │ ├── tcpdf_autoconfig.php │ │ ├── tcpdf_barcodes_1d.php │ │ ├── tcpdf_barcodes_2d.php │ │ ├── tcpdf_import.php │ │ ├── tcpdf_parser.php │ │ └── tools │ │ ├── .htaccess │ │ ├── convert_fonts_examples.txt │ │ └── tcpdf_addfont.php ├── design │ └── instancecustomertheme │ │ ├── images │ │ ├── favicon.ico │ │ ├── general │ │ │ ├── logo.png │ │ │ └── logo_user.png │ │ └── notification │ │ │ └── notification.png │ │ └── tpl │ │ ├── lhchat │ │ ├── chat_tabs │ │ │ ├── actions │ │ │ │ ├── attatch_file_pre.tpl.php │ │ │ │ ├── blockuser_pre.tpl.php │ │ │ │ ├── cobrowse_pre.tpl.php │ │ │ │ ├── speech_pre.tpl.php │ │ │ │ └── transfer_pre.tpl.php │ │ │ ├── chat_translation_pre.tpl.php │ │ │ ├── chat_translation_tab_pre.tpl.php │ │ │ ├── footprint_tab_pre.tpl.php │ │ │ ├── footprint_tab_tab_pre.tpl.php │ │ │ ├── information_tab_user_files_tab_pre.tpl.php │ │ │ ├── map_tab_pre.tpl.php │ │ │ ├── map_tab_tab_pre.tpl.php │ │ │ ├── online_user_info_chats_pre.tpl.php │ │ │ ├── online_user_info_pre.tpl.php │ │ │ ├── online_user_info_tab_chats_pre.tpl.php │ │ │ ├── online_user_info_tab_pre.tpl.php │ │ │ ├── operator_remarks_pre.tpl.php │ │ │ ├── operator_remarks_tab_pre.tpl.php │ │ │ ├── operator_screenshot_pre.tpl.php │ │ │ └── operator_screenshot_tab_pre.tpl.php │ │ ├── customer_user_settings │ │ │ └── user_file_upload_pre.tpl.php │ │ ├── listchatconfig │ │ │ ├── screen_sharing.tpl.php │ │ │ └── screen_sharing_tab.tpl.php │ │ ├── lists │ │ │ └── angular_online_op_list_tab_pre.tpl.php │ │ ├── lists_panels │ │ │ └── basic_chat_enabled.tpl.php │ │ ├── onlineusers │ │ │ ├── section_map_online_pre.tpl.php │ │ │ ├── section_map_online_tab_pre.tpl.php │ │ │ ├── section_online_users_pre.tpl.php │ │ │ └── section_online_users_tab_pre.tpl.php │ │ ├── part │ │ │ ├── canned_messages_action_pre.tpl.php │ │ │ ├── offline_form_disabled.tpl.php │ │ │ ├── offline_form_pre.tpl.php │ │ │ ├── offline_form_startchat_disabled.tpl.php │ │ │ ├── offline_from_startchat_pre.tpl.php │ │ │ ├── speech_action_pre.tpl.php │ │ │ ├── translation_action_data.tpl.php │ │ │ └── translation_action_pre.tpl.php │ │ ├── startchat_pre.tpl.php │ │ └── widget_brand │ │ │ ├── chatbox.tpl.php │ │ │ ├── faq.tpl.php │ │ │ ├── live_help.tpl.php │ │ │ └── questionary.tpl.php │ │ ├── lhcobrowse │ │ ├── operatorinit.tpl.php │ │ └── userinit.tpl.php │ │ ├── lhdepartament │ │ └── xmpp_enabled.tpl.php │ │ ├── lhfront │ │ └── online_chat_enabled_pre.tpl.php │ │ ├── lhinstance │ │ ├── billing.tpl.php │ │ ├── billing_paypal.tpl.php │ │ ├── billinginstance.tpl.php │ │ ├── features_multiinclude.tpl.php │ │ ├── instance_features.tpl.php │ │ ├── instance_titles │ │ │ └── billing.tpl.php │ │ ├── mail │ │ │ ├── phone_hard_limit.tpl.php │ │ │ ├── phone_hard_limit_user.tpl.php │ │ │ ├── phone_soft_limit.tpl.php │ │ │ └── phone_soft_limit_user.tpl.php │ │ ├── sms.tpl.php │ │ ├── tabs │ │ │ └── feature_tab_multiinclude.tpl.php │ │ └── tabs_content │ │ │ └── feature_tab_multiinclude.tpl.php │ │ ├── lhsugarcrm │ │ └── sugarcrm_tab_enabled_pre.tpl.php │ │ ├── lhsystem │ │ ├── configuration_links │ │ │ ├── administrategeoconfig.tpl.php │ │ │ ├── autoresponder_pre.tpl.php │ │ │ ├── blockusers_pre.tpl.php │ │ │ ├── browse_offers_embed_pre.tpl.php │ │ │ ├── cannedmsg_pre.tpl.php │ │ │ ├── chat_embed_pre.tpl.php │ │ │ ├── chatbox_embed_pre.tpl.php │ │ │ ├── configuresmtp_pre.tpl.php │ │ │ ├── faq_embed_pre.tpl.php │ │ │ ├── files_pre.tpl.php │ │ │ ├── geoadjustment_pre.tpl.php │ │ │ ├── performupdate.tpl.php │ │ │ ├── proactive_pre.tpl.php │ │ │ ├── questionary_embed_pre.tpl.php │ │ │ ├── statistic_pre.tpl.php │ │ │ ├── translation_pre.tpl.php │ │ │ └── xmpp_pre.tpl.php │ │ ├── configuration_tabs │ │ │ ├── chat_pre.tpl.php │ │ │ ├── generate_js_pre.tpl.php │ │ │ └── speech_pre.tpl.php │ │ ├── languages.tpl.php │ │ └── update.tpl.php │ │ ├── lhuser │ │ ├── menu_tabs │ │ │ └── personal_canned_messages_tab_pre.tpl.php │ │ ├── menu_tabs_content │ │ │ └── personal_canned_messages_tab_pre.tpl.php │ │ └── pre_user_form.tpl.php │ │ ├── lhxmppservice │ │ └── xmppservice_tab_enabled_pre.tpl.php │ │ └── pagelayouts │ │ └── parts │ │ ├── can_use_chat.tpl.php │ │ ├── copyright_meta.tpl.php │ │ ├── modules_menu │ │ ├── browseoffer_pre.tpl.php │ │ ├── chatbox_pre.tpl.php │ │ ├── faq_pre.tpl.php │ │ ├── form_pre.tpl.php │ │ ├── modules_permissions.tpl.php │ │ └── questionary_pre.tpl.php │ │ ├── top_head_multiinclude.default.tpl.php │ │ ├── top_menu_chat_actions_pre.tpl.php │ │ ├── top_menu_extension_multiinclude.tpl.php.tpl.php │ │ └── top_menu_online_users_pre.tpl.php ├── doc │ └── install.txt ├── modules │ ├── lhcron │ │ └── remove_expired.php │ ├── lhinstance │ │ ├── billing.php │ │ ├── billinginstance.php │ │ ├── billingpdf.php │ │ ├── extensionsstructure.php │ │ ├── logmein.php │ │ ├── module.php │ │ ├── remove.php │ │ ├── setoperatorslimits.php │ │ └── workflow.php │ └── lhsystem │ │ ├── languages.php │ │ ├── module.php │ │ ├── timezone.php │ │ └── update.php ├── pos │ ├── erlhcoreclassmodelinstance.php │ ├── erlhcoreclassmodelinstancealias.php │ └── erlhcoreclassmodelinstanceinvoice.php ├── providers │ ├── InstanceWorker.php │ ├── InstanceWorkerArchive.php │ ├── InstanceWorkerDelete.php │ └── InstanceWorkerWebhook.php └── translations │ └── lt_LT │ └── translation.ts ├── instancecustomeroverride ├── design │ └── instancecustomeroverridetheme │ │ └── tpl │ │ ├── lhcobrowse │ │ ├── operatorinit.default.tpl.php │ │ └── userinit.default.tpl.php │ │ └── lhinstance │ │ └── billing_paypal.default.tpl.php └── doc │ └── README.md └── instanceoverride └── design └── instanceoverridetheme ├── db_post_update └── db.default.sql └── tpl └── lhinstance └── email.default.tpl.php /.gitignore: -------------------------------------------------------------------------------- 1 | .idea -------------------------------------------------------------------------------- /instance/bootstrap/bootstrap.php: -------------------------------------------------------------------------------- 1 | registerAutoload(); 13 | } 14 | 15 | public function registerAutoload() 16 | { 17 | spl_autoload_register(array( 18 | $this, 19 | 'autoload' 20 | ), true, false); 21 | } 22 | 23 | public function autoload($className) 24 | { 25 | $classesAutoload = array( 26 | 'erLhcoreClassModelInstanceAlias' => 'extension/instance/classes/erlhcoreclassmodelinstancealias.php', 27 | ); 28 | 29 | if (key_exists($className, $classesAutoload)) { 30 | include_once $classesAutoload[$className]; 31 | } 32 | } 33 | } 34 | 35 | 36 | -------------------------------------------------------------------------------- /instance/classes/dbhandlers/directadmin.php: -------------------------------------------------------------------------------- 1 | connect('ssl://' . $cfg->getSetting( 'site', 'direct_admin_ip'),$cfg->getSetting( 'site', 'direct_admin_port')); 11 | 12 | $sock->set_login($cfg->getSetting( 'site', 'direct_admin_user'), $cfg->getSetting( 'site', 'direct_admin_pass')); 13 | 14 | $sock->set_method('POST'); 15 | 16 | $sock->query('/CMD_API_DATABASES', 17 | array( 18 | 'action' => 'delete', 19 | 'select0' => $cfg->getSetting( 'db', 'database_user_prefix') . $client_id, 20 | )); 21 | 22 | return $sock->fetch_body(); 23 | } 24 | 25 | public static function createDB($client_id) 26 | { 27 | $cfg = erConfigClassLhConfig::getInstance(); 28 | 29 | $sock = new HTTPSocket; 30 | $sock->connect('ssl://' . $cfg->getSetting( 'site', 'direct_admin_ip'),$cfg->getSetting( 'site', 'direct_admin_port')); 31 | 32 | $sock->set_login($cfg->getSetting( 'site', 'direct_admin_user'), $cfg->getSetting( 'site', 'direct_admin_pass')); 33 | 34 | $sock->set_method('POST'); 35 | 36 | $sock->query('/CMD_API_DATABASES', 37 | array( 38 | 'action' => 'create', 39 | 'name' => "client{$client_id}", 40 | 'userlist' => $cfg->getSetting( 'site', 'direct_admin_dbuser'), 41 | 'passwd' => $cfg->getSetting( 'site', 'direct_admin_dbpass'), 42 | 'passwd2' => $cfg->getSetting( 'site', 'direct_admin_dbpass') 43 | )); 44 | 45 | return $sock->fetch_body(); 46 | } 47 | } 48 | 49 | ?> -------------------------------------------------------------------------------- /instance/classes/dbhandlers/mysql.php: -------------------------------------------------------------------------------- 1 | query('DROP DATABASE IF EXISTS '.$cfg->getSetting( 'db', 'database_user_prefix').$client_id.';'); 11 | } 12 | 13 | public static function createDB($client_id) 14 | { 15 | $cfg = erConfigClassLhConfig::getInstance(); 16 | 17 | self::deleteDB($client_id); 18 | $db = ezcDbInstance::get(); 19 | $db->query('CREATE DATABASE '.$cfg->getSetting( 'db', 'database_user_prefix').$client_id.';'); 20 | } 21 | } 22 | 23 | ?> -------------------------------------------------------------------------------- /instance/classes/erlhcoreclassinstanceapi.php: -------------------------------------------------------------------------------- 1 | getSetting( 'site', 'seller_domain'), '', $host); 10 | 11 | $session = erLhcoreClassInstance::getSession(); 12 | $q = $session->createFindQuery('erLhcoreClassModelInstance'); 13 | $q->where( $q->expr->eq( 'address', $q->bindValue( $subdomain ) ) . ' OR (full_domain = 1 AND ' . $q->expr->eq( 'address', $q->bindValue( $host ) ). ')' ); 14 | $items = $session->find($q); 15 | 16 | if (empty($items)) { 17 | throw new Exception('Host not found!'); 18 | } 19 | 20 | $item = array_shift($items); 21 | 22 | return $item; 23 | } 24 | } 25 | 26 | ?> -------------------------------------------------------------------------------- /instance/classes/erlhcoreclassmodelinstancealias.php: -------------------------------------------------------------------------------- 1 | $this->id, 19 | 'instance_id' => $this->instance_id, 20 | 'address' => $this->address, 21 | 'url' => $this->url, 22 | ); 23 | } 24 | 25 | public function __toString() 26 | { 27 | return $this->address; 28 | } 29 | 30 | 31 | public function __get($var) 32 | { 33 | switch ($var) { 34 | 35 | default: 36 | ; 37 | break; 38 | } 39 | } 40 | 41 | public $id = null; 42 | 43 | public $instance_id = 0; 44 | 45 | public $address = 0; 46 | 47 | public $url = 0; 48 | } 49 | 50 | ?> -------------------------------------------------------------------------------- /instance/classes/filter/filter.php: -------------------------------------------------------------------------------- 1 | 'text', 7 | 'trans' => 'Sort by', 8 | 'required' => false, 9 | 'valid_if_filled' => false, 10 | 'filter_type' => 'like', 11 | 'filter_table_field' => 'address', 12 | 'validation_definition' => new ezcInputFormDefinitionElement ( 13 | ezcInputFormDefinitionElement::OPTIONAL, 'string' 14 | ) 15 | ); 16 | 17 | $fieldSortAttr = array ( 18 | 'field' => false, 19 | 'default' => false, 20 | 'serialised' => true, 21 | 'disabled' => true, 22 | 'options' => array() 23 | ); 24 | 25 | return array( 26 | 'filterAttributes' => $fieldsSearch, 27 | 'sortAttributes' => $fieldSortAttr 28 | ); -------------------------------------------------------------------------------- /instance/classes/tcpdf_min/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tecnick.com/tcpdf", 3 | "version": "6.0.093", 4 | "homepage": "http://www.tcpdf.org/", 5 | "type": "library", 6 | "description": "TCPDF is a PHP class for generating PDF documents and barcodes.", 7 | "keywords": ["PDF","tcpdf","PDFD32000-2008","qrcode","datamatrix","pdf417","barcodes"], 8 | "license": "LGPLv3", 9 | "authors": [ 10 | { 11 | "name": "Nicola Asuni", 12 | "email": "info@tecnick.com", 13 | "homepage": "http://nicolaasuni.tecnick.com" 14 | } 15 | ], 16 | "require": { 17 | "php": ">=5.3.0" 18 | }, 19 | "autoload": { 20 | "classmap": [ 21 | "fonts", 22 | "config", 23 | "include", 24 | "tcpdf.php", 25 | "tcpdf_parser.php", 26 | "tcpdf_import.php", 27 | "tcpdf_barcodes_1d.php", 28 | "tcpdf_barcodes_2d.php", 29 | "include/tcpdf_colors.php", 30 | "include/tcpdf_filters.php", 31 | "include/tcpdf_font_data.php", 32 | "include/tcpdf_fonts.php", 33 | "include/tcpdf_images.php", 34 | "include/tcpdf_static.php", 35 | "include/barcodes/datamatrix.php", 36 | "include/barcodes/pdf417.php", 37 | "include/barcodes/qrcode.php" 38 | ] 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /instance/classes/tcpdf_min/fonts/freeserif.ctg.z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiveHelperChat/automated-hosting/cad3f8ffb5b679e0b0859083c3c1167409e7062c/instance/classes/tcpdf_min/fonts/freeserif.ctg.z -------------------------------------------------------------------------------- /instance/classes/tcpdf_min/fonts/freeserif.z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiveHelperChat/automated-hosting/cad3f8ffb5b679e0b0859083c3c1167409e7062c/instance/classes/tcpdf_min/fonts/freeserif.z -------------------------------------------------------------------------------- /instance/classes/tcpdf_min/fonts/freeserifb.ctg.z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiveHelperChat/automated-hosting/cad3f8ffb5b679e0b0859083c3c1167409e7062c/instance/classes/tcpdf_min/fonts/freeserifb.ctg.z -------------------------------------------------------------------------------- /instance/classes/tcpdf_min/fonts/freeserifb.z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiveHelperChat/automated-hosting/cad3f8ffb5b679e0b0859083c3c1167409e7062c/instance/classes/tcpdf_min/fonts/freeserifb.z -------------------------------------------------------------------------------- /instance/classes/tcpdf_min/fonts/freeserifbi.ctg.z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiveHelperChat/automated-hosting/cad3f8ffb5b679e0b0859083c3c1167409e7062c/instance/classes/tcpdf_min/fonts/freeserifbi.ctg.z -------------------------------------------------------------------------------- /instance/classes/tcpdf_min/fonts/freeserifbi.z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiveHelperChat/automated-hosting/cad3f8ffb5b679e0b0859083c3c1167409e7062c/instance/classes/tcpdf_min/fonts/freeserifbi.z -------------------------------------------------------------------------------- /instance/classes/tcpdf_min/fonts/freeserifi.ctg.z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiveHelperChat/automated-hosting/cad3f8ffb5b679e0b0859083c3c1167409e7062c/instance/classes/tcpdf_min/fonts/freeserifi.ctg.z -------------------------------------------------------------------------------- /instance/classes/tcpdf_min/fonts/freeserifi.z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiveHelperChat/automated-hosting/cad3f8ffb5b679e0b0859083c3c1167409e7062c/instance/classes/tcpdf_min/fonts/freeserifi.z -------------------------------------------------------------------------------- /instance/classes/tcpdf_min/fonts/helvetica.php: -------------------------------------------------------------------------------- 1 | 32,'FontBBox'=>'[-166 -225 1000 931]','ItalicAngle'=>0,'Ascent'=>931,'Descent'=>-225,'Leading'=>0,'CapHeight'=>718,'XHeight'=>523,'StemV'=>88,'StemH'=>76,'AvgWidth'=>513,'MaxWidth'=>1015,'MissingWidth'=>513); 11 | $cw=array(0=>500,1=>500,2=>500,3=>500,4=>500,5=>500,6=>500,7=>500,8=>500,9=>500,10=>500,11=>500,12=>500,13=>500,14=>500,15=>500,16=>500,17=>500,18=>500,19=>500,20=>500,21=>500,22=>500,23=>500,24=>500,25=>500,26=>500,27=>500,28=>500,29=>500,30=>500,31=>500,32=>278,33=>278,34=>355,35=>556,36=>556,37=>889,38=>667,39=>191,40=>333,41=>333,42=>389,43=>584,44=>278,45=>333,46=>278,47=>278,48=>556,49=>556,50=>556,51=>556,52=>556,53=>556,54=>556,55=>556,56=>556,57=>556,58=>278,59=>278,60=>584,61=>584,62=>584,63=>556,64=>1015,65=>667,66=>667,67=>722,68=>722,69=>667,70=>611,71=>778,72=>722,73=>278,74=>500,75=>667,76=>556,77=>833,78=>722,79=>778,80=>667,81=>778,82=>722,83=>667,84=>611,85=>722,86=>667,87=>944,88=>667,89=>667,90=>611,91=>278,92=>278,93=>277,94=>469,95=>556,96=>333,97=>556,98=>556,99=>500,100=>556,101=>556,102=>278,103=>556,104=>556,105=>222,106=>222,107=>500,108=>222,109=>833,110=>556,111=>556,112=>556,113=>556,114=>333,115=>500,116=>278,117=>556,118=>500,119=>722,120=>500,121=>500,122=>500,123=>334,124=>260,125=>334,126=>584,127=>500,128=>655,129=>500,130=>222,131=>278,132=>333,133=>1000,134=>556,135=>556,136=>333,137=>1000,138=>667,139=>250,140=>1000,141=>500,142=>611,143=>500,144=>500,145=>222,146=>221,147=>333,148=>333,149=>350,150=>556,151=>1000,152=>333,153=>1000,154=>500,155=>250,156=>938,157=>500,158=>500,159=>667,160=>278,161=>278,162=>556,163=>556,164=>556,165=>556,166=>260,167=>556,168=>333,169=>737,170=>370,171=>448,172=>584,173=>333,174=>737,175=>333,176=>606,177=>584,178=>350,179=>350,180=>333,181=>556,182=>537,183=>278,184=>333,185=>350,186=>365,187=>448,188=>869,189=>869,190=>879,191=>556,192=>667,193=>667,194=>667,195=>667,196=>667,197=>667,198=>1000,199=>722,200=>667,201=>667,202=>667,203=>667,204=>278,205=>278,206=>278,207=>278,208=>722,209=>722,210=>778,211=>778,212=>778,213=>778,214=>778,215=>584,216=>778,217=>722,218=>722,219=>722,220=>722,221=>667,222=>666,223=>611,224=>556,225=>556,226=>556,227=>556,228=>556,229=>556,230=>896,231=>500,232=>556,233=>556,234=>556,235=>556,236=>251,237=>251,238=>251,239=>251,240=>556,241=>556,242=>556,243=>556,244=>556,245=>556,246=>556,247=>584,248=>611,249=>556,250=>556,251=>556,252=>556,253=>500,254=>555,255=>500); 12 | 13 | // --- EOF --- 14 | -------------------------------------------------------------------------------- /instance/classes/tcpdf_min/fonts/helveticab.php: -------------------------------------------------------------------------------- 1 | 32,'FontBBox'=>'[-170 -228 1003 962]','ItalicAngle'=>0,'Ascent'=>962,'Descent'=>-228,'Leading'=>0,'CapHeight'=>718,'XHeight'=>532,'StemV'=>140,'StemH'=>118,'AvgWidth'=>535,'MaxWidth'=>1000,'MissingWidth'=>535); 11 | $cw=array(0=>278,1=>278,2=>278,3=>278,4=>278,5=>278,6=>278,7=>278,8=>278,9=>278,10=>278,11=>278,12=>278,13=>278,14=>278,15=>278,16=>278,17=>278,18=>278,19=>278,20=>278,21=>278,22=>278,23=>278,24=>278,25=>278,26=>278,27=>278,28=>278,29=>278,30=>278,31=>278,32=>278,33=>333,34=>474,35=>556,36=>556,37=>889,38=>722,39=>238,40=>333,41=>333,42=>389,43=>584,44=>278,45=>333,46=>278,47=>278,48=>556,49=>556,50=>556,51=>556,52=>556,53=>556,54=>556,55=>556,56=>556,57=>556,58=>333,59=>333,60=>584,61=>584,62=>584,63=>611,64=>975,65=>722,66=>722,67=>722,68=>722,69=>667,70=>611,71=>778,72=>722,73=>278,74=>556,75=>722,76=>611,77=>833,78=>722,79=>778,80=>667,81=>778,82=>722,83=>667,84=>611,85=>722,86=>667,87=>944,88=>667,89=>667,90=>611,91=>333,92=>278,93=>333,94=>584,95=>556,96=>333,97=>556,98=>611,99=>556,100=>611,101=>556,102=>333,103=>611,104=>611,105=>278,106=>278,107=>556,108=>278,109=>889,110=>611,111=>611,112=>611,113=>611,114=>389,115=>556,116=>333,117=>611,118=>556,119=>778,120=>556,121=>556,122=>500,123=>389,124=>280,125=>389,126=>584,127=>350,128=>556,129=>350,130=>278,131=>556,132=>500,133=>1000,134=>556,135=>556,136=>333,137=>1000,138=>667,139=>333,140=>1000,141=>350,142=>611,143=>350,144=>350,145=>278,146=>278,147=>500,148=>500,149=>350,150=>556,151=>1000,152=>333,153=>1000,154=>556,155=>333,156=>944,157=>350,158=>500,159=>667,160=>278,161=>333,162=>556,163=>556,164=>556,165=>556,166=>280,167=>556,168=>333,169=>737,170=>370,171=>556,172=>584,173=>333,174=>737,175=>333,176=>400,177=>584,178=>333,179=>333,180=>333,181=>611,182=>556,183=>278,184=>333,185=>333,186=>365,187=>556,188=>834,189=>834,190=>834,191=>611,192=>722,193=>722,194=>722,195=>722,196=>722,197=>722,198=>1000,199=>722,200=>667,201=>667,202=>667,203=>667,204=>278,205=>278,206=>278,207=>278,208=>722,209=>722,210=>778,211=>778,212=>778,213=>778,214=>778,215=>584,216=>778,217=>722,218=>722,219=>722,220=>722,221=>667,222=>667,223=>611,224=>556,225=>556,226=>556,227=>556,228=>556,229=>556,230=>889,231=>556,232=>556,233=>556,234=>556,235=>556,236=>278,237=>278,238=>278,239=>278,240=>611,241=>611,242=>611,243=>611,244=>611,245=>611,246=>611,247=>584,248=>611,249=>611,250=>611,251=>611,252=>611,253=>556,254=>611,255=>556); 12 | // --- EOF --- 13 | -------------------------------------------------------------------------------- /instance/classes/tcpdf_min/fonts/helveticabi.php: -------------------------------------------------------------------------------- 1 | 96,'FontBBox'=>'[-174 -228 1114 962]','ItalicAngle'=>-12,'Ascent'=>962,'Descent'=>-228,'Leading'=>0,'CapHeight'=>718,'XHeight'=>532,'StemV'=>140,'StemH'=>118,'AvgWidth'=>535,'MaxWidth'=>1000,'MissingWidth'=>535); 11 | $cw=array(0=>278,1=>278,2=>278,3=>278,4=>278,5=>278,6=>278,7=>278,8=>278,9=>278,10=>278,11=>278,12=>278,13=>278,14=>278,15=>278,16=>278,17=>278,18=>278,19=>278,20=>278,21=>278,22=>278,23=>278,24=>278,25=>278,26=>278,27=>278,28=>278,29=>278,30=>278,31=>278,32=>278,33=>333,34=>474,35=>556,36=>556,37=>889,38=>722,39=>238,40=>333,41=>333,42=>389,43=>584,44=>278,45=>333,46=>278,47=>278,48=>556,49=>556,50=>556,51=>556,52=>556,53=>556,54=>556,55=>556,56=>556,57=>556,58=>333,59=>333,60=>584,61=>584,62=>584,63=>611,64=>975,65=>722,66=>722,67=>722,68=>722,69=>667,70=>611,71=>778,72=>722,73=>278,74=>556,75=>722,76=>611,77=>833,78=>722,79=>778,80=>667,81=>778,82=>722,83=>667,84=>611,85=>722,86=>667,87=>944,88=>667,89=>667,90=>611,91=>333,92=>278,93=>333,94=>584,95=>556,96=>333,97=>556,98=>611,99=>556,100=>611,101=>556,102=>333,103=>611,104=>611,105=>278,106=>278,107=>556,108=>278,109=>889,110=>611,111=>611,112=>611,113=>611,114=>389,115=>556,116=>333,117=>611,118=>556,119=>778,120=>556,121=>556,122=>500,123=>389,124=>280,125=>389,126=>584,127=>350,128=>556,129=>350,130=>278,131=>556,132=>500,133=>1000,134=>556,135=>556,136=>333,137=>1000,138=>667,139=>333,140=>1000,141=>350,142=>611,143=>350,144=>350,145=>278,146=>278,147=>500,148=>500,149=>350,150=>556,151=>1000,152=>333,153=>1000,154=>556,155=>333,156=>944,157=>350,158=>500,159=>667,160=>278,161=>333,162=>556,163=>556,164=>556,165=>556,166=>280,167=>556,168=>333,169=>737,170=>370,171=>556,172=>584,173=>333,174=>737,175=>333,176=>400,177=>584,178=>333,179=>333,180=>333,181=>611,182=>556,183=>278,184=>333,185=>333,186=>365,187=>556,188=>834,189=>834,190=>834,191=>611,192=>722,193=>722,194=>722,195=>722,196=>722,197=>722,198=>1000,199=>722,200=>667,201=>667,202=>667,203=>667,204=>278,205=>278,206=>278,207=>278,208=>722,209=>722,210=>778,211=>778,212=>778,213=>778,214=>778,215=>584,216=>778,217=>722,218=>722,219=>722,220=>722,221=>667,222=>667,223=>611,224=>556,225=>556,226=>556,227=>556,228=>556,229=>556,230=>889,231=>556,232=>556,233=>556,234=>556,235=>556,236=>278,237=>278,238=>278,239=>278,240=>611,241=>611,242=>611,243=>611,244=>611,245=>611,246=>611,247=>584,248=>611,249=>611,250=>611,251=>611,252=>611,253=>556,254=>611,255=>556); 12 | // --- EOF --- 13 | -------------------------------------------------------------------------------- /instance/classes/tcpdf_min/fonts/helveticai.php: -------------------------------------------------------------------------------- 1 | 96,'FontBBox'=>'[-170 -225 1116 931]','ItalicAngle'=>-12,'Ascent'=>931,'Descent'=>-225,'Leading'=>0,'CapHeight'=>718,'XHeight'=>523,'StemV'=>88,'StemH'=>76,'AvgWidth'=>513,'MaxWidth'=>1015,'MissingWidth'=>513); 11 | $cw=array(0=>278,1=>278,2=>278,3=>278,4=>278,5=>278,6=>278,7=>278,8=>278,9=>278,10=>278,11=>278,12=>278,13=>278,14=>278,15=>278,16=>278,17=>278,18=>278,19=>278,20=>278,21=>278,22=>278,23=>278,24=>278,25=>278,26=>278,27=>278,28=>278,29=>278,30=>278,31=>278,32=>278,33=>278,34=>355,35=>556,36=>556,37=>889,38=>667,39=>191,40=>333,41=>333,42=>389,43=>584,44=>278,45=>333,46=>278,47=>278,48=>556,49=>556,50=>556,51=>556,52=>556,53=>556,54=>556,55=>556,56=>556,57=>556,58=>278,59=>278,60=>584,61=>584,62=>584,63=>556,64=>1015,65=>667,66=>667,67=>722,68=>722,69=>667,70=>611,71=>778,72=>722,73=>278,74=>500,75=>667,76=>556,77=>833,78=>722,79=>778,80=>667,81=>778,82=>722,83=>667,84=>611,85=>722,86=>667,87=>944,88=>667,89=>667,90=>611,91=>278,92=>278,93=>278,94=>469,95=>556,96=>333,97=>556,98=>556,99=>500,100=>556,101=>556,102=>278,103=>556,104=>556,105=>222,106=>222,107=>500,108=>222,109=>833,110=>556,111=>556,112=>556,113=>556,114=>333,115=>500,116=>278,117=>556,118=>500,119=>722,120=>500,121=>500,122=>500,123=>334,124=>260,125=>334,126=>584,127=>350,128=>556,129=>350,130=>222,131=>556,132=>333,133=>1000,134=>556,135=>556,136=>333,137=>1000,138=>667,139=>333,140=>1000,141=>350,142=>611,143=>350,144=>350,145=>222,146=>222,147=>333,148=>333,149=>350,150=>556,151=>1000,152=>333,153=>1000,154=>500,155=>333,156=>944,157=>350,158=>500,159=>667,160=>278,161=>333,162=>556,163=>556,164=>556,165=>556,166=>260,167=>556,168=>333,169=>737,170=>370,171=>556,172=>584,173=>333,174=>737,175=>333,176=>400,177=>584,178=>333,179=>333,180=>333,181=>556,182=>537,183=>278,184=>333,185=>333,186=>365,187=>556,188=>834,189=>834,190=>834,191=>611,192=>667,193=>667,194=>667,195=>667,196=>667,197=>667,198=>1000,199=>722,200=>667,201=>667,202=>667,203=>667,204=>278,205=>278,206=>278,207=>278,208=>722,209=>722,210=>778,211=>778,212=>778,213=>778,214=>778,215=>584,216=>778,217=>722,218=>722,219=>722,220=>722,221=>667,222=>667,223=>611,224=>556,225=>556,226=>556,227=>556,228=>556,229=>556,230=>889,231=>500,232=>556,233=>556,234=>556,235=>556,236=>278,237=>278,238=>278,239=>278,240=>556,241=>556,242=>556,243=>556,244=>556,245=>556,246=>556,247=>584,248=>611,249=>556,250=>556,251=>556,252=>556,253=>500,254=>556,255=>500); 12 | // --- EOF --- 13 | -------------------------------------------------------------------------------- /instance/classes/tcpdf_min/fonts/symbol.php: -------------------------------------------------------------------------------- 1 | 4,'FontBBox'=>'[-180 -293 1090 1010]','ItalicAngle'=>0,'Ascent'=>1010,'Descent'=>-293,'Leading'=>0,'CapHeight'=>1010,'StemV'=>85,'StemH'=>92,'AvgWidth'=>587,'MaxWidth'=>1042,'MissingWidth'=>587); 11 | $cw=array(0=>587,1=>587,2=>587,3=>587,4=>587,5=>587,6=>587,7=>587,8=>587,9=>587,10=>587,11=>587,12=>587,13=>587,14=>587,15=>587,16=>587,17=>587,18=>587,19=>587,20=>587,21=>587,22=>587,23=>587,24=>587,25=>587,26=>587,27=>587,28=>587,29=>587,30=>587,31=>587,32=>250,33=>333,34=>713,35=>500,36=>549,37=>833,38=>778,39=>439,40=>333,41=>333,42=>500,43=>549,44=>250,45=>549,46=>250,47=>278,48=>500,49=>500,50=>500,51=>500,52=>500,53=>500,54=>500,55=>500,56=>500,57=>500,58=>278,59=>278,60=>549,61=>549,62=>549,63=>444,64=>549,65=>722,66=>667,67=>722,68=>612,69=>611,70=>763,71=>603,72=>722,73=>333,74=>631,75=>722,76=>686,77=>889,78=>722,79=>722,80=>768,81=>741,82=>556,83=>592,84=>611,85=>690,86=>439,87=>768,88=>645,89=>795,90=>611,91=>333,92=>863,93=>333,94=>658,95=>500,96=>500,97=>631,98=>549,99=>549,100=>494,101=>439,102=>521,103=>411,104=>603,105=>329,106=>603,107=>549,108=>549,109=>576,110=>521,111=>549,112=>549,113=>521,114=>549,115=>603,116=>439,117=>576,118=>713,119=>686,120=>493,121=>686,122=>494,123=>480,124=>200,125=>480,126=>549,127=>587,128=>587,129=>587,130=>587,131=>587,132=>587,133=>587,134=>587,135=>587,136=>587,137=>587,138=>587,139=>587,140=>587,141=>587,142=>587,143=>587,144=>587,145=>587,146=>587,147=>587,148=>587,149=>587,150=>587,151=>587,152=>587,153=>587,154=>587,155=>587,156=>587,157=>587,158=>587,159=>587,160=>750,161=>620,162=>247,163=>549,164=>167,165=>713,166=>500,167=>753,168=>753,169=>753,170=>753,171=>1042,172=>987,173=>603,174=>987,175=>603,176=>400,177=>549,178=>411,179=>549,180=>549,181=>713,182=>494,183=>460,184=>549,185=>549,186=>549,187=>549,188=>1000,189=>603,190=>1000,191=>658,192=>823,193=>686,194=>795,195=>987,196=>768,197=>768,198=>823,199=>768,200=>768,201=>713,202=>713,203=>713,204=>713,205=>713,206=>713,207=>713,208=>768,209=>713,210=>790,211=>790,212=>890,213=>823,214=>549,215=>250,216=>713,217=>603,218=>603,219=>1042,220=>987,221=>603,222=>987,223=>603,224=>494,225=>329,226=>790,227=>790,228=>786,229=>713,230=>384,231=>384,232=>384,233=>384,234=>384,235=>384,236=>494,237=>494,238=>494,239=>494,240=>587,241=>329,242=>274,243=>686,244=>686,245=>686,246=>384,247=>384,248=>384,249=>384,250=>384,251=>384,252=>494,253=>494,254=>494,255=>587); 12 | // --- EOF --- 13 | -------------------------------------------------------------------------------- /instance/classes/tcpdf_min/fonts/zapfdingbats.php: -------------------------------------------------------------------------------- 1 | 4,'FontBBox'=>'[-1 -143 981 820]','ItalicAngle'=>0,'Ascent'=>820,'Descent'=>-143,'Leading'=>0,'CapHeight'=>820,'StemV'=>90,'StemH'=>28,'AvgWidth'=>746,'MaxWidth'=>1016,'MissingWidth'=>746); 11 | $cw=array(0=>746,1=>746,2=>746,3=>746,4=>746,5=>746,6=>746,7=>746,8=>746,9=>746,10=>746,11=>746,12=>746,13=>746,14=>746,15=>746,16=>746,17=>746,18=>746,19=>746,20=>746,21=>746,22=>746,23=>746,24=>746,25=>746,26=>746,27=>746,28=>746,29=>746,30=>746,31=>746,32=>278,33=>974,34=>961,35=>974,36=>980,37=>719,38=>789,39=>790,40=>791,41=>690,42=>960,43=>939,44=>549,45=>855,46=>911,47=>933,48=>911,49=>945,50=>974,51=>755,52=>846,53=>762,54=>761,55=>571,56=>677,57=>763,58=>760,59=>759,60=>754,61=>494,62=>552,63=>537,64=>577,65=>692,66=>786,67=>788,68=>788,69=>790,70=>793,71=>794,72=>816,73=>823,74=>789,75=>841,76=>823,77=>833,78=>816,79=>831,80=>923,81=>744,82=>723,83=>749,84=>790,85=>792,86=>695,87=>776,88=>768,89=>792,90=>759,91=>707,92=>708,93=>682,94=>701,95=>826,96=>815,97=>789,98=>789,99=>707,100=>687,101=>696,102=>689,103=>786,104=>787,105=>713,106=>791,107=>785,108=>791,109=>873,110=>761,111=>762,112=>762,113=>759,114=>759,115=>892,116=>892,117=>788,118=>784,119=>438,120=>138,121=>277,122=>415,123=>392,124=>392,125=>668,126=>668,127=>746,128=>390,129=>390,130=>317,131=>317,132=>276,133=>276,134=>509,135=>509,136=>410,137=>410,138=>234,139=>234,140=>334,141=>334,142=>746,143=>746,144=>746,145=>746,146=>746,147=>746,148=>746,149=>746,150=>746,151=>746,152=>746,153=>746,154=>746,155=>746,156=>746,157=>746,158=>746,159=>746,160=>746,161=>732,162=>544,163=>544,164=>910,165=>667,166=>760,167=>760,168=>776,169=>595,170=>694,171=>626,172=>788,173=>788,174=>788,175=>788,176=>788,177=>788,178=>788,179=>788,180=>788,181=>788,182=>788,183=>788,184=>788,185=>788,186=>788,187=>788,188=>788,189=>788,190=>788,191=>788,192=>788,193=>788,194=>788,195=>788,196=>788,197=>788,198=>788,199=>788,200=>788,201=>788,202=>788,203=>788,204=>788,205=>788,206=>788,207=>788,208=>788,209=>788,210=>788,211=>788,212=>894,213=>838,214=>1016,215=>458,216=>748,217=>924,218=>748,219=>918,220=>927,221=>928,222=>928,223=>834,224=>873,225=>828,226=>924,227=>924,228=>917,229=>930,230=>931,231=>463,232=>883,233=>836,234=>836,235=>867,236=>867,237=>696,238=>696,239=>874,240=>746,241=>874,242=>760,243=>946,244=>771,245=>865,246=>771,247=>888,248=>967,249=>888,250=>831,251=>873,252=>927,253=>970,254=>918,255=>746); 12 | // --- EOF --- 13 | -------------------------------------------------------------------------------- /instance/classes/tcpdf_min/include/sRGB.icc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiveHelperChat/automated-hosting/cad3f8ffb5b679e0b0859083c3c1167409e7062c/instance/classes/tcpdf_min/include/sRGB.icc -------------------------------------------------------------------------------- /instance/classes/tcpdf_min/tcpdf_import.php: -------------------------------------------------------------------------------- 1 | . 27 | // 28 | // See LICENSE.TXT file for more information. 29 | // ------------------------------------------------------------------- 30 | // 31 | // Description : This is a PHP class extension of the TCPDF library to 32 | // import existing PDF documents. 33 | // 34 | //============================================================+ 35 | 36 | /** 37 | * @file 38 | * !!! THIS CLASS IS UNDER DEVELOPMENT !!! 39 | * This is a PHP class extension of the TCPDF (http://www.tcpdf.org) library to import existing PDF documents.
40 | * @package com.tecnick.tcpdf 41 | * @author Nicola Asuni 42 | * @version 1.0.001 43 | */ 44 | 45 | // include the TCPDF class 46 | require_once(dirname(__FILE__).'/tcpdf.php'); 47 | // include PDF parser class 48 | require_once(dirname(__FILE__).'/tcpdf_parser.php'); 49 | 50 | /** 51 | * @class TCPDF_IMPORT 52 | * !!! THIS CLASS IS UNDER DEVELOPMENT !!! 53 | * PHP class extension of the TCPDF (http://www.tcpdf.org) library to import existing PDF documents.
54 | * @package com.tecnick.tcpdf 55 | * @brief PHP class extension of the TCPDF library to import existing PDF documents. 56 | * @version 1.0.001 57 | * @author Nicola Asuni - info@tecnick.com 58 | */ 59 | class TCPDF_IMPORT extends TCPDF { 60 | 61 | /** 62 | * Import an existing PDF document 63 | * @param $filename (string) Filename of the PDF document to import. 64 | * @return true in case of success, false otherwise 65 | * @public 66 | * @since 1.0.000 (2011-05-24) 67 | */ 68 | public function importPDF($filename) { 69 | // load document 70 | $rawdata = file_get_contents($filename); 71 | if ($rawdata === false) { 72 | $this->Error('Unable to get the content of the file: '.$filename); 73 | } 74 | // configuration parameters for parser 75 | $cfg = array( 76 | 'die_for_errors' => false, 77 | 'ignore_filter_decoding_errors' => true, 78 | 'ignore_missing_filter_decoders' => true, 79 | ); 80 | try { 81 | // parse PDF data 82 | $pdf = new TCPDF_PARSER($rawdata, $cfg); 83 | } catch (Exception $e) { 84 | die($e->getMessage()); 85 | } 86 | // get the parsed data 87 | $data = $pdf->getParsedData(); 88 | // release some memory 89 | unset($rawdata); 90 | 91 | // ... 92 | 93 | 94 | print_r($data); // DEBUG 95 | 96 | 97 | unset($pdf); 98 | } 99 | 100 | } // END OF CLASS 101 | 102 | //============================================================+ 103 | // END OF FILE 104 | //============================================================+ 105 | -------------------------------------------------------------------------------- /instance/classes/tcpdf_min/tools/.htaccess: -------------------------------------------------------------------------------- 1 | deny from all 2 | -------------------------------------------------------------------------------- /instance/classes/tcpdf_min/tools/convert_fonts_examples.txt: -------------------------------------------------------------------------------- 1 | ./tcpdf_addfont.php -b -t Type1 -f 4 -e symbol -i pdfasymbol.pfb 2 | ./tcpdf_addfont.php -b -t Type1 -f 4 -i pdfazapfdingbats.pfb 3 | ./tcpdf_addfont.php -b -t Type1 -f 32 -e cp1252 -i pdfatimes.pfb,pdfatimesb.pfb,pdfahelvetica.pfb,pdfahelveticab.pfb 4 | ./tcpdf_addfont.php -b -t Type1 -f 33 -e cp1252 -i pdfacourier.pfb,pdfacourierb.pfb 5 | ./tcpdf_addfont.php -b -t Type1 -f 96 -e cp1252 -i pdfahelveticabi.pfb,pdfahelveticai.pfb,pdfatimesi.pfb,pdfatimesbi.pfb 6 | ./tcpdf_addfont.php -b -t Type1 -f 97 -e cp1252 -i pdfacourieri.pfb,pdfacourierbi.pfb 7 | 8 | 9 | ./tcpdf_addfont.php -b -t TrueTypeUnicode -f 32 -i DejaVuSans.ttf,DejaVuSans-Bold.ttf,DejaVuSansCondensed.ttf,DejaVuSansCondensed-Bold.ttf,DejaVuSans-ExtraLight.ttf,DejaVuSerif.ttf,DejaVuSerif-Bold.ttf,DejaVuSerifCondensed.ttf,DejaVuSerifCondensed-Bold.ttf 10 | ./tcpdf_addfont.php -b -t TrueTypeUnicode -f 33 -i DejaVuSansMono.ttf,DejaVuSansMono-Bold.ttf 11 | ./tcpdf_addfont.php -b -t TrueTypeUnicode -f 96 -i DejaVuSans-BoldOblique.ttf,DejaVuSansCondensed-BoldOblique.ttf,DejaVuSansCondensed-Oblique.ttf,DejaVuSerifCondensed-BoldItalic.ttf,DejaVuSerifCondensed-Italic.ttf,DejaVuSerif-Italic.ttf,DejaVuSerif-BoldItalic.ttf,DejaVuSans-Oblique.ttf 12 | ./tcpdf_addfont.php -b -t TrueTypeUnicode -f 97 -i DejaVuSansMono-BoldOblique.ttf,DejaVuSansMono-Oblique.ttf 13 | 14 | 15 | 16 | ./tcpdf_addfont.php -b -t TrueTypeUnicode -f 32 -i FreeSans.ttf,FreeSansBold.ttf,FreeSerif.ttf,FreeSerifBold.ttf 17 | ./tcpdf_addfont.php -b -t TrueTypeUnicode -f 33 -i FreeMono.ttf,FreeMonoBold.ttf 18 | ./tcpdf_addfont.php -b -t TrueTypeUnicode -f 96 -i FreeSansBoldOblique.ttf,FreeSansOblique.ttf,FreeSerifBoldItalic.ttf,FreeSerifItalic.ttf 19 | ./tcpdf_addfont.php -b -t TrueTypeUnicode -f 97 -i FreeMonoBoldOblique.ttf,FreeMonoOblique.ttf 20 | 21 | 22 | ./tcpdf_addfont.php -b -t TrueTypeUnicode -i aeAlArabiya.ttf,aeFurat.ttf 23 | 24 | 25 | ./tcpdf_addfont.php -b -t CID0JP -f 32 -i cid0jp.ttf 26 | ./tcpdf_addfont.php -b -t CID0KR -f 32 -i cid0kr.ttf 27 | ./tcpdf_addfont.php -b -t CID0CS -f 32 -i cid0cs.ttf 28 | ./tcpdf_addfont.php -b -t CID0CT -f 32 -i cid0ct.ttf 29 | -------------------------------------------------------------------------------- /instance/design/instancetheme/expire_options/expire_options.php: -------------------------------------------------------------------------------- 1 | array( 13 | 'filterlt' => array( 14 | 'expires' => time() + (10 * 24 * 3600) 15 | ), 16 | 'filtergt' => array( 17 | 'expires' => 0 18 | ), 19 | 'filter' => array( 20 | 'expire_inform_status' => 0 21 | ) 22 | ), 23 | 'template' => 'case1.tpl.php', 24 | 'set' => array( 25 | 'expire_inform_status' => 1 26 | ), 27 | 'mail' => array( 28 | 'subject' => erTranslationClassLhTranslation::getInstance()->getTranslation('instance/edit','Your instance will expire in 10 days') 29 | ), 30 | 'enabled' => false 31 | ), 32 | array( 33 | 'filter' => array( 34 | 'filterlt' => array( 35 | 'expires' => time() + (1 * 24 * 3600) 36 | ), 37 | 'filtergt' => array( 38 | 'expires' => 0 39 | ), 40 | 'filter' => array( 41 | 'expire_inform_status' => 1 42 | ) 43 | ), 44 | 'template' => 'case2.tpl.php', 45 | 'set' => array( 46 | 'expire_inform_status' => 2 47 | ), 48 | 'mail' => array( 49 | 'subject' => erTranslationClassLhTranslation::getInstance()->getTranslation('instance/edit','Your instance will expire in 1 day') 50 | ), 51 | 'enabled' => false 52 | ), 53 | array( 54 | 'filter' => array( 55 | 'filterlt' => array( 56 | 'expires' => time() - (24 * 3600 * 10) 57 | ), 58 | 'filtergt' => array( 59 | 'expires' => 0 60 | ), 61 | 'filter' => array( 62 | 'expire_inform_status' => 2 63 | ) 64 | ), 65 | 'template' => 'case3.tpl.php', 66 | 'mail' => array( 67 | 'subject' => erTranslationClassLhTranslation::getInstance()->getTranslation('instance/edit','Your instance has expired 10 days ago') 68 | ), 69 | 'set' => array( 70 | 'expire_inform_status' => 3 71 | ), 72 | 'enabled' => false 73 | ) 74 | ); 75 | 76 | ?> -------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/lhinstance/aliases.tpl.php: -------------------------------------------------------------------------------- 1 |

Aliases

2 | 3 | array('instance_id' => $instance->id))); ?> 4 | 5 |
6 |
7 |
8 |
9 | 10 | 11 |
12 |
13 |
14 |
15 | 16 | 17 |
18 |
19 |
20 |
21 | 22 |
23 |
24 |
25 |
26 | 27 |
28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 |
getTranslation('instance/edit','Address')?>getTranslation('instance/edit','URL')?>
address)?>url)?>getTranslation('system/buttons','Delete')?>
45 | 46 | -------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/lhinstance/assign.tpl.php: -------------------------------------------------------------------------------- 1 |

getTranslation('instance/edit','Assigned instances');?> - address)?>

2 | 3 | 4 | 5 | 6 | 7 | getTranslation('user/account','Updated'); ?> 8 | 9 | 10 | 11 |
12 |
13 | 14 |
15 | 16 |
17 | 18 | true, 20 | 'show_configuration' => true, 21 | ); ?> 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/lhinstance/assigned/widget.tpl.php: -------------------------------------------------------------------------------- 1 |
2 |
3 | Child instances [reseller_instances_count?>] 4 |
5 |
6 | 7 | 8 | 9 | 10 | 11 | 'id DESC', 'filter' => array('reseller_id' => $instance->id))) as $child) : ?> 12 | 13 | 14 | 15 | 16 | 17 |
Instance 
address)?>info_outline
18 |
19 |
-------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/lhinstance/attr_int_1.tpl.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
-------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/lhinstance/attr_int_2.tpl.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
-------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/lhinstance/attr_int_3.tpl.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
-------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/lhinstance/client_data.tpl.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | 5 | 6 |
7 |
8 |
9 |
10 | 11 | 12 |
13 |
14 |
15 | 16 | 17 | -------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/lhinstance/email.tpl.php: -------------------------------------------------------------------------------- 1 | getTranslation('instance/email','Hello');?> 2 | 3 | getTranslation('instance/email','Here is your chat instance data');?>: 4 | getTranslation('instance/email','Address');?>: getSetting( 'site', 'http_mode')?>address?>.getSetting( 'site', 'seller_domain')?>/site_admin/ 5 | 6 | getTranslation('instance/email','Login');?>: 7 | getTranslation('instance/email','Password');?>: 8 | 9 | getTranslation('instance/email','Number of purchased request');?>: 10 | request,"\n\n";?> 11 | 12 | getTranslation('instance/email','Valid untill');?>: 13 | expires > 0 ? date('Y-m-d',$instance->expires) : '-',"\n\n";?> 14 | 15 | getTranslation('instance/email','Recommended embed code');?>: 16 | var LHC_API = LHC_API||{}; 17 | LHC_API.args = {mode:\'widget\',lhc_base_url:\'//' . $instance->address . '.' . erConfigClassLhConfig::getInstance()->getSetting( 'site', 'seller_domain') . '/\',wheight:450,wwidth:350,pheight:520,pwidth:500,leaveamessage:true,check_messages:true}; 18 | (function() { 19 | var po = document.createElement(\'script\'); po.setAttribute(\'crossorigin\',\'anonymous\'); po.type = \'text/javascript\'; po.async = true; 20 | var date = new Date();po.src = \'//'.$instance->address . '.' . erConfigClassLhConfig::getInstance()->getSetting( 'site', 'seller_domain') .'/design/defaulttheme/js/widgetv2/index.js?\'+(""+date.getFullYear() + date.getMonth() + date.getDate()); 21 | var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(po, s); 22 | })(); 23 | ',"\n\n"; ?> 24 | 25 | getTranslation('instance/email','Sincerely');?>, 26 | getTranslation('instance/email','Live Support Team');?> 27 | -------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/lhinstance/expire_options_mails/case1.tpl.php: -------------------------------------------------------------------------------- 1 | getTranslation('instance/email','Hello');?> 2 | 3 | getTranslation('instance/email','We are informing that your instance will expire at');?>: 4 | 5 | getTranslation('instance/email','Your instance will expire at');?>: 6 | expires),"\n\n";?> 7 | 8 | getTranslation('instance/email','Sincerely');?>, 9 | getTranslation('instance/email','Live Support Team');?> -------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/lhinstance/expire_options_mails/case2.tpl.php: -------------------------------------------------------------------------------- 1 | getTranslation('instance/email','Hello');?> 2 | 3 | getTranslation('instance/email','We are informing that your instance will expire at');?>: 4 | 5 | getTranslation('instance/email','Your instance will expire at');?>: 6 | expires),"\n\n";?> 7 | 8 | getTranslation('instance/email','Sincerely');?>, 9 | getTranslation('instance/email','Live Support Team');?> -------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/lhinstance/expire_options_mails/case3.tpl.php: -------------------------------------------------------------------------------- 1 | getTranslation('instance/email','Hello');?> 2 | 3 | getTranslation('instance/email','We are informing that your instance has expired');?>: 4 | 5 | getTranslation('instance/email','Your instance has expired');?>: 6 | expires),"\n\n";?> 7 | 8 | getTranslation('instance/email','Sincerely');?>, 9 | getTranslation('instance/email','Live Support Team');?> -------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/lhinstance/features_multiinclude.tpl.php: -------------------------------------------------------------------------------- 1 | 5 |
6 | 7 |
8 | 9 | 10 |
11 |
12 | 13 |
14 |
15 | 16 |
17 |
18 | 19 |
20 |
21 | */ ?> -------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/lhinstance/form.tpl.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
5 | 6 |
7 | 8 |
9 | 10 |
11 | 12 |
13 | 14 |
15 | 16 | 17 |
18 | 19 |
20 | 21 | 22 |
23 | 24 |
25 | 26 | 27 |
28 | 29 |
30 | 31 |
32 | 33 |
34 | 35 |
36 | 37 |
38 | 39 |
40 | 41 |
42 | 43 | 44 |
45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/lhinstance/form_attributes.tpl.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 |
5 | 6 |
7 | 8 | 9 |
10 | 11 |
12 | 13 | 14 |
15 | 16 |
17 | 18 | 19 | 25 |
26 | 27 |
28 | 29 | 34 |
35 | 36 |
37 | 38 | 43 |
44 | 45 |
46 | 47 | 48 |
49 | -------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/lhinstance/form_custom_fields_multiinclude.tpl.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/lhinstance/form_reseller.tpl.php: -------------------------------------------------------------------------------- 1 | id !== null) : ?> 2 |

getTranslation('instance/edit','Reseller ID');?> - id);?>

3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 |
11 | 12 |
13 | 14 | 15 |
16 | 17 |
18 | 19 | 20 |
21 | 22 |
23 | 24 | 25 |
26 | 27 |
28 | 29 | 30 |
-------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/lhinstance/invoices.tpl.php: -------------------------------------------------------------------------------- 1 |

getTranslation('instance/edit','Invoices');?>

2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
IDgetTranslation('instance/edit','Amount');?>getTranslation('instance/edit','Currency');?>getTranslation('instance/edit','Item');?>getTranslation('instance/edit','Date');?>getTranslation('instance/edit','PDF');?>
id?>amount_front)?>currency)?>option_selection1)?>date_front)?>PDF
25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/lhinstance/list.tpl.php: -------------------------------------------------------------------------------- 1 | getTranslation('instance/edit','Invoices')?> 2 | 3 |

getTranslation('instance/edit','Instances');?>

4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | getTranslation('instance/edit','New instance');?> 14 | -------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/lhinstance/list/search_panel.tpl.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 |
6 |
7 |
8 | 9 | 10 |
11 |
12 |
13 | 14 |
15 | 16 |
17 | 18 |
19 | -------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/lhinstance/new.tpl.php: -------------------------------------------------------------------------------- 1 |

getTranslation('instance/edit','New instance');?>

2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
31 | 32 |
33 | -------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/lhinstance/tabs/extension_tab_multiinclude.tpl.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/lhinstance/tabs_content/extension_tab_multiinclude.tpl.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/lhinstance/users_attributes.tpl.php: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | 5 |
6 | 7 | 8 |
9 | 10 |
11 | 12 |

getTranslation('instance/edit','Values can be separated by comma, E.g 1.2.3.*,128.8.8.8');?>

13 | 14 |
-------------------------------------------------------------------------------- /instance/design/instancetheme/tpl/pagelayouts/parts/top_menu_extension_multiinclude.tpl.php.tpl.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /instance/doc/apikey.php: -------------------------------------------------------------------------------- 1 | ', ''); 7 | 8 | // Create/update instance example 9 | try { 10 | 11 | // To create API Key 12 | $apiData = $lhc->addAPIKey('testdomain5',1,'customersecretkey'); 13 | 14 | // To delete just create API Key 15 | $apiData = $lhc->deleteAPIKey('testdomain5',$apiData['data']['id']); 16 | 17 | } catch (Exception $e) { 18 | echo $e->getMessage(); 19 | } 20 | 21 | ?> -------------------------------------------------------------------------------- /instance/doc/changelog.txt: -------------------------------------------------------------------------------- 1 | 1.4v 2 | 3 | 1. Most of the parts were splited into turnable features. So it can be used with more flexible pricing. But all that will have to be done by you 4 | 2. Instance now also contains all the fields required to implementet third party SMS plugin. This kinda plugin was implemented for one of the clients. So sorry - no source code this time. But you have all the required info in instance itself. 5 | 3. Now you can have custom update queries after main database creation script in 6 | instanceoverride/design/instanceoverridetheme/db_post_update/db.default.sql 7 | Just rename this file to db.sql 8 | And SQL queries for this file will be after main install. 9 | 4. From now all changes you want to do should go directly to 10 | instanceoverride 11 | instancecustomeroverride 12 | 13 | Yes, instances can override each other files based on extensions order in settings.ini.php file 14 | 15 | 1.3v 16 | Rewrite for 2.23v compatibility. 17 | Removed doc sharer module and related stuff. 18 | Rewritten using bootstrap classes 19 | 20 | 1.2v 21 | Paypal integration 22 | 23 | 1.1v 24 | Reseller layer on top of instances and API for reseller. -------------------------------------------------------------------------------- /instance/doc/cron.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # live site cronjobs 4 | echo "Running live site cronjobs" 5 | cd /home/www/domains/livehelperchat_manager_com 6 | 7 | fileLock='/home/www/cronjobs/cron_workflow.lock' 8 | 9 | if [ -f $fileLock ]; 10 | then 11 | echo "Lock file exists, skipping execution"; 12 | else 13 | touch $fileLock; 14 | /usr/bin/php cron.php -s site_admin -e instance -c cron/workflow > cron_workflow.log 15 | rm -f $fileLock; 16 | fi -------------------------------------------------------------------------------- /instance/doc/cron_lhc.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # live site cronjobs 4 | echo "Running live site cronjobs" 5 | cd /home/www/domains/livehelperchat_manager_com 6 | 7 | fileLock='/home/www/cronjobs/cron_lhc.lock' 8 | 9 | if [ -f $fileLock ]; 10 | then 11 | echo "Lock file exists, skipping execution"; 12 | else 13 | touch $fileLock; 14 | /usr/bin/php cron.php -s site_admin -e instance -c cron/maintain > cron_lhc.log 15 | rm -rf var/storage/2013y 16 | rm -f $fileLock; 17 | fi -------------------------------------------------------------------------------- /instance/doc/cron_workflow.log: -------------------------------------------------------------------------------- 1 | Could not open input file: cron.php 2 | -------------------------------------------------------------------------------- /instance/doc/cronjobs_resque/crontab.cron: -------------------------------------------------------------------------------- 1 | * * * * * www-data cd /var/app/current/scripts && ./workflow.sh >> /dev/null 2>&1 2 | * * * * * www-data cd /var/app/current/scripts && ./webhook.sh >> /dev/null 2>&1 3 | 17 */8 * * * cd /home/www/manager/lhc_web && php cron.php -s site_admin -e instance -c cron/resque_archive >> /dev/null 2>&1 4 | */4 * * * * cd /home/www/manager/lhc_web && php cron.php -s site_admin -e instance -c cron/resque_delete >> /dev/null 2>&1 -------------------------------------------------------------------------------- /instance/doc/cronjobs_resque/webhook.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | fileCronHook='/tmp/running-webhook' 4 | 5 | # Run every minute 6 | 7 | for i in {1..3} 8 | do 9 | if [ ! -f $fileCronHook ]; 10 | then 11 | touch $fileCronHook; 12 | cd /home/www/manager/lhc_web && php cron.php -s site_admin -e instance -c cron/resque_webhook >> cache/webhook.log 13 | echo "$(tail -1000 cache/webhook.log)" > cache/webhook.log 14 | rm -f $fileCronHook; 15 | else 16 | if [ `stat --format=%Y $fileCronHook` -le $(( `date +%s` - 30 )) ]; then 17 | rm -f $fileCronHook; 18 | fi 19 | echo "Already running" 20 | fi 21 | sleep 20 22 | done 23 | -------------------------------------------------------------------------------- /instance/doc/cronjobs_resque/workflow.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | fileCron='/tmp/running-workflow' 3 | 4 | # Run every minute 5 | 6 | for i in {1..12} 7 | do 8 | if [ ! -f $fileCron ]; 9 | then 10 | touch $fileCron; 11 | cd /home/www/manager/lhc_web && php cron.php -s site_admin -e instance -c cron/resque_workflow >> cache/workflow.log 12 | echo "$(tail -1000 cache/workflow.log)" > cache/workflow.log 13 | rm -f $fileCron; 14 | else 15 | if [ `stat --format=%Y $fileCron` -le $(( `date +%s` - 30 )) ]; then 16 | rm -f $fileCron; 17 | fi 18 | echo "Already running" 19 | fi 20 | sleep 5 21 | done 22 | -------------------------------------------------------------------------------- /instance/doc/fetch.php: -------------------------------------------------------------------------------- 1 | ', '');// E.g $lhc = new LHCAutomatedHostingAPI('http://manage.livehelperchat.com', 'somrerandom_text'); 6 | 7 | // Fetch instance data 8 | try { 9 | print_r($lhc->fetchInstance('testdomain4')); 10 | } catch (Exception $e) { 11 | echo $e->getMessage(); 12 | } 13 | 14 | ?> -------------------------------------------------------------------------------- /instance/doc/reseller_api.php: -------------------------------------------------------------------------------- 1 | ','','');// E.g $lhc = new LHCAutomatedHostingResellerAPI('http://manage.livehelperchat.com', '1', 'somrerandom_text'); 7 | 8 | // Create/update instance example 9 | try { 10 | if ($lhc->checkInstanceFree('testreseller2')) { 11 | $response = $lhc->createOrUpdateInstance(array( 12 | 'address' => 'testreseller2', // Required, address it's subdomain in all cases. 13 | 'email' => 'remdex@gmail.com', // Required, e-mail 14 | 'request' => '1000', // Required, how many request to add, initial request number, can be 0 if you are just updating instance other attribute like expire date 15 | 'period' => '365', // Required, period in days, how many days instance is valid, can be zero if you are updating request number just. Days is always appended 16 | 'dateformat' => 'Y-m-dd', // Optional, date format 17 | 'hourformat' => 'H:i:ss', // Optional, hour format 18 | 'datehourformat' => 'Y-m-d H:i:s', // Optional, user time zone 19 | 'timezone' => 'Europe/Vilnius', // Optional, user time zone 20 | 'frontsiteaccess'=> 'lit', // Optional, default visitors site access 21 | 'operatorlocale' => 'lt_LT', // Optional, operator locate, language of back office in other words. 22 | )); 23 | print_r($response); 24 | } else { 25 | // This time we just add user additional one day and additional 1000 request 26 | $response = $lhc->createOrUpdateInstance(array( 27 | 'address' => 'testreseller2', // Required, address it's subdomain in all cases. 28 | 'email' => 'remdex@gmail.com', // Required, e-mail 29 | 'request' => '1000', // Required, how many request to add, initial request number, can be 0 if you are just updating instance other attribute like expire date 30 | 'period' => '1', // Required, period in days, how many days instance is valid, can be zero if you are updating request number just. Days is always appended 31 | )); 32 | print_r($response); 33 | } 34 | } catch (Exception $e) { 35 | echo $e->getMessage(); 36 | } 37 | 38 | // Suspends and unsuspends instance 39 | try { 40 | $response = $lhc->changeSuspendStatus('testreseller2',1); // Suspends 41 | print_r($response); 42 | 43 | $response = $lhc->changeSuspendStatus('testreseller2',0); // Unsuspends 44 | print_r($response); 45 | 46 | } catch (Exception $e) { 47 | echo $e->getMessage(); 48 | } 49 | 50 | // Terminate instance example 51 | try { 52 | $response = $lhc->terminate('testreseller2'); 53 | print_r($response); 54 | } catch (Exception $e) { 55 | echo $e->getMessage(); 56 | } 57 | 58 | ?> -------------------------------------------------------------------------------- /instance/doc/split_features.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE `lhc_instance_client` 2 | ADD `files_supported` int NOT NULL DEFAULT '1', 3 | ADD `atranslations_supported` int NOT NULL DEFAULT '1' AFTER `files_supported`, 4 | ADD `cobrowse_supported` int NOT NULL DEFAULT '1' AFTER `atranslations_supported`, 5 | ADD `feature_1_supported` int NOT NULL AFTER `cobrowse_supported`, 6 | ADD `feature_2_supported` int NOT NULL AFTER `feature_1_supported`, 7 | ADD `feature_3_supported` int NOT NULL AFTER `feature_2_supported`, 8 | COMMENT=''; -------------------------------------------------------------------------------- /instance/doc/updateview.log: -------------------------------------------------------------------------------- 1 | # Finished at 2017-05-20 15:00:02 2 | # Last updated entry: 3 | 4 | -------------------------------------------------------------------------------- /instance/modules/lhcron/delete_legacy.php: -------------------------------------------------------------------------------- 1 | prepare("SHOW DATABASES"); 12 | $stmt->execute(); 13 | $databases = $stmt->fetchAll(PDO::FETCH_COLUMN); 14 | 15 | $databasesToCheck = array(); 16 | foreach($databases as $database) { 17 | if (strpos($database,$cfg->getSetting( 'db', 'database_user_prefix')) !== false) { 18 | $databasesToCheck[] = array( 19 | 'db' => $database, 20 | 'id' => str_replace($cfg->getSetting( 'db', 'database_user_prefix'),'',$database) 21 | ); 22 | } 23 | } 24 | 25 | $validDb = array(); 26 | $invalidDb = array(); 27 | 28 | foreach ($databasesToCheck as $db) { 29 | 30 | $item = erLhcoreClassModelInstance::findOne(array('filter' => array('id' => $db['id']))); 31 | 32 | if ($item instanceof erLhcoreClassModelInstance) { 33 | $validDb[] = $item; 34 | } else { 35 | $invalidDb[] = $db; 36 | } 37 | } 38 | 39 | echo erLhcoreClassModelInstance::getCount(),"-",count($validDb),"-",count($invalidDb); 40 | 41 | foreach ($invalidDb as $dbDelete) 42 | { 43 | $cfg = erConfigClassLhConfig::getInstance(); 44 | $db = ezcDbInstance::get(); 45 | $sql = 'DROP DATABASE IF EXISTS '.$cfg->getSetting( 'db', 'database_user_prefix').$dbDelete['id'].';'; 46 | $db->query($sql); 47 | } -------------------------------------------------------------------------------- /instance/modules/lhcron/extensions_update.php: -------------------------------------------------------------------------------- 1 | 1000000,'filter' => array('status' => erLhcoreClassModelInstance::WORKING))) as $instance) { 16 | echo "Executing request to update instance internal structure for extensions - ",$instance->id,"\n"; 17 | 18 | $secretHash = $cfg->getSetting('site','seller_secret_hash'); 19 | $hash = sha1($instance->id .'extensions'. date('Ym') . $secretHash); 20 | 21 | if ($instance->full_domain == 1) { 22 | $url = erConfigClassLhConfig::getInstance()->getSetting( 'site', 'http_mode') . $instance->address .'/index.php/instance/extensionsstructure/' . $instance->id . '/' . date('Ym') . '/' . $hash; 23 | } else { 24 | $url = erConfigClassLhConfig::getInstance()->getSetting( 'site', 'http_mode') . $instance->address . '.' . $cfg->getSetting( 'site', 'seller_domain').'/index.php/instance/extensionsstructure/' . $instance->id . '/' . date('Ym') . '/' . $hash; 25 | } 26 | 27 | $response = erLhcoreClassModelChatOnlineUser::executeRequest($url); 28 | echo "Response:\n"; 29 | print_r($response); 30 | echo PHP_EOL; 31 | } 32 | 33 | ?> -------------------------------------------------------------------------------- /instance/modules/lhcron/maintain.php: -------------------------------------------------------------------------------- 1 | array('terminate' => 1))) as $item) { 14 | 15 | $db->beginTransaction(); 16 | $item->syncAndLock(); 17 | 18 | if ($item->status != erLhcoreClassModelInstance::IN_PROGRESS) { 19 | 20 | $item->status = erLhcoreClassModelInstance::IN_PROGRESS; 21 | $item->saveThis(); 22 | 23 | $item->removeThis(); 24 | } 25 | 26 | $db->commit(); 27 | } 28 | 29 | foreach (erLhcoreClassModelInstance::getList(array('filter' => array('status' => erLhcoreClassModelInstance::PENDING_CREATE))) as $item) { 30 | 31 | $db->beginTransaction(); 32 | 33 | $item->syncAndLock(); 34 | 35 | if ($item->status != erLhcoreClassModelInstance::IN_PROGRESS) 36 | { 37 | $item->status = erLhcoreClassModelInstance::IN_PROGRESS; 38 | $item->saveThis(); 39 | 40 | echo "Starting creating customer - ",$item->id,"\n"; 41 | erLhcoreClassInstance::createCustomer($item); 42 | echo "Creating customer - ",$item->id,"\n"; 43 | } 44 | 45 | $db->commit(); 46 | } 47 | 48 | 49 | 50 | ?> -------------------------------------------------------------------------------- /instance/modules/lhcron/resque_archive.php: -------------------------------------------------------------------------------- 1 | 1000000,'filter' => array('status' => erLhcoreClassModelInstance::WORKING))) as $instance) { 15 | erLhcoreClassModule::getExtensionInstance('erLhcoreClassExtensionLhcphpresque')->enqueue('lhc_instance_workflow', '\LiveHelperChatExtension\instancecustomer\providers\InstanceWorkerArchive', array('inst_id' => $instance->id)); 16 | } 17 | 18 | ?> -------------------------------------------------------------------------------- /instance/modules/lhcron/resque_delete.php: -------------------------------------------------------------------------------- 1 | 1000000,'filter' => array('status' => erLhcoreClassModelInstance::WORKING))) as $instance) { 15 | erLhcoreClassModule::getExtensionInstance('erLhcoreClassExtensionLhcphpresque')->enqueue('lhc_instance_workflow', '\LiveHelperChatExtension\instancecustomer\providers\InstanceWorkerDelete', array('inst_id' => $instance->id)); 16 | } 17 | 18 | ?> -------------------------------------------------------------------------------- /instance/modules/lhcron/resque_webhook.php: -------------------------------------------------------------------------------- 1 | 1000000,'filter' => array('status' => erLhcoreClassModelInstance::WORKING))) as $instance) { 15 | erLhcoreClassModule::getExtensionInstance('erLhcoreClassExtensionLhcphpresque')->enqueue('lhc_instance_workflow', '\LiveHelperChatExtension\instancecustomer\providers\InstanceWorkerWebhook', array('inst_id' => $instance->id)); 16 | } 17 | 18 | ?> -------------------------------------------------------------------------------- /instance/modules/lhcron/resque_workflow.php: -------------------------------------------------------------------------------- 1 | 1000000,'filter' => array('status' => erLhcoreClassModelInstance::WORKING))) as $instance) { 15 | erLhcoreClassModule::getExtensionInstance('erLhcoreClassExtensionLhcphpresque')->enqueue('lhc_instance_workflow', '\LiveHelperChatExtension\instancecustomer\providers\InstanceWorker', array('inst_id' => $instance->id)); 16 | } 17 | 18 | ?> -------------------------------------------------------------------------------- /instance/modules/lhcron/update_instances.php: -------------------------------------------------------------------------------- 1 | 1000000,'filterin' => array('status' => [erLhcoreClassModelInstance::WORKING, erLhcoreClassModelInstance::IN_PROGRESS]))) as $instance) { 13 | echo "Updating database for customer - ",$instance->id,"\n"; 14 | $db->query('USE '.$cfg->getSetting( 'db', 'database_user_prefix').$instance->id); 15 | erLhcoreClassUpdate::doTablesUpdate(json_decode($contentData,true)); 16 | } 17 | 18 | $CacheManager = erConfigClassLhCacheConfig::getInstance(); 19 | $CacheManager->expireCache(); 20 | 21 | ?> -------------------------------------------------------------------------------- /instance/modules/lhcron/update_structure.php: -------------------------------------------------------------------------------- 1 | $status) { 12 | $queries = array_merge($queries,$status['queries']); 13 | } 14 | 15 | if (empty($queries)){ 16 | echo "No queries to execute found\n"; 17 | } else { 18 | echo "The following queries will be executed\nYou have 10 seconds to stop executing these quries\n"; 19 | echo implode("\n", $queries)."\n"; 20 | sleep(10); 21 | 22 | erLhcoreClassUpdate::doTablesUpdate(json_decode($contentData,true)); 23 | echo "Tables were updated"; 24 | } 25 | 26 | 27 | ?> -------------------------------------------------------------------------------- /instance/modules/lhcron/workflow.php: -------------------------------------------------------------------------------- 1 | 1000000,'filter' => array('status' => erLhcoreClassModelInstance::WORKING))) as $instance) { 16 | echo "Customer workflow - ",$instance->id,"\n"; 17 | 18 | $secretHash = $cfg->getSetting('site','seller_secret_hash'); 19 | $hash = sha1($instance->id .'workflow'. date('Ym') . $secretHash); 20 | $url = erConfigClassLhConfig::getInstance()->getSetting( 'site', 'http_mode').$instance->address . '.' . $cfg->getSetting( 'site', 'seller_domain').'/index.php/instance/workflow/' . $instance->id . '/' . date('Ym') . '/' . $hash; 21 | $response = erLhcoreClassModelChatOnlineUser::executeRequest($url); 22 | echo "Response:\n"; 23 | print_r($response); 24 | echo PHP_EOL; 25 | } 26 | 27 | ?> -------------------------------------------------------------------------------- /instance/modules/lhinstance/apigetinstance.php: -------------------------------------------------------------------------------- 1 | false, 'data' => $item->getState())); 8 | } catch (Exception $e) { 9 | echo json_encode(array('error' => true, 'message' => $e->getMessage())); 10 | } 11 | 12 | exit; 13 | 14 | ?> -------------------------------------------------------------------------------- /instance/modules/lhinstance/apikey.php: -------------------------------------------------------------------------------- 1 | getSetting('site','seller_secret_hash'); 6 | 7 | // Just cleanup if argument is domain with dots. We just remove dots. 8 | $Params['user_parameters']['address'] = str_replace('.', '', (string)$Params['user_parameters']['address']); 9 | 10 | $validateHash = sha1((string)$Params['user_parameters']['address']. (string)$Params['user_parameters']['user_id'] . $secretHash); 11 | 12 | 13 | if ( (string)$Params['user_parameters']['hash'] == $validateHash ) { 14 | 15 | if ( erLhcoreClassInstance::instanceExists((string)$Params['user_parameters']['address']) == false) { 16 | throw new Exception('Instance does not exists!'); 17 | } 18 | 19 | $instance = erLhcoreClassModelInstance::findOne(array('filter' => array('address' => (string)$Params['user_parameters']['address']))); 20 | 21 | $cfg = erConfigClassLhConfig::getInstance(); 22 | 23 | $db = ezcDbInstance::get(); 24 | 25 | $db->query('USE '.$cfg->getSetting( 'db', 'database_user_prefix').$instance->id); 26 | 27 | $apiKey = new erLhAbstractModelRestAPIKey(); 28 | $apiKey->api_key = $Params['user_parameters']['secret_hash']; 29 | $apiKey->user_id = $Params['user_parameters']['user_id']; 30 | $apiKey->active = 1; 31 | $apiKey->saveThis(); 32 | 33 | echo json_encode(array('error' => 'false','data' => get_object_vars($apiKey))); 34 | 35 | } else { 36 | echo json_encode(array('error' => 'true','reason' => 'invalid hash')); 37 | } 38 | 39 | exit; 40 | ?> -------------------------------------------------------------------------------- /instance/modules/lhinstance/assign.php: -------------------------------------------------------------------------------- 1 | new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw'), 13 | ); 14 | 15 | $form = new ezcInputForm(INPUT_POST, $definition); 16 | $Errors = array(); 17 | 18 | if ($form->hasValidData('InstanceAddress') && $form->InstanceAddress != '') { 19 | 20 | $instanceAssign = erLhcoreClassModelInstance::findOne(array('filter' => array('address' => $form->InstanceAddress))); 21 | 22 | if ($instanceAssign !== false && $instanceAssign->reseller_id !== $Instance->id) { 23 | $instanceAssign->reseller_id = $Instance->id; 24 | $instanceAssign->saveThis(); 25 | } 26 | } 27 | } 28 | 29 | /** 30 | * Unasign instance 31 | */ 32 | if (is_numeric($Params['user_parameters_unordered']['unasign']) && $Params['user_parameters_unordered']['unasign'] > 0) { 33 | $instanceAssign = erLhcoreClassModelInstance::fetch($Params['user_parameters_unordered']['unasign']); 34 | $instanceAssign->reseller_id = 0; 35 | $instanceAssign->saveThis(); 36 | } 37 | 38 | /** 39 | * Child instances 40 | * */ 41 | $pages = new lhPaginator(); 42 | $pages->items_total = erLhcoreClassModelInstance::getCount(array('filter' => array('reseller_id' => $Instance->id))); 43 | $pages->translationContext = 'abstract/list'; 44 | $pages->serverURL = erLhcoreClassDesign::baseurl('instance/assign') . '/' . $Instance->id; 45 | $pages->setItemsPerPage(20); 46 | $pages->paginate(); 47 | 48 | $tpl->set('pages',$pages); 49 | 50 | $items = array(); 51 | if ($pages->items_total > 0) { 52 | $items = erLhcoreClassModelInstance::getList(array('filter' => array('reseller_id' => $Instance->id), 'offset' => $pages->low, 'limit' => $pages->items_per_page, 'sort' => 'id ASC')); 53 | } 54 | 55 | $tpl->set('items',$items); 56 | $tpl->set('pages',$pages); 57 | 58 | $tpl->set('instance',$Instance); 59 | 60 | $Result['content'] = $tpl->fetch(); 61 | $Result['path'] = array( 62 | array( 63 | 'url' => erLhcoreClassDesign::baseurl('system/configuration'), 64 | 'title' => erTranslationClassLhTranslation::getInstance()->getTranslation('department/edit', 'System configuration') 65 | ), 66 | array( 67 | 'url' => erLhcoreClassDesign::baseurl('instance/list'), 68 | 'title' => erTranslationClassLhTranslation::getInstance()->getTranslation('instance/edit', 'Instances') 69 | ), 70 | array( 71 | 'url' => erLhcoreClassDesign::baseurl('instance/edit') . '/' . $Instance->id, 72 | 'title' => erTranslationClassLhTranslation::getInstance()->getTranslation('instance/edit', 'Instance') . ' - ' . $Instance->address 73 | ), 74 | array( 75 | 'title' => erTranslationClassLhTranslation::getInstance()->getTranslation('instance/edit', 'Child instances') 76 | ) 77 | ); 78 | 79 | ?> -------------------------------------------------------------------------------- /instance/modules/lhinstance/billingpdf.php: -------------------------------------------------------------------------------- 1 | SetCreator(PDF_CREATOR); 12 | $pdf->SetAuthor('LHC'); 13 | $pdf->SetTitle('Invoice'); 14 | 15 | // remove default header/footer 16 | $pdf->setPrintHeader(false); 17 | $pdf->setPrintFooter(false); 18 | 19 | // set default monospaced font 20 | $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); 21 | 22 | // set margins 23 | $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); 24 | 25 | // set auto page breaks 26 | $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); 27 | 28 | // set image scale factor 29 | $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); 30 | 31 | // set some language-dependent strings (optional) 32 | if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { 33 | require_once(dirname(__FILE__).'/lang/eng.php'); 34 | $pdf->setLanguageArray($l); 35 | } 36 | 37 | // --------------------------------------------------------- 38 | 39 | // set font 40 | $pdf->SetFont('freeserif', 'B', 14); 41 | 42 | // add a page 43 | $pdf->AddPage(); 44 | 45 | $cfg = erConfigClassLhConfig::getInstance(); 46 | 47 | // set some text to print 48 | $txt = $cfg->getSetting('site','seller_attributes'); 49 | // print a block of text using Write() 50 | $pdf->Write(0, $txt, '', 0, 'L', true, 0, false, false, 0); 51 | $pdf->SetY(25); 52 | 53 | // set some text to print 54 | //$txt = "Buyer\nremdex@gmail.com"; 55 | $txt = erTranslationClassLhTranslation::getInstance()->getTranslation('instance/edit','Date Issued') . ": ".date('Y-m-d',$invoice->odate)."\n"; 56 | $txt .= erTranslationClassLhTranslation::getInstance()->getTranslation('instance/edit','Invoice number') . ": ".date('Ymd',$invoice->odate).$invoice->id; 57 | 58 | 59 | 60 | // print a block of text using Write() 61 | $pdf->Write(0, $txt, '', 0, 'R', true, 0, false, false, 0); 62 | 63 | // set font 64 | $pdf->SetFont('freeserif', '', 10); 65 | 66 | // --------------------------------------------------------- 67 | //$pdf->SetX(0); 68 | $pdf->SetY(65); 69 | $pdf->writeHTML(" 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 |
".erTranslationClassLhTranslation::getInstance()->getTranslation('instance/edit','Desciption')."".erTranslationClassLhTranslation::getInstance()->getTranslation('instance/edit','Price')."
{$invoice->option_selection1}{$invoice->price_front}
81 | "); 82 | $pdf->Write(0, erTranslationClassLhTranslation::getInstance()->getTranslation('instance/edit','Total').": ".$invoice->price_front, '', 0, 'R', true, 0, false, false, 0); 83 | 84 | $pdf->SetFont('freeserif', '', 14); 85 | $pdf->writeHTML(erTranslationClassLhTranslation::getInstance()->getTranslation('instance/edit','Bill to').":
".$invoice->customer_name 86 | ); 87 | 88 | //Close and output PDF document 89 | $pdf->Output('invoice_'.date('Ymd',$invoice->odate).$invoice->id.'.pdf', 'I'); 90 | 91 | //============================================================+ 92 | // END OF FILE 93 | //============================================================+ 94 | exit; 95 | ?> -------------------------------------------------------------------------------- /instance/modules/lhinstance/deleteapikey.php: -------------------------------------------------------------------------------- 1 | getSetting('site','seller_secret_hash'); 6 | 7 | // Just cleanup if argument is domain with dots. We just remove dots. 8 | $Params['user_parameters']['address'] = str_replace('.', '', (string)$Params['user_parameters']['address']); 9 | 10 | $validateHash = sha1((string)$Params['user_parameters']['address']. (string)$Params['user_parameters']['id'] . $secretHash); 11 | 12 | if ( (string)$Params['user_parameters']['hash'] == $validateHash ) { 13 | 14 | if ( erLhcoreClassInstance::instanceExists((string)$Params['user_parameters']['address']) == false) { 15 | throw new Exception('Instance does not exists!'); 16 | } 17 | 18 | $instance = erLhcoreClassModelInstance::findOne(array('filter' => array('address' => (string)$Params['user_parameters']['address']))); 19 | 20 | $cfg = erConfigClassLhConfig::getInstance(); 21 | 22 | $db = ezcDbInstance::get(); 23 | 24 | $db->query('USE '.$cfg->getSetting( 'db', 'database_user_prefix').$instance->id); 25 | 26 | $apiKey = erLhAbstractModelRestAPIKey::fetch((string)$Params['user_parameters']['id']); 27 | $apiKey->removeThis(); 28 | 29 | echo json_encode(array('error' => 'false','data' => 'removed')); 30 | 31 | } else { 32 | echo json_encode(array('error' => 'true','reason' => 'invalid hash')); 33 | } 34 | 35 | exit; 36 | ?> -------------------------------------------------------------------------------- /instance/modules/lhinstance/fetchinstance.php: -------------------------------------------------------------------------------- 1 | getSetting('site','seller_secret_hash'); 6 | 7 | // Just cleanup if argument is domain with dots. We just remove dots. 8 | $Params['user_parameters']['address'] = str_replace('.', '', (string)$Params['user_parameters']['address']); 9 | 10 | $validateHash = sha1((string)$Params['user_parameters']['address'].$secretHash); 11 | 12 | if ( (string)$Params['user_parameters']['hash'] == $validateHash ) { 13 | 14 | if ( erLhcoreClassInstance::instanceExists((string)$Params['user_parameters']['address']) == false) { 15 | throw new Exception('Instance does not exists!'); 16 | } 17 | 18 | $instance = erLhcoreClassModelInstance::findOne(array('filter' => array('address' => (string)$Params['user_parameters']['address']))); 19 | 20 | echo json_encode(array('error' => 'false','data' => get_object_vars($instance))); 21 | 22 | } else { 23 | echo json_encode(array('error' => 'true','reason' => 'invalid hash')); 24 | } 25 | 26 | exit; 27 | ?> -------------------------------------------------------------------------------- /instance/modules/lhinstance/invoices.php: -------------------------------------------------------------------------------- 1 | items_total = erLhcoreClassModelInstanceInvoice::getCount(); 9 | $pages->translationContext = 'abstract/list'; 10 | $pages->serverURL = erLhcoreClassDesign::baseurl('instance/invoices'); 11 | $pages->setItemsPerPage(20); 12 | $pages->paginate(); 13 | 14 | $tpl->set('pages',$pages); 15 | 16 | $items = array(); 17 | if ($pages->items_total > 0) { 18 | $items = erLhcoreClassModelInstanceInvoice::getList(array('offset' => $pages->low, 'limit' => $pages->items_per_page)); 19 | } 20 | 21 | $tpl->set('items',$items); 22 | $tpl->set('pages',$pages); 23 | 24 | $Result['content'] = $tpl->fetch(); 25 | 26 | $Result['path'] = array(array('url' => erLhcoreClassDesign::baseurl('system/configuration'),'title' => erTranslationClassLhTranslation::getInstance()->getTranslation('system/htmlcode','System configuration')), 27 | array('title' => erTranslationClassLhTranslation::getInstance()->getTranslation('instance/edit','Invoices')) 28 | ); 29 | 30 | } catch (Exception $e) { 31 | print_r($e); 32 | } 33 | 34 | ?> -------------------------------------------------------------------------------- /instance/modules/lhinstance/isfree.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /instance/modules/lhinstance/list.php: -------------------------------------------------------------------------------- 1 | 'extension/instance/classes/filter/filter.php', 'format_filter' => true, 'use_override' => true, 'uparams' => $Params['user_parameters_unordered'])); 8 | $filterParams['is_search'] = true; 9 | } else { 10 | $filterParams = erLhcoreClassSearchHandler::getParams(array('customfilterfile' => 'extension/instance/classes/filter/filter.php', 'format_filter' => true, 'uparams' => $Params['user_parameters_unordered'])); 11 | $filterParams['is_search'] = false; 12 | } 13 | 14 | $append = erLhcoreClassSearchHandler::getURLAppendFromInput($filterParams['input_form']); 15 | 16 | $pages = new lhPaginator(); 17 | $pages->items_total = erLhcoreClassModelInstance::getCount($filterParams['filter']); 18 | $pages->translationContext = 'abstract/list'; 19 | $pages->serverURL = erLhcoreClassDesign::baseurl('instance/list') . $append; 20 | $pages->setItemsPerPage(20); 21 | $pages->paginate(); 22 | 23 | $tpl->set('pages',$pages); 24 | 25 | $filterParams['input_form']->form_action = erLhcoreClassDesign::baseurl('instance/list'); 26 | 27 | $tpl->set('input',$filterParams['input_form']); 28 | 29 | $items = array(); 30 | if ($pages->items_total > 0) { 31 | $items = erLhcoreClassModelInstance::getList(array_merge($filterParams['filter'],array('offset' => $pages->low, 'limit' => $pages->items_per_page,'sort' => 'id ASC'))); 32 | } 33 | 34 | $tpl->set('items',$items); 35 | $tpl->set('pages',$pages); 36 | 37 | $Result['content'] = $tpl->fetch(); 38 | 39 | $Result['path'] = array(array('url' => erLhcoreClassDesign::baseurl('system/configuration'),'title' => erTranslationClassLhTranslation::getInstance()->getTranslation('system/htmlcode','System configuration')), 40 | array('title' => erTranslationClassLhTranslation::getInstance()->getTranslation('instance/edit','Instances')) 41 | ); 42 | } catch (Exception $e) { 43 | print_r($e); 44 | } 45 | 46 | ?> -------------------------------------------------------------------------------- /instance/modules/lhinstance/listexport.php: -------------------------------------------------------------------------------- 1 | getSetting('site','seller_secret_hash'); 8 | 9 | $items = []; 10 | 11 | if (isset($_GET['secret_hash']) && $secretHash == $_GET['secret_hash']) { 12 | foreach (erLhcoreClassModelInstance::getList(['limit' => false]) as $item) { 13 | $items[] = [ 14 | 'address' => $item->address, 15 | 'id' => $item->id 16 | ]; 17 | } 18 | } 19 | 20 | echo json_encode($items); 21 | exit; -------------------------------------------------------------------------------- /instance/modules/lhinstance/rslsuspendinstance.php: -------------------------------------------------------------------------------- 1 | 'true','reason' => 'Could not find a reseller')); 7 | exit; 8 | } 9 | 10 | if ($reseller->is_reseller == 0) { 11 | echo json_encode(array('error' => 'true','reason' => 'This instance is not a reseller')); 12 | exit; 13 | } 14 | 15 | $secretHash = (string)$reseller->reseller_secret_hash; 16 | if ($secretHash == '') { 17 | echo json_encode(array('error' => 'true','reason' => 'This instance does not have a secret hash')); 18 | exit; 19 | } 20 | 21 | $validateHash = sha1((string)$Params['user_parameters']['address'].(int)$Params['user_parameters']['status'].$secretHash); 22 | 23 | if ( (string)$Params['user_parameters']['hash'] == $validateHash ) { 24 | 25 | $list = erLhcoreClassModelInstance::getList(array('filter' => array('address' => (string)$Params['user_parameters']['address']))); 26 | if (!empty($list)){ 27 | $instance = array_shift($list); 28 | 29 | if ($instance->reseller_id != $reseller->id) { 30 | echo json_encode(array('error' => 'false','msg' => 'You do not have permission to edit this instance')); 31 | exit; 32 | }; 33 | 34 | $instance->suspended = (int)$Params['user_parameters']['status'] == 1 ? 1 : 0; 35 | $instance->saveThis(); 36 | 37 | echo json_encode(array('error' => 'false','msg' => 'Instance status updated')); 38 | } else { 39 | echo json_encode(array('error' => 'false','msg' => 'Could not find an instance')); 40 | } 41 | 42 | } else { 43 | echo json_encode(array('error' => 'true','reason' => 'Invalid hash')); 44 | } 45 | 46 | exit; 47 | ?> -------------------------------------------------------------------------------- /instance/modules/lhinstance/rslterminateinstance.php: -------------------------------------------------------------------------------- 1 | 'true','reason' => 'Could not find a reseller')); 9 | exit; 10 | } 11 | 12 | if ($reseller->is_reseller == 0) { 13 | echo json_encode(array('error' => 'true','reason' => 'This instance is not a reseller')); 14 | exit; 15 | } 16 | 17 | $secretHash = (string)$reseller->reseller_secret_hash; 18 | if ($secretHash == '') { 19 | echo json_encode(array('error' => 'true','reason' => 'This instance does not have a secret hash')); 20 | exit; 21 | } 22 | 23 | $validateHash = sha1((string)$Params['user_parameters']['address'].$secretHash); 24 | 25 | if ( (string)$Params['user_parameters']['hash'] == $validateHash ) { 26 | 27 | $list = erLhcoreClassModelInstance::getList(array('filter' => array('address' => (string)$Params['user_parameters']['address']))); 28 | if (!empty($list)){ 29 | $instance = array_shift($list); 30 | 31 | if ($instance->reseller_id != $reseller->id) { 32 | echo json_encode(array('error' => 'false','msg' => 'You do not have permission to edit this instance')); 33 | exit; 34 | }; 35 | 36 | // Instance is initialized 37 | if ($instance->status == 1) { 38 | $instance->terminate = 1; 39 | $instance->saveThis(); 40 | } elseif ($instance->status == 0) { // We can remove instantly instance 41 | erLhcoreClassInstance::getSession()->delete($instance); 42 | } 43 | 44 | echo json_encode(array('error' => 'false','msg' => 'instance terminated')); 45 | } else { 46 | echo json_encode(array('error' => 'false','msg' => 'Could not find an instance')); 47 | } 48 | 49 | } else { 50 | echo json_encode(array('error' => 'true','reason' => 'invalid hash')); 51 | } 52 | 53 | exit; 54 | ?> -------------------------------------------------------------------------------- /instance/modules/lhinstance/suspendinstance.php: -------------------------------------------------------------------------------- 1 | getSetting('site','seller_secret_hash'); 7 | $validateHash = sha1((string)$Params['user_parameters']['address'].(int)$Params['user_parameters']['status'].$secretHash); 8 | 9 | // http://manager.livehelperchat.com/index.php/instance/terminateinstance/remdex/138d07f5c478cbd4d1fcbfcc6ccd49d5961273bd 10 | 11 | if ( (string)$Params['user_parameters']['hash'] == $validateHash ) { 12 | 13 | $list = erLhcoreClassModelInstance::getList(array('filter' => array('address' => (string)$Params['user_parameters']['address']))); 14 | if (!empty($list)){ 15 | $instance = array_shift($list); 16 | 17 | $instance->suspended = (int)$Params['user_parameters']['status'] == 1 ? 1 : 0; 18 | $instance->saveThis(); 19 | 20 | echo json_encode(array('error' => 'false','msg' => 'Instance status updated')); 21 | } else { 22 | echo json_encode(array('error' => 'false','msg' => 'Could not find an instance')); 23 | } 24 | 25 | } else { 26 | echo json_encode(array('error' => 'true','reason' => 'Invalid hash')); 27 | } 28 | 29 | exit; 30 | ?> -------------------------------------------------------------------------------- /instance/modules/lhinstance/terminateinstance.php: -------------------------------------------------------------------------------- 1 | getSetting('site','seller_secret_hash'); 5 | $validateHash = sha1((string)$Params['user_parameters']['address'].$secretHash); 6 | 7 | // http://manager.livehelperchat.com/index.php/instance/terminateinstance/remdex/138d07f5c478cbd4d1fcbfcc6ccd49d5961273bd 8 | 9 | if ( (string)$Params['user_parameters']['hash'] == $validateHash ) { 10 | 11 | $list = erLhcoreClassModelInstance::getList(array('filter' => array('address' => (string)$Params['user_parameters']['address']))); 12 | if (!empty($list)){ 13 | $instance = array_shift($list); 14 | 15 | // Instance is initialized 16 | if ($instance->status == 1) { 17 | $instance->terminate = 1; 18 | $instance->saveThis(); 19 | } elseif ($instance->status == 0) { // We can remove instantly instance 20 | erLhcoreClassInstance::getSession()->delete($instance); 21 | } 22 | 23 | echo json_encode(array('error' => 'false','msg' => 'instance terminated')); 24 | } else { 25 | echo json_encode(array('error' => 'false','msg' => 'Could not find an instance')); 26 | } 27 | 28 | } else { 29 | echo json_encode(array('error' => 'true','reason' => 'invalid hash')); 30 | } 31 | 32 | exit; 33 | ?> -------------------------------------------------------------------------------- /instance/pos/erlhcoreclassmodelinstancealias.php: -------------------------------------------------------------------------------- 1 | table = "lhc_instance_client_alias"; 5 | $def->class = "erLhcoreClassModelInstanceAlias"; 6 | 7 | $def->idProperty = new ezcPersistentObjectIdProperty(); 8 | $def->idProperty->columnName = 'id'; 9 | $def->idProperty->propertyName = 'id'; 10 | $def->idProperty->generator = new ezcPersistentGeneratorDefinition( 'ezcPersistentNativeGenerator' ); 11 | 12 | $def->properties['instance_id'] = new ezcPersistentObjectProperty(); 13 | $def->properties['instance_id']->columnName = 'instance_id'; 14 | $def->properties['instance_id']->propertyName = 'instance_id'; 15 | $def->properties['instance_id']->propertyType = ezcPersistentObjectProperty::PHP_TYPE_INT; 16 | 17 | $def->properties['address'] = new ezcPersistentObjectProperty(); 18 | $def->properties['address']->columnName = 'address'; 19 | $def->properties['address']->propertyName = 'address'; 20 | $def->properties['address']->propertyType = ezcPersistentObjectProperty::PHP_TYPE_STRING; 21 | 22 | $def->properties['url'] = new ezcPersistentObjectProperty(); 23 | $def->properties['url']->columnName = 'url'; 24 | $def->properties['url']->propertyName = 'url'; 25 | $def->properties['url']->propertyType = ezcPersistentObjectProperty::PHP_TYPE_STRING; 26 | 27 | return $def; 28 | 29 | ?> -------------------------------------------------------------------------------- /instance/pos/erlhcoreclassmodelinstanceinvoice.php: -------------------------------------------------------------------------------- 1 | table = "lhc_instance_invoice"; 5 | $def->class = "erLhcoreClassModelInstanceInvoice"; 6 | 7 | $def->idProperty = new ezcPersistentObjectIdProperty(); 8 | $def->idProperty->columnName = 'id'; 9 | $def->idProperty->propertyName = 'id'; 10 | $def->idProperty->generator = new ezcPersistentGeneratorDefinition( 'ezcPersistentNativeGenerator' ); 11 | 12 | $def->properties['txn_id'] = new ezcPersistentObjectProperty(); 13 | $def->properties['txn_id']->columnName = 'txn_id'; 14 | $def->properties['txn_id']->propertyName = 'txn_id'; 15 | $def->properties['txn_id']->propertyType = ezcPersistentObjectProperty::PHP_TYPE_STRING; 16 | 17 | $def->properties['instance_id'] = new ezcPersistentObjectProperty(); 18 | $def->properties['instance_id']->columnName = 'instance_id'; 19 | $def->properties['instance_id']->propertyName = 'instance_id'; 20 | $def->properties['instance_id']->propertyType = ezcPersistentObjectProperty::PHP_TYPE_INT; 21 | 22 | $def->properties['order_item'] = new ezcPersistentObjectProperty(); 23 | $def->properties['order_item']->columnName = 'order_item'; 24 | $def->properties['order_item']->propertyName = 'order_item'; 25 | $def->properties['order_item']->propertyType = ezcPersistentObjectProperty::PHP_TYPE_STRING; 26 | 27 | $def->properties['odate'] = new ezcPersistentObjectProperty(); 28 | $def->properties['odate']->columnName = 'odate'; 29 | $def->properties['odate']->propertyName = 'odate'; 30 | $def->properties['odate']->propertyType = ezcPersistentObjectProperty::PHP_TYPE_INT; 31 | 32 | $def->properties['currency'] = new ezcPersistentObjectProperty(); 33 | $def->properties['currency']->columnName = 'currency'; 34 | $def->properties['currency']->propertyName = 'currency'; 35 | $def->properties['currency']->propertyType = ezcPersistentObjectProperty::PHP_TYPE_STRING; 36 | 37 | $def->properties['amount'] = new ezcPersistentObjectProperty(); 38 | $def->properties['amount']->columnName = 'amount'; 39 | $def->properties['amount']->propertyName = 'amount'; 40 | $def->properties['amount']->propertyType = ezcPersistentObjectProperty::PHP_TYPE_INT; 41 | 42 | $def->properties['log'] = new ezcPersistentObjectProperty(); 43 | $def->properties['log']->columnName = 'log'; 44 | $def->properties['log']->propertyName = 'log'; 45 | $def->properties['log']->propertyType = ezcPersistentObjectProperty::PHP_TYPE_STRING; 46 | 47 | return $def; 48 | 49 | ?> -------------------------------------------------------------------------------- /instancecustomer/classes/erlhcoreclassmodelinstancealias.php: -------------------------------------------------------------------------------- 1 | $this->id, 19 | 'instance_id' => $this->instance_id, 20 | 'address' => $this->address, 21 | 'url' => $this->url, 22 | ); 23 | } 24 | 25 | public function __toString() 26 | { 27 | return $this->address; 28 | } 29 | 30 | public function __get($var) 31 | { 32 | switch ($var) { 33 | case 'instance': 34 | $this->instance = erLhcoreClassModelInstance::fetch($this->instance_id) ; 35 | return $this->instance; 36 | break; 37 | 38 | default: 39 | ; 40 | break; 41 | } 42 | } 43 | 44 | public $id = null; 45 | 46 | public $instance_id = 0; 47 | 48 | public $address = 0; 49 | 50 | public $url = 0; 51 | } 52 | 53 | ?> -------------------------------------------------------------------------------- /instancecustomer/classes/tcpdf_min/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tecnick.com/tcpdf", 3 | "version": "6.0.093", 4 | "homepage": "http://www.tcpdf.org/", 5 | "type": "library", 6 | "description": "TCPDF is a PHP class for generating PDF documents and barcodes.", 7 | "keywords": ["PDF","tcpdf","PDFD32000-2008","qrcode","datamatrix","pdf417","barcodes"], 8 | "license": "LGPLv3", 9 | "authors": [ 10 | { 11 | "name": "Nicola Asuni", 12 | "email": "info@tecnick.com", 13 | "homepage": "http://nicolaasuni.tecnick.com" 14 | } 15 | ], 16 | "require": { 17 | "php": ">=5.3.0" 18 | }, 19 | "autoload": { 20 | "classmap": [ 21 | "fonts", 22 | "config", 23 | "include", 24 | "tcpdf.php", 25 | "tcpdf_parser.php", 26 | "tcpdf_import.php", 27 | "tcpdf_barcodes_1d.php", 28 | "tcpdf_barcodes_2d.php", 29 | "include/tcpdf_colors.php", 30 | "include/tcpdf_filters.php", 31 | "include/tcpdf_font_data.php", 32 | "include/tcpdf_fonts.php", 33 | "include/tcpdf_images.php", 34 | "include/tcpdf_static.php", 35 | "include/barcodes/datamatrix.php", 36 | "include/barcodes/pdf417.php", 37 | "include/barcodes/qrcode.php" 38 | ] 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /instancecustomer/classes/tcpdf_min/fonts/freeserif.ctg.z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiveHelperChat/automated-hosting/cad3f8ffb5b679e0b0859083c3c1167409e7062c/instancecustomer/classes/tcpdf_min/fonts/freeserif.ctg.z -------------------------------------------------------------------------------- /instancecustomer/classes/tcpdf_min/fonts/freeserif.z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiveHelperChat/automated-hosting/cad3f8ffb5b679e0b0859083c3c1167409e7062c/instancecustomer/classes/tcpdf_min/fonts/freeserif.z -------------------------------------------------------------------------------- /instancecustomer/classes/tcpdf_min/fonts/freeserifb.ctg.z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiveHelperChat/automated-hosting/cad3f8ffb5b679e0b0859083c3c1167409e7062c/instancecustomer/classes/tcpdf_min/fonts/freeserifb.ctg.z -------------------------------------------------------------------------------- /instancecustomer/classes/tcpdf_min/fonts/freeserifb.z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiveHelperChat/automated-hosting/cad3f8ffb5b679e0b0859083c3c1167409e7062c/instancecustomer/classes/tcpdf_min/fonts/freeserifb.z -------------------------------------------------------------------------------- /instancecustomer/classes/tcpdf_min/fonts/freeserifbi.ctg.z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiveHelperChat/automated-hosting/cad3f8ffb5b679e0b0859083c3c1167409e7062c/instancecustomer/classes/tcpdf_min/fonts/freeserifbi.ctg.z -------------------------------------------------------------------------------- /instancecustomer/classes/tcpdf_min/fonts/freeserifbi.z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiveHelperChat/automated-hosting/cad3f8ffb5b679e0b0859083c3c1167409e7062c/instancecustomer/classes/tcpdf_min/fonts/freeserifbi.z -------------------------------------------------------------------------------- /instancecustomer/classes/tcpdf_min/fonts/freeserifi.ctg.z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiveHelperChat/automated-hosting/cad3f8ffb5b679e0b0859083c3c1167409e7062c/instancecustomer/classes/tcpdf_min/fonts/freeserifi.ctg.z -------------------------------------------------------------------------------- /instancecustomer/classes/tcpdf_min/fonts/freeserifi.z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiveHelperChat/automated-hosting/cad3f8ffb5b679e0b0859083c3c1167409e7062c/instancecustomer/classes/tcpdf_min/fonts/freeserifi.z -------------------------------------------------------------------------------- /instancecustomer/classes/tcpdf_min/fonts/helvetica.php: -------------------------------------------------------------------------------- 1 | 32,'FontBBox'=>'[-166 -225 1000 931]','ItalicAngle'=>0,'Ascent'=>931,'Descent'=>-225,'Leading'=>0,'CapHeight'=>718,'XHeight'=>523,'StemV'=>88,'StemH'=>76,'AvgWidth'=>513,'MaxWidth'=>1015,'MissingWidth'=>513); 11 | $cw=array(0=>500,1=>500,2=>500,3=>500,4=>500,5=>500,6=>500,7=>500,8=>500,9=>500,10=>500,11=>500,12=>500,13=>500,14=>500,15=>500,16=>500,17=>500,18=>500,19=>500,20=>500,21=>500,22=>500,23=>500,24=>500,25=>500,26=>500,27=>500,28=>500,29=>500,30=>500,31=>500,32=>278,33=>278,34=>355,35=>556,36=>556,37=>889,38=>667,39=>191,40=>333,41=>333,42=>389,43=>584,44=>278,45=>333,46=>278,47=>278,48=>556,49=>556,50=>556,51=>556,52=>556,53=>556,54=>556,55=>556,56=>556,57=>556,58=>278,59=>278,60=>584,61=>584,62=>584,63=>556,64=>1015,65=>667,66=>667,67=>722,68=>722,69=>667,70=>611,71=>778,72=>722,73=>278,74=>500,75=>667,76=>556,77=>833,78=>722,79=>778,80=>667,81=>778,82=>722,83=>667,84=>611,85=>722,86=>667,87=>944,88=>667,89=>667,90=>611,91=>278,92=>278,93=>277,94=>469,95=>556,96=>333,97=>556,98=>556,99=>500,100=>556,101=>556,102=>278,103=>556,104=>556,105=>222,106=>222,107=>500,108=>222,109=>833,110=>556,111=>556,112=>556,113=>556,114=>333,115=>500,116=>278,117=>556,118=>500,119=>722,120=>500,121=>500,122=>500,123=>334,124=>260,125=>334,126=>584,127=>500,128=>655,129=>500,130=>222,131=>278,132=>333,133=>1000,134=>556,135=>556,136=>333,137=>1000,138=>667,139=>250,140=>1000,141=>500,142=>611,143=>500,144=>500,145=>222,146=>221,147=>333,148=>333,149=>350,150=>556,151=>1000,152=>333,153=>1000,154=>500,155=>250,156=>938,157=>500,158=>500,159=>667,160=>278,161=>278,162=>556,163=>556,164=>556,165=>556,166=>260,167=>556,168=>333,169=>737,170=>370,171=>448,172=>584,173=>333,174=>737,175=>333,176=>606,177=>584,178=>350,179=>350,180=>333,181=>556,182=>537,183=>278,184=>333,185=>350,186=>365,187=>448,188=>869,189=>869,190=>879,191=>556,192=>667,193=>667,194=>667,195=>667,196=>667,197=>667,198=>1000,199=>722,200=>667,201=>667,202=>667,203=>667,204=>278,205=>278,206=>278,207=>278,208=>722,209=>722,210=>778,211=>778,212=>778,213=>778,214=>778,215=>584,216=>778,217=>722,218=>722,219=>722,220=>722,221=>667,222=>666,223=>611,224=>556,225=>556,226=>556,227=>556,228=>556,229=>556,230=>896,231=>500,232=>556,233=>556,234=>556,235=>556,236=>251,237=>251,238=>251,239=>251,240=>556,241=>556,242=>556,243=>556,244=>556,245=>556,246=>556,247=>584,248=>611,249=>556,250=>556,251=>556,252=>556,253=>500,254=>555,255=>500); 12 | 13 | // --- EOF --- 14 | -------------------------------------------------------------------------------- /instancecustomer/classes/tcpdf_min/fonts/helveticab.php: -------------------------------------------------------------------------------- 1 | 32,'FontBBox'=>'[-170 -228 1003 962]','ItalicAngle'=>0,'Ascent'=>962,'Descent'=>-228,'Leading'=>0,'CapHeight'=>718,'XHeight'=>532,'StemV'=>140,'StemH'=>118,'AvgWidth'=>535,'MaxWidth'=>1000,'MissingWidth'=>535); 11 | $cw=array(0=>278,1=>278,2=>278,3=>278,4=>278,5=>278,6=>278,7=>278,8=>278,9=>278,10=>278,11=>278,12=>278,13=>278,14=>278,15=>278,16=>278,17=>278,18=>278,19=>278,20=>278,21=>278,22=>278,23=>278,24=>278,25=>278,26=>278,27=>278,28=>278,29=>278,30=>278,31=>278,32=>278,33=>333,34=>474,35=>556,36=>556,37=>889,38=>722,39=>238,40=>333,41=>333,42=>389,43=>584,44=>278,45=>333,46=>278,47=>278,48=>556,49=>556,50=>556,51=>556,52=>556,53=>556,54=>556,55=>556,56=>556,57=>556,58=>333,59=>333,60=>584,61=>584,62=>584,63=>611,64=>975,65=>722,66=>722,67=>722,68=>722,69=>667,70=>611,71=>778,72=>722,73=>278,74=>556,75=>722,76=>611,77=>833,78=>722,79=>778,80=>667,81=>778,82=>722,83=>667,84=>611,85=>722,86=>667,87=>944,88=>667,89=>667,90=>611,91=>333,92=>278,93=>333,94=>584,95=>556,96=>333,97=>556,98=>611,99=>556,100=>611,101=>556,102=>333,103=>611,104=>611,105=>278,106=>278,107=>556,108=>278,109=>889,110=>611,111=>611,112=>611,113=>611,114=>389,115=>556,116=>333,117=>611,118=>556,119=>778,120=>556,121=>556,122=>500,123=>389,124=>280,125=>389,126=>584,127=>350,128=>556,129=>350,130=>278,131=>556,132=>500,133=>1000,134=>556,135=>556,136=>333,137=>1000,138=>667,139=>333,140=>1000,141=>350,142=>611,143=>350,144=>350,145=>278,146=>278,147=>500,148=>500,149=>350,150=>556,151=>1000,152=>333,153=>1000,154=>556,155=>333,156=>944,157=>350,158=>500,159=>667,160=>278,161=>333,162=>556,163=>556,164=>556,165=>556,166=>280,167=>556,168=>333,169=>737,170=>370,171=>556,172=>584,173=>333,174=>737,175=>333,176=>400,177=>584,178=>333,179=>333,180=>333,181=>611,182=>556,183=>278,184=>333,185=>333,186=>365,187=>556,188=>834,189=>834,190=>834,191=>611,192=>722,193=>722,194=>722,195=>722,196=>722,197=>722,198=>1000,199=>722,200=>667,201=>667,202=>667,203=>667,204=>278,205=>278,206=>278,207=>278,208=>722,209=>722,210=>778,211=>778,212=>778,213=>778,214=>778,215=>584,216=>778,217=>722,218=>722,219=>722,220=>722,221=>667,222=>667,223=>611,224=>556,225=>556,226=>556,227=>556,228=>556,229=>556,230=>889,231=>556,232=>556,233=>556,234=>556,235=>556,236=>278,237=>278,238=>278,239=>278,240=>611,241=>611,242=>611,243=>611,244=>611,245=>611,246=>611,247=>584,248=>611,249=>611,250=>611,251=>611,252=>611,253=>556,254=>611,255=>556); 12 | // --- EOF --- 13 | -------------------------------------------------------------------------------- /instancecustomer/classes/tcpdf_min/fonts/helveticabi.php: -------------------------------------------------------------------------------- 1 | 96,'FontBBox'=>'[-174 -228 1114 962]','ItalicAngle'=>-12,'Ascent'=>962,'Descent'=>-228,'Leading'=>0,'CapHeight'=>718,'XHeight'=>532,'StemV'=>140,'StemH'=>118,'AvgWidth'=>535,'MaxWidth'=>1000,'MissingWidth'=>535); 11 | $cw=array(0=>278,1=>278,2=>278,3=>278,4=>278,5=>278,6=>278,7=>278,8=>278,9=>278,10=>278,11=>278,12=>278,13=>278,14=>278,15=>278,16=>278,17=>278,18=>278,19=>278,20=>278,21=>278,22=>278,23=>278,24=>278,25=>278,26=>278,27=>278,28=>278,29=>278,30=>278,31=>278,32=>278,33=>333,34=>474,35=>556,36=>556,37=>889,38=>722,39=>238,40=>333,41=>333,42=>389,43=>584,44=>278,45=>333,46=>278,47=>278,48=>556,49=>556,50=>556,51=>556,52=>556,53=>556,54=>556,55=>556,56=>556,57=>556,58=>333,59=>333,60=>584,61=>584,62=>584,63=>611,64=>975,65=>722,66=>722,67=>722,68=>722,69=>667,70=>611,71=>778,72=>722,73=>278,74=>556,75=>722,76=>611,77=>833,78=>722,79=>778,80=>667,81=>778,82=>722,83=>667,84=>611,85=>722,86=>667,87=>944,88=>667,89=>667,90=>611,91=>333,92=>278,93=>333,94=>584,95=>556,96=>333,97=>556,98=>611,99=>556,100=>611,101=>556,102=>333,103=>611,104=>611,105=>278,106=>278,107=>556,108=>278,109=>889,110=>611,111=>611,112=>611,113=>611,114=>389,115=>556,116=>333,117=>611,118=>556,119=>778,120=>556,121=>556,122=>500,123=>389,124=>280,125=>389,126=>584,127=>350,128=>556,129=>350,130=>278,131=>556,132=>500,133=>1000,134=>556,135=>556,136=>333,137=>1000,138=>667,139=>333,140=>1000,141=>350,142=>611,143=>350,144=>350,145=>278,146=>278,147=>500,148=>500,149=>350,150=>556,151=>1000,152=>333,153=>1000,154=>556,155=>333,156=>944,157=>350,158=>500,159=>667,160=>278,161=>333,162=>556,163=>556,164=>556,165=>556,166=>280,167=>556,168=>333,169=>737,170=>370,171=>556,172=>584,173=>333,174=>737,175=>333,176=>400,177=>584,178=>333,179=>333,180=>333,181=>611,182=>556,183=>278,184=>333,185=>333,186=>365,187=>556,188=>834,189=>834,190=>834,191=>611,192=>722,193=>722,194=>722,195=>722,196=>722,197=>722,198=>1000,199=>722,200=>667,201=>667,202=>667,203=>667,204=>278,205=>278,206=>278,207=>278,208=>722,209=>722,210=>778,211=>778,212=>778,213=>778,214=>778,215=>584,216=>778,217=>722,218=>722,219=>722,220=>722,221=>667,222=>667,223=>611,224=>556,225=>556,226=>556,227=>556,228=>556,229=>556,230=>889,231=>556,232=>556,233=>556,234=>556,235=>556,236=>278,237=>278,238=>278,239=>278,240=>611,241=>611,242=>611,243=>611,244=>611,245=>611,246=>611,247=>584,248=>611,249=>611,250=>611,251=>611,252=>611,253=>556,254=>611,255=>556); 12 | // --- EOF --- 13 | -------------------------------------------------------------------------------- /instancecustomer/classes/tcpdf_min/fonts/helveticai.php: -------------------------------------------------------------------------------- 1 | 96,'FontBBox'=>'[-170 -225 1116 931]','ItalicAngle'=>-12,'Ascent'=>931,'Descent'=>-225,'Leading'=>0,'CapHeight'=>718,'XHeight'=>523,'StemV'=>88,'StemH'=>76,'AvgWidth'=>513,'MaxWidth'=>1015,'MissingWidth'=>513); 11 | $cw=array(0=>278,1=>278,2=>278,3=>278,4=>278,5=>278,6=>278,7=>278,8=>278,9=>278,10=>278,11=>278,12=>278,13=>278,14=>278,15=>278,16=>278,17=>278,18=>278,19=>278,20=>278,21=>278,22=>278,23=>278,24=>278,25=>278,26=>278,27=>278,28=>278,29=>278,30=>278,31=>278,32=>278,33=>278,34=>355,35=>556,36=>556,37=>889,38=>667,39=>191,40=>333,41=>333,42=>389,43=>584,44=>278,45=>333,46=>278,47=>278,48=>556,49=>556,50=>556,51=>556,52=>556,53=>556,54=>556,55=>556,56=>556,57=>556,58=>278,59=>278,60=>584,61=>584,62=>584,63=>556,64=>1015,65=>667,66=>667,67=>722,68=>722,69=>667,70=>611,71=>778,72=>722,73=>278,74=>500,75=>667,76=>556,77=>833,78=>722,79=>778,80=>667,81=>778,82=>722,83=>667,84=>611,85=>722,86=>667,87=>944,88=>667,89=>667,90=>611,91=>278,92=>278,93=>278,94=>469,95=>556,96=>333,97=>556,98=>556,99=>500,100=>556,101=>556,102=>278,103=>556,104=>556,105=>222,106=>222,107=>500,108=>222,109=>833,110=>556,111=>556,112=>556,113=>556,114=>333,115=>500,116=>278,117=>556,118=>500,119=>722,120=>500,121=>500,122=>500,123=>334,124=>260,125=>334,126=>584,127=>350,128=>556,129=>350,130=>222,131=>556,132=>333,133=>1000,134=>556,135=>556,136=>333,137=>1000,138=>667,139=>333,140=>1000,141=>350,142=>611,143=>350,144=>350,145=>222,146=>222,147=>333,148=>333,149=>350,150=>556,151=>1000,152=>333,153=>1000,154=>500,155=>333,156=>944,157=>350,158=>500,159=>667,160=>278,161=>333,162=>556,163=>556,164=>556,165=>556,166=>260,167=>556,168=>333,169=>737,170=>370,171=>556,172=>584,173=>333,174=>737,175=>333,176=>400,177=>584,178=>333,179=>333,180=>333,181=>556,182=>537,183=>278,184=>333,185=>333,186=>365,187=>556,188=>834,189=>834,190=>834,191=>611,192=>667,193=>667,194=>667,195=>667,196=>667,197=>667,198=>1000,199=>722,200=>667,201=>667,202=>667,203=>667,204=>278,205=>278,206=>278,207=>278,208=>722,209=>722,210=>778,211=>778,212=>778,213=>778,214=>778,215=>584,216=>778,217=>722,218=>722,219=>722,220=>722,221=>667,222=>667,223=>611,224=>556,225=>556,226=>556,227=>556,228=>556,229=>556,230=>889,231=>500,232=>556,233=>556,234=>556,235=>556,236=>278,237=>278,238=>278,239=>278,240=>556,241=>556,242=>556,243=>556,244=>556,245=>556,246=>556,247=>584,248=>611,249=>556,250=>556,251=>556,252=>556,253=>500,254=>556,255=>500); 12 | // --- EOF --- 13 | -------------------------------------------------------------------------------- /instancecustomer/classes/tcpdf_min/fonts/symbol.php: -------------------------------------------------------------------------------- 1 | 4,'FontBBox'=>'[-180 -293 1090 1010]','ItalicAngle'=>0,'Ascent'=>1010,'Descent'=>-293,'Leading'=>0,'CapHeight'=>1010,'StemV'=>85,'StemH'=>92,'AvgWidth'=>587,'MaxWidth'=>1042,'MissingWidth'=>587); 11 | $cw=array(0=>587,1=>587,2=>587,3=>587,4=>587,5=>587,6=>587,7=>587,8=>587,9=>587,10=>587,11=>587,12=>587,13=>587,14=>587,15=>587,16=>587,17=>587,18=>587,19=>587,20=>587,21=>587,22=>587,23=>587,24=>587,25=>587,26=>587,27=>587,28=>587,29=>587,30=>587,31=>587,32=>250,33=>333,34=>713,35=>500,36=>549,37=>833,38=>778,39=>439,40=>333,41=>333,42=>500,43=>549,44=>250,45=>549,46=>250,47=>278,48=>500,49=>500,50=>500,51=>500,52=>500,53=>500,54=>500,55=>500,56=>500,57=>500,58=>278,59=>278,60=>549,61=>549,62=>549,63=>444,64=>549,65=>722,66=>667,67=>722,68=>612,69=>611,70=>763,71=>603,72=>722,73=>333,74=>631,75=>722,76=>686,77=>889,78=>722,79=>722,80=>768,81=>741,82=>556,83=>592,84=>611,85=>690,86=>439,87=>768,88=>645,89=>795,90=>611,91=>333,92=>863,93=>333,94=>658,95=>500,96=>500,97=>631,98=>549,99=>549,100=>494,101=>439,102=>521,103=>411,104=>603,105=>329,106=>603,107=>549,108=>549,109=>576,110=>521,111=>549,112=>549,113=>521,114=>549,115=>603,116=>439,117=>576,118=>713,119=>686,120=>493,121=>686,122=>494,123=>480,124=>200,125=>480,126=>549,127=>587,128=>587,129=>587,130=>587,131=>587,132=>587,133=>587,134=>587,135=>587,136=>587,137=>587,138=>587,139=>587,140=>587,141=>587,142=>587,143=>587,144=>587,145=>587,146=>587,147=>587,148=>587,149=>587,150=>587,151=>587,152=>587,153=>587,154=>587,155=>587,156=>587,157=>587,158=>587,159=>587,160=>750,161=>620,162=>247,163=>549,164=>167,165=>713,166=>500,167=>753,168=>753,169=>753,170=>753,171=>1042,172=>987,173=>603,174=>987,175=>603,176=>400,177=>549,178=>411,179=>549,180=>549,181=>713,182=>494,183=>460,184=>549,185=>549,186=>549,187=>549,188=>1000,189=>603,190=>1000,191=>658,192=>823,193=>686,194=>795,195=>987,196=>768,197=>768,198=>823,199=>768,200=>768,201=>713,202=>713,203=>713,204=>713,205=>713,206=>713,207=>713,208=>768,209=>713,210=>790,211=>790,212=>890,213=>823,214=>549,215=>250,216=>713,217=>603,218=>603,219=>1042,220=>987,221=>603,222=>987,223=>603,224=>494,225=>329,226=>790,227=>790,228=>786,229=>713,230=>384,231=>384,232=>384,233=>384,234=>384,235=>384,236=>494,237=>494,238=>494,239=>494,240=>587,241=>329,242=>274,243=>686,244=>686,245=>686,246=>384,247=>384,248=>384,249=>384,250=>384,251=>384,252=>494,253=>494,254=>494,255=>587); 12 | // --- EOF --- 13 | -------------------------------------------------------------------------------- /instancecustomer/classes/tcpdf_min/fonts/zapfdingbats.php: -------------------------------------------------------------------------------- 1 | 4,'FontBBox'=>'[-1 -143 981 820]','ItalicAngle'=>0,'Ascent'=>820,'Descent'=>-143,'Leading'=>0,'CapHeight'=>820,'StemV'=>90,'StemH'=>28,'AvgWidth'=>746,'MaxWidth'=>1016,'MissingWidth'=>746); 11 | $cw=array(0=>746,1=>746,2=>746,3=>746,4=>746,5=>746,6=>746,7=>746,8=>746,9=>746,10=>746,11=>746,12=>746,13=>746,14=>746,15=>746,16=>746,17=>746,18=>746,19=>746,20=>746,21=>746,22=>746,23=>746,24=>746,25=>746,26=>746,27=>746,28=>746,29=>746,30=>746,31=>746,32=>278,33=>974,34=>961,35=>974,36=>980,37=>719,38=>789,39=>790,40=>791,41=>690,42=>960,43=>939,44=>549,45=>855,46=>911,47=>933,48=>911,49=>945,50=>974,51=>755,52=>846,53=>762,54=>761,55=>571,56=>677,57=>763,58=>760,59=>759,60=>754,61=>494,62=>552,63=>537,64=>577,65=>692,66=>786,67=>788,68=>788,69=>790,70=>793,71=>794,72=>816,73=>823,74=>789,75=>841,76=>823,77=>833,78=>816,79=>831,80=>923,81=>744,82=>723,83=>749,84=>790,85=>792,86=>695,87=>776,88=>768,89=>792,90=>759,91=>707,92=>708,93=>682,94=>701,95=>826,96=>815,97=>789,98=>789,99=>707,100=>687,101=>696,102=>689,103=>786,104=>787,105=>713,106=>791,107=>785,108=>791,109=>873,110=>761,111=>762,112=>762,113=>759,114=>759,115=>892,116=>892,117=>788,118=>784,119=>438,120=>138,121=>277,122=>415,123=>392,124=>392,125=>668,126=>668,127=>746,128=>390,129=>390,130=>317,131=>317,132=>276,133=>276,134=>509,135=>509,136=>410,137=>410,138=>234,139=>234,140=>334,141=>334,142=>746,143=>746,144=>746,145=>746,146=>746,147=>746,148=>746,149=>746,150=>746,151=>746,152=>746,153=>746,154=>746,155=>746,156=>746,157=>746,158=>746,159=>746,160=>746,161=>732,162=>544,163=>544,164=>910,165=>667,166=>760,167=>760,168=>776,169=>595,170=>694,171=>626,172=>788,173=>788,174=>788,175=>788,176=>788,177=>788,178=>788,179=>788,180=>788,181=>788,182=>788,183=>788,184=>788,185=>788,186=>788,187=>788,188=>788,189=>788,190=>788,191=>788,192=>788,193=>788,194=>788,195=>788,196=>788,197=>788,198=>788,199=>788,200=>788,201=>788,202=>788,203=>788,204=>788,205=>788,206=>788,207=>788,208=>788,209=>788,210=>788,211=>788,212=>894,213=>838,214=>1016,215=>458,216=>748,217=>924,218=>748,219=>918,220=>927,221=>928,222=>928,223=>834,224=>873,225=>828,226=>924,227=>924,228=>917,229=>930,230=>931,231=>463,232=>883,233=>836,234=>836,235=>867,236=>867,237=>696,238=>696,239=>874,240=>746,241=>874,242=>760,243=>946,244=>771,245=>865,246=>771,247=>888,248=>967,249=>888,250=>831,251=>873,252=>927,253=>970,254=>918,255=>746); 12 | // --- EOF --- 13 | -------------------------------------------------------------------------------- /instancecustomer/classes/tcpdf_min/include/sRGB.icc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiveHelperChat/automated-hosting/cad3f8ffb5b679e0b0859083c3c1167409e7062c/instancecustomer/classes/tcpdf_min/include/sRGB.icc -------------------------------------------------------------------------------- /instancecustomer/classes/tcpdf_min/tools/.htaccess: -------------------------------------------------------------------------------- 1 | deny from all 2 | -------------------------------------------------------------------------------- /instancecustomer/classes/tcpdf_min/tools/convert_fonts_examples.txt: -------------------------------------------------------------------------------- 1 | ./tcpdf_addfont.php -b -t Type1 -f 4 -e symbol -i pdfasymbol.pfb 2 | ./tcpdf_addfont.php -b -t Type1 -f 4 -i pdfazapfdingbats.pfb 3 | ./tcpdf_addfont.php -b -t Type1 -f 32 -e cp1252 -i pdfatimes.pfb,pdfatimesb.pfb,pdfahelvetica.pfb,pdfahelveticab.pfb 4 | ./tcpdf_addfont.php -b -t Type1 -f 33 -e cp1252 -i pdfacourier.pfb,pdfacourierb.pfb 5 | ./tcpdf_addfont.php -b -t Type1 -f 96 -e cp1252 -i pdfahelveticabi.pfb,pdfahelveticai.pfb,pdfatimesi.pfb,pdfatimesbi.pfb 6 | ./tcpdf_addfont.php -b -t Type1 -f 97 -e cp1252 -i pdfacourieri.pfb,pdfacourierbi.pfb 7 | 8 | 9 | ./tcpdf_addfont.php -b -t TrueTypeUnicode -f 32 -i DejaVuSans.ttf,DejaVuSans-Bold.ttf,DejaVuSansCondensed.ttf,DejaVuSansCondensed-Bold.ttf,DejaVuSans-ExtraLight.ttf,DejaVuSerif.ttf,DejaVuSerif-Bold.ttf,DejaVuSerifCondensed.ttf,DejaVuSerifCondensed-Bold.ttf 10 | ./tcpdf_addfont.php -b -t TrueTypeUnicode -f 33 -i DejaVuSansMono.ttf,DejaVuSansMono-Bold.ttf 11 | ./tcpdf_addfont.php -b -t TrueTypeUnicode -f 96 -i DejaVuSans-BoldOblique.ttf,DejaVuSansCondensed-BoldOblique.ttf,DejaVuSansCondensed-Oblique.ttf,DejaVuSerifCondensed-BoldItalic.ttf,DejaVuSerifCondensed-Italic.ttf,DejaVuSerif-Italic.ttf,DejaVuSerif-BoldItalic.ttf,DejaVuSans-Oblique.ttf 12 | ./tcpdf_addfont.php -b -t TrueTypeUnicode -f 97 -i DejaVuSansMono-BoldOblique.ttf,DejaVuSansMono-Oblique.ttf 13 | 14 | 15 | 16 | ./tcpdf_addfont.php -b -t TrueTypeUnicode -f 32 -i FreeSans.ttf,FreeSansBold.ttf,FreeSerif.ttf,FreeSerifBold.ttf 17 | ./tcpdf_addfont.php -b -t TrueTypeUnicode -f 33 -i FreeMono.ttf,FreeMonoBold.ttf 18 | ./tcpdf_addfont.php -b -t TrueTypeUnicode -f 96 -i FreeSansBoldOblique.ttf,FreeSansOblique.ttf,FreeSerifBoldItalic.ttf,FreeSerifItalic.ttf 19 | ./tcpdf_addfont.php -b -t TrueTypeUnicode -f 97 -i FreeMonoBoldOblique.ttf,FreeMonoOblique.ttf 20 | 21 | 22 | ./tcpdf_addfont.php -b -t TrueTypeUnicode -i aeAlArabiya.ttf,aeFurat.ttf 23 | 24 | 25 | ./tcpdf_addfont.php -b -t CID0JP -f 32 -i cid0jp.ttf 26 | ./tcpdf_addfont.php -b -t CID0KR -f 32 -i cid0kr.ttf 27 | ./tcpdf_addfont.php -b -t CID0CS -f 32 -i cid0cs.ttf 28 | ./tcpdf_addfont.php -b -t CID0CT -f 32 -i cid0ct.ttf 29 | -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiveHelperChat/automated-hosting/cad3f8ffb5b679e0b0859083c3c1167409e7062c/instancecustomer/design/instancecustomertheme/images/favicon.ico -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/images/general/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiveHelperChat/automated-hosting/cad3f8ffb5b679e0b0859083c3c1167409e7062c/instancecustomer/design/instancecustomertheme/images/general/logo.png -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/images/general/logo_user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiveHelperChat/automated-hosting/cad3f8ffb5b679e0b0859083c3c1167409e7062c/instancecustomer/design/instancecustomertheme/images/general/logo_user.png -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/images/notification/notification.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiveHelperChat/automated-hosting/cad3f8ffb5b679e0b0859083c3c1167409e7062c/instancecustomer/design/instancecustomertheme/images/notification/notification.png -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/chat_tabs/actions/attatch_file_pre.tpl.php: -------------------------------------------------------------------------------- 1 | files_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/chat_tabs/actions/blockuser_pre.tpl.php: -------------------------------------------------------------------------------- 1 | blocked_supported;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/chat_tabs/actions/cobrowse_pre.tpl.php: -------------------------------------------------------------------------------- 1 | cobrowse_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/chat_tabs/actions/speech_pre.tpl.php: -------------------------------------------------------------------------------- 1 | speech_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/chat_tabs/actions/transfer_pre.tpl.php: -------------------------------------------------------------------------------- 1 | transfer_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/chat_tabs/chat_translation_pre.tpl.php: -------------------------------------------------------------------------------- 1 | atranslations_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/chat_tabs/chat_translation_tab_pre.tpl.php: -------------------------------------------------------------------------------- 1 | atranslations_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/chat_tabs/footprint_tab_pre.tpl.php: -------------------------------------------------------------------------------- 1 | footprint_supported == 1; ?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/chat_tabs/footprint_tab_tab_pre.tpl.php: -------------------------------------------------------------------------------- 1 | footprint_supported == 1; ?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/chat_tabs/information_tab_user_files_tab_pre.tpl.php: -------------------------------------------------------------------------------- 1 | files_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/chat_tabs/map_tab_pre.tpl.php: -------------------------------------------------------------------------------- 1 | onlinevisitortrck_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/chat_tabs/map_tab_tab_pre.tpl.php: -------------------------------------------------------------------------------- 1 | onlinevisitortrck_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/chat_tabs/online_user_info_chats_pre.tpl.php: -------------------------------------------------------------------------------- 1 | previouschats_supported == 1?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/chat_tabs/online_user_info_pre.tpl.php: -------------------------------------------------------------------------------- 1 | onlinevisitortrck_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/chat_tabs/online_user_info_tab_chats_pre.tpl.php: -------------------------------------------------------------------------------- 1 | previouschats_supported == 1?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/chat_tabs/online_user_info_tab_pre.tpl.php: -------------------------------------------------------------------------------- 1 | onlinevisitortrck_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/chat_tabs/operator_remarks_pre.tpl.php: -------------------------------------------------------------------------------- 1 | chatremarks_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/chat_tabs/operator_remarks_tab_pre.tpl.php: -------------------------------------------------------------------------------- 1 | chatremarks_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/chat_tabs/operator_screenshot_pre.tpl.php: -------------------------------------------------------------------------------- 1 | screenshot_supported == 1 ?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/chat_tabs/operator_screenshot_tab_pre.tpl.php: -------------------------------------------------------------------------------- 1 | screenshot_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/customer_user_settings/user_file_upload_pre.tpl.php: -------------------------------------------------------------------------------- 1 | files_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/listchatconfig/screen_sharing.tpl.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/listchatconfig/screen_sharing_tab.tpl.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/lists/angular_online_op_list_tab_pre.tpl.php: -------------------------------------------------------------------------------- 1 | operatorschat_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/lists_panels/basic_chat_enabled.tpl.php: -------------------------------------------------------------------------------- 1 | chat_supported == 1?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/onlineusers/section_map_online_pre.tpl.php: -------------------------------------------------------------------------------- 1 | onlinevisitortrck_supported == 1?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/onlineusers/section_map_online_tab_pre.tpl.php: -------------------------------------------------------------------------------- 1 | onlinevisitortrck_supported == 1?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/onlineusers/section_online_users_pre.tpl.php: -------------------------------------------------------------------------------- 1 | onlinevisitortrck_supported == 1?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/onlineusers/section_online_users_tab_pre.tpl.php: -------------------------------------------------------------------------------- 1 | onlinevisitortrck_supported == 1?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/part/canned_messages_action_pre.tpl.php: -------------------------------------------------------------------------------- 1 | cannedmsg_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/part/offline_form_disabled.tpl.php: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/part/offline_form_pre.tpl.php: -------------------------------------------------------------------------------- 1 | offline_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/part/offline_form_startchat_disabled.tpl.php: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/part/offline_from_startchat_pre.tpl.php: -------------------------------------------------------------------------------- 1 | offline_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/part/speech_action_pre.tpl.php: -------------------------------------------------------------------------------- 1 | speech_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/part/translation_action_data.tpl.php: -------------------------------------------------------------------------------- 1 | translation_config : $dataChatTranslation; ?> 2 | -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/part/translation_action_pre.tpl.php: -------------------------------------------------------------------------------- 1 | atranslations_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/startchat_pre.tpl.php: -------------------------------------------------------------------------------- 1 | is_active;?> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/widget_brand/chatbox.tpl.php: -------------------------------------------------------------------------------- 1 | show_copyright == 1) : ?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/widget_brand/faq.tpl.php: -------------------------------------------------------------------------------- 1 | show_copyright == 1) : ?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/widget_brand/live_help.tpl.php: -------------------------------------------------------------------------------- 1 | copyright_image_url !== false && strpos($theme->copyright_image_url, 'http') !== false); 2 | if ($theme === false || $theme->show_copyright == 1) : ?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhchat/widget_brand/questionary.tpl.php: -------------------------------------------------------------------------------- 1 | show_copyright == 1) : ?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhcobrowse/operatorinit.tpl.php: -------------------------------------------------------------------------------- 1 | var lhcbrowserOpeator = new LHCCoBrowserOperator(window,document,{'formsenabled':cobrowse_forms_supported == 1 ? print 'true' : print 'false'?>,'lhcbase':'','httpsmode':,'disablejs':current_value == 1 ? 'true' : 'false'?>,options:{opcontrol:$('#status-icon-control'),opscroll:$('#sync-user-scroll'),opmouse:$('#show-operator-mouse'),scroll:$('#scroll-user-window')},'cpos':{w:w?>,wh:wh?>},'cursor':'current_value?>//','nodejssettings':{'nodejssocket':current_value)?>,'nodejshost':current_value)?>,'path':'current_value?>','secure':current_value == 1) : ?>truefalse},'nodejsenabled':current_value?>,'chat_hash':'chat->hash?>','chat_id':chat_id?>, 'base':url)?>, 'initialize' : initialize != '' ? $browse->initialize : 'null'?>}); -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhcobrowse/userinit.tpl.php: -------------------------------------------------------------------------------- 1 | this.cobrowser = new LHCCoBrowser({'chat_hash':this.sharehash,'nodejssettings':{'nodejssocket':current_value)?>,'nodejshost':current_value)?>,'path':'current_value?>','secure':current_value == 1) : ?>truefalse},'nodejsenabled':current_value?>,'trans':{'operator_watching':getTranslation('chat/getstatus','Screen shared, click to finish'),ENT_QUOTES))?>},'url':'current_value?>//'+lh_inst.lang+'/cobrowse/storenodemap'+inst.getAppendCookieArguments()+'/?url='+encodeURIComponent(location.href.match(/^(.*\/)[^\/]*$/)[1])}); 2 | this.cobrowser.startMirroring(); -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhdepartament/xmpp_enabled.tpl.php: -------------------------------------------------------------------------------- 1 | xmpp_supported == 1; ?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhfront/online_chat_enabled_pre.tpl.php: -------------------------------------------------------------------------------- 1 | chatbox_supported == 1 || erLhcoreClassInstance::getInstance()->chat_supported == 1; 3 | $online_visitors_enabled_pre = erLhcoreClassInstance::getInstance()->onlinevisitortrck_supported == 1; 4 | ?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhinstance/billing_paypal.tpl.php: -------------------------------------------------------------------------------- 1 | getSetting('site','seller_paypal_enabled') == true) : ?> 2 |
3 | 4 | 5 |
6 |
7 | 8 | 9 | 11 | 12 | 19 | 20 |
10 | getTranslation('instance/edit','Request quantity, (includes 1 month extend)')?>
13 | 18 |
21 |
22 |
23 | 24 | 25 | 26 | 27 |
28 |
29 |
30 | -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhinstance/features_multiinclude.tpl.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiveHelperChat/automated-hosting/cad3f8ffb5b679e0b0859083c3c1167409e7062c/instancecustomer/design/instancecustomertheme/tpl/lhinstance/features_multiinclude.tpl.php -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhinstance/instance_titles/billing.tpl.php: -------------------------------------------------------------------------------- 1 | getTranslation('instance/edit','Billing');?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhinstance/mail/phone_hard_limit.tpl.php: -------------------------------------------------------------------------------- 1 | getTranslation('instance/edit','Instance has reached hard SMS limit')?> 2 |
getTranslation('instance/edit','Instance ID')?>: id?> 3 |
getTranslation('instance/edit','Instance address')?>: address?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhinstance/mail/phone_hard_limit_user.tpl.php: -------------------------------------------------------------------------------- 1 | getTranslation('instance/edit','You have reached hard SMS limit.')?> 2 | -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhinstance/mail/phone_soft_limit.tpl.php: -------------------------------------------------------------------------------- 1 | getTranslation('instance/edit','Instance has reached soft limit')?> 2 |
getTranslation('instance/edit','Instance ID')?>: id?> 3 |
getTranslation('instance/edit','Instance address')?>: address?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhinstance/mail/phone_soft_limit_user.tpl.php: -------------------------------------------------------------------------------- 1 | getTranslation('instance/edit','You have reached soft SMS limit.')?> 2 | -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhinstance/tabs/feature_tab_multiinclude.tpl.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhinstance/tabs_content/feature_tab_multiinclude.tpl.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhsugarcrm/sugarcrm_tab_enabled_pre.tpl.php: -------------------------------------------------------------------------------- 1 | sugarcrm_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhsystem/configuration_links/administrategeoconfig.tpl.php: -------------------------------------------------------------------------------- 1 | hasAccessTo('lhchat','administrategeoconfig')) : ?> 2 |
  • getTranslation('system/configuration','GEO detection configuration');?>
  • 3 | -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhsystem/configuration_links/autoresponder_pre.tpl.php: -------------------------------------------------------------------------------- 1 | autoresponder_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhsystem/configuration_links/blockusers_pre.tpl.php: -------------------------------------------------------------------------------- 1 | blocked_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhsystem/configuration_links/browse_offers_embed_pre.tpl.php: -------------------------------------------------------------------------------- 1 | browseoffers_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhsystem/configuration_links/cannedmsg_pre.tpl.php: -------------------------------------------------------------------------------- 1 | cannedmsg_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhsystem/configuration_links/chat_embed_pre.tpl.php: -------------------------------------------------------------------------------- 1 | chat_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhsystem/configuration_links/chatbox_embed_pre.tpl.php: -------------------------------------------------------------------------------- 1 | chatbox_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhsystem/configuration_links/configuresmtp_pre.tpl.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhsystem/configuration_links/faq_embed_pre.tpl.php: -------------------------------------------------------------------------------- 1 | faq_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhsystem/configuration_links/files_pre.tpl.php: -------------------------------------------------------------------------------- 1 | files_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhsystem/configuration_links/geoadjustment_pre.tpl.php: -------------------------------------------------------------------------------- 1 | geoadjustment_supported;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhsystem/configuration_links/performupdate.tpl.php: -------------------------------------------------------------------------------- 1 | 2 | hasAccessTo('lhsystem','performupdate')) : ?> 3 |
  • getTranslation('system/configuration','Update information');?>
  • 4 | */ ?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhsystem/configuration_links/proactive_pre.tpl.php: -------------------------------------------------------------------------------- 1 | proactive_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhsystem/configuration_links/questionary_embed_pre.tpl.php: -------------------------------------------------------------------------------- 1 | questionnaire_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhsystem/configuration_links/statistic_pre.tpl.php: -------------------------------------------------------------------------------- 1 | reporting_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhsystem/configuration_links/translation_pre.tpl.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhsystem/configuration_links/xmpp_pre.tpl.php: -------------------------------------------------------------------------------- 1 | xmpp_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhsystem/configuration_tabs/chat_pre.tpl.php: -------------------------------------------------------------------------------- 1 | chat_supported == 1 || 3 | erLhcoreClassInstance::getInstance()->chatbox_supported == 1 || 4 | erLhcoreClassInstance::getInstance()->faq_supported == 1 || 5 | erLhcoreClassInstance::getInstance()->questionnaire_supported == 1 6 | ;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhsystem/configuration_tabs/generate_js_pre.tpl.php: -------------------------------------------------------------------------------- 1 | chat_supported == 1 || 2 | erLhcoreClassInstance::getInstance()->chatbox_supported == 1 || 3 | erLhcoreClassInstance::getInstance()->faq_supported == 1 || 4 | erLhcoreClassInstance::getInstance()->questionnaire_supported == 1 ;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhsystem/configuration_tabs/speech_pre.tpl.php: -------------------------------------------------------------------------------- 1 | speech_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhsystem/languages.tpl.php: -------------------------------------------------------------------------------- 1 |

    getTranslation('system/languages','Languages configuration')?>

    2 | 3 | 4 | 5 | 6 | getTranslation('system/languages','Settings updated'); ?> 7 | 8 | 9 | 10 |
    11 | 12 | 13 | 18 | 19 |
    20 | hasAccessTo('lhsystem','changelanguage')) : ?> 21 |
    22 |
    23 | 24 | 25 |
    26 | 27 | 35 |
    36 | 37 | 38 | 39 |
    40 |
    41 | 42 |
    43 |
    -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhsystem/update.tpl.php: -------------------------------------------------------------------------------- 1 |

    getTranslation('system/update','About');?>

    2 | 3 |
    getTranslation('system/update','For any updates please contact your service provider...')?>
    -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhuser/menu_tabs/personal_canned_messages_tab_pre.tpl.php: -------------------------------------------------------------------------------- 1 | cannedmsg_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhuser/menu_tabs_content/personal_canned_messages_tab_pre.tpl.php: -------------------------------------------------------------------------------- 1 | cannedmsg_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhuser/pre_user_form.tpl.php: -------------------------------------------------------------------------------- 1 | max_operators > 0 && erLhcoreClassModelUser::getUserCount()+1 > erLhcoreClassInstance::getInstance()->max_operators) : 2 | $errorsOriginal = isset($errors) ? $errors : false; 3 | $errors = array(erTranslationClassLhTranslation::getInstance()->getTranslation('instance/edit','You have exceeded maximum number of allowed operators!')); ?> 4 | 5 | -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/lhxmppservice/xmppservice_tab_enabled_pre.tpl.php: -------------------------------------------------------------------------------- 1 | full_xmpp_chat_supported == 1?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/pagelayouts/parts/can_use_chat.tpl.php: -------------------------------------------------------------------------------- 1 | chat_supported == 1 || erLhcoreClassInstance::getInstance()->chatbox_supported == 1) && erLhcoreClassUser::instance()->hasAccessTo('lhchat','use'); ?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/pagelayouts/parts/copyright_meta.tpl.php: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/pagelayouts/parts/modules_menu/browseoffer_pre.tpl.php: -------------------------------------------------------------------------------- 1 | browseoffers_supported == 1?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/pagelayouts/parts/modules_menu/chatbox_pre.tpl.php: -------------------------------------------------------------------------------- 1 | chatbox_supported == 1?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/pagelayouts/parts/modules_menu/faq_pre.tpl.php: -------------------------------------------------------------------------------- 1 | faq_supported == 1?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/pagelayouts/parts/modules_menu/form_pre.tpl.php: -------------------------------------------------------------------------------- 1 | forms_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/pagelayouts/parts/modules_menu/modules_permissions.tpl.php: -------------------------------------------------------------------------------- 1 | hasAccessTo('lhquestionary','manage_questionary') && erLhcoreClassInstance::getInstance()->questionnaire_supported == 1; 3 | $useFaq = $currentUser->hasAccessTo('lhfaq','manage_faq') && erLhcoreClassInstance::getInstance()->faq_supported == 1; 4 | $useChatbox = $currentUser->hasAccessTo('lhchatbox','manage_chatbox') && erLhcoreClassInstance::getInstance()->chatbox_supported == 1; 5 | $useBo = $currentUser->hasAccessTo('lhbrowseoffer','manage_bo') && erLhcoreClassInstance::getInstance()->browseoffers_supported == 1; 6 | $useFm = $currentUser->hasAccessTo('lhform','manage_fm') && erLhcoreClassInstance::getInstance()->forms_supported == 1; 7 | ?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/pagelayouts/parts/modules_menu/questionary_pre.tpl.php: -------------------------------------------------------------------------------- 1 | questionnaire_supported == 1?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/pagelayouts/parts/top_head_multiinclude.default.tpl.php: -------------------------------------------------------------------------------- 1 | is_active == false) : ?> 2 | 8 | -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/pagelayouts/parts/top_menu_chat_actions_pre.tpl.php: -------------------------------------------------------------------------------- 1 | chat_supported == 1;?> -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/pagelayouts/parts/top_menu_extension_multiinclude.tpl.php.tpl.php: -------------------------------------------------------------------------------- 1 | getSetting('site','hide_billing') == false && $currentUser->hasAccessTo('lhinstance','billing')) : ?> 2 | 3 | -------------------------------------------------------------------------------- /instancecustomer/design/instancecustomertheme/tpl/pagelayouts/parts/top_menu_online_users_pre.tpl.php: -------------------------------------------------------------------------------- 1 | onlinevisitortrck_supported == 1?> -------------------------------------------------------------------------------- /instancecustomer/doc/install.txt: -------------------------------------------------------------------------------- 1 | 1. Edit var/autoloads/lhextension_autoload.php and make it look like 2 | 'extension/instancecustomer/classes/erlhcoreclassmodelinstance.php', 10 | 'erLhcoreClassInstance' => 'extension/instancecustomer/classes/erlhcoreclassinstance.php', 11 | 'erLhcoreClassLazyDatabaseConfiguration' => 'extension/instancecustomer/classes/lhdb.php', 12 | 'erLhcoreClassModelInstanceInvoice' => 'extension/instancecustomer/classes/erlhcoreclassmodelinstanceinvoice.php', 13 | ); 14 | 15 | ?> 16 | 17 | 2. For full install refer to instance extension install tutorial. -------------------------------------------------------------------------------- /instancecustomer/modules/lhcron/remove_expired.php: -------------------------------------------------------------------------------- 1 | getSetting( 'site', 'expire_disabled', false ) == false) 22 | { 23 | $total = 0; 24 | foreach (erLhcoreClassModelInstance::getList(array('filtergt' => array('expires' => 0),'filterlt' => array('expires' => time()-($cfg->getSetting( 'site', 'terminate_period', 14 )*24*3600)))) as $item) { 25 | 26 | $cfg = \erConfigClassLhConfig::getInstance(); 27 | $db->query('USE ' . $cfg->getSetting('db', 'database')); 28 | 29 | $instance = \erLhcoreClassModelInstance::fetch($item->id); 30 | \erLhcoreClassInstance::$instanceChat = $instance; 31 | 32 | echo date('Y-m-d H:i:s',$item->expires),"\n"; 33 | echo $item->id,"\n"; 34 | $total++; 35 | 36 | if ($item->status != erLhcoreClassModelInstance::IN_PROGRESS) { 37 | 38 | $db->beginTransaction(); 39 | 40 | $item->status = erLhcoreClassModelInstance::IN_PROGRESS; 41 | $item->saveThis(); 42 | 43 | $db->query('USE ' . $cfg->getSetting('db', 'database_user_prefix') . $item->id); 44 | 45 | $db->commit(); 46 | 47 | if (erLhcoreClassInstance::$instanceChat->removeInstanceData() === true) { 48 | 49 | echo "Instance data removed\n"; 50 | 51 | $db->query('DROP DATABASE IF EXISTS '.$cfg->getSetting( 'db', 'database_user_prefix').$item->id.';'); 52 | 53 | $db->query('USE ' . $cfg->getSetting('db', 'database')); 54 | 55 | erLhcoreClassInstance::getSession()->delete(erLhcoreClassInstance::$instanceChat); 56 | } else { 57 | echo "Instance data not removed\n"; 58 | } 59 | } 60 | echo "Removed instance - ",$item->id,"\n"; 61 | } 62 | } 63 | 64 | -------------------------------------------------------------------------------- /instancecustomer/modules/lhinstance/billinginstance.php: -------------------------------------------------------------------------------- 1 | set('instance',$instance); 8 | 9 | if ($instance->is_reseller) { 10 | 11 | $pagesInstances = new lhPaginator(); 12 | $pagesInstances->items_total = erLhcoreClassModelInstance::getCount(array('switch_db' => true,'filter' => array('reseller_id' => $instance->id))); 13 | $pagesInstances->translationContext = 'instance/billing'; 14 | $pagesInstances->serverURL = erLhcoreClassDesign::baseurl('instance/billinginstance'); 15 | $pagesInstances->setItemsPerPage(20); 16 | $pagesInstances->paginate(); 17 | 18 | $tpl->set('pagesInstance',$pagesInstances); 19 | 20 | $items = array(); 21 | if ($pagesInstances->items_total > 0) { 22 | $items = erLhcoreClassModelInstance::getList(array('switch_db' => true,'filter' => array('reseller_id' => $instance->id),'offset' => $pagesInstances->low, 'limit' => $pagesInstances->items_per_page)); 23 | } 24 | 25 | $tpl->set('itemsInstance',$items); 26 | } 27 | 28 | $Result['content'] = $tpl->fetch(); 29 | $Result['path'] = array(array('title' => erTranslationClassLhTranslation::getInstance()->getTranslation('instance/edit','Billing instance'))); 30 | 31 | ?> -------------------------------------------------------------------------------- /instancecustomer/modules/lhinstance/billingpdf.php: -------------------------------------------------------------------------------- 1 | instance_id != $instance->id){ 10 | die('No permission to view'); 11 | } 12 | } catch (Exception $e) { 13 | print_r($e); 14 | exit; 15 | } 16 | 17 | 18 | // create new PDF document 19 | $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); 20 | 21 | // set document information 22 | $pdf->SetCreator(PDF_CREATOR); 23 | $pdf->SetAuthor('Remigijus Kiminas'); 24 | $pdf->SetTitle('Invoice'); 25 | 26 | // remove default header/footer 27 | $pdf->setPrintHeader(false); 28 | $pdf->setPrintFooter(false); 29 | 30 | // set default monospaced font 31 | $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); 32 | 33 | // set margins 34 | $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); 35 | 36 | // set auto page breaks 37 | $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); 38 | 39 | // set image scale factor 40 | $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); 41 | 42 | // set some language-dependent strings (optional) 43 | if (@file_exists(dirname(__FILE__).'/lang/eng.php')) { 44 | require_once(dirname(__FILE__).'/lang/eng.php'); 45 | $pdf->setLanguageArray($l); 46 | } 47 | 48 | // --------------------------------------------------------- 49 | 50 | // set font 51 | $pdf->SetFont('freeserif', 'B', 14); 52 | 53 | // add a page 54 | $pdf->AddPage(); 55 | 56 | $cfg = erConfigClassLhConfig::getInstance(); 57 | 58 | // set some text to print 59 | $txt = $cfg->getSetting('site','seller_attributes'); 60 | // print a block of text using Write() 61 | $pdf->Write(0, $txt, '', 0, 'L', true, 0, false, false, 0); 62 | $pdf->SetY(25); 63 | 64 | // set some text to print 65 | //$txt = "Buyer\nremdex@gmail.com"; 66 | $txt = erTranslationClassLhTranslation::getInstance()->getTranslation('instance/edit','Date Issued') . ": ".date('Y-m-d',$invoice->odate)."\n"; 67 | $txt .= erTranslationClassLhTranslation::getInstance()->getTranslation('instance/edit','Invoice number') . ": ".date('Ymd',$invoice->odate).$invoice->id; 68 | 69 | 70 | 71 | // print a block of text using Write() 72 | $pdf->Write(0, $txt, '', 0, 'R', true, 0, false, false, 0); 73 | 74 | // set font 75 | $pdf->SetFont('freeserif', '', 10); 76 | 77 | // --------------------------------------------------------- 78 | //$pdf->SetX(0); 79 | $pdf->SetY(65); 80 | $pdf->writeHTML(" 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 |
    ".erTranslationClassLhTranslation::getInstance()->getTranslation('instance/edit','Desciption')."".erTranslationClassLhTranslation::getInstance()->getTranslation('instance/edit','Price')."
    {$invoice->option_selection1}{$invoice->price_front}
    92 | "); 93 | $pdf->Write(0, erTranslationClassLhTranslation::getInstance()->getTranslation('instance/edit','Total').": ".$invoice->price_front, '', 0, 'R', true, 0, false, false, 0); 94 | 95 | $pdf->SetFont('freeserif', '', 14); 96 | $pdf->writeHTML(erTranslationClassLhTranslation::getInstance()->getTranslation('instance/edit','Bill to').":
    ".$invoice->customer_name 97 | ); 98 | 99 | //Close and output PDF document 100 | $pdf->Output('invoice_'.date('Ymd',$invoice->odate).$invoice->id.'.pdf', 'I'); 101 | 102 | //============================================================+ 103 | // END OF FILE 104 | //============================================================+ 105 | exit; 106 | ?> -------------------------------------------------------------------------------- /instancecustomer/modules/lhinstance/extensionsstructure.php: -------------------------------------------------------------------------------- 1 | getSetting('site','seller_secret_hash'); 4 | $validateHash = sha1((string)$Params['user_parameters']['id'].'extensions'.(string)$Params['user_parameters']['date'].$secretHash); 5 | 6 | if ( (string)$Params['user_parameters']['hash'] == $validateHash && $Params['user_parameters']['id'] == erLhcoreClassInstance::$instanceChat->id && date('Ym') == (string)$Params['user_parameters']['date']) { 7 | // Just execute event for listeners to check plugins states and update if required 8 | erLhcoreClassChatEventDispatcher::getInstance()->dispatch('instance.extensions_structure', array()); 9 | } else { 10 | echo 'Invalid hash'; 11 | } 12 | 13 | exit; -------------------------------------------------------------------------------- /instancecustomer/modules/lhinstance/logmein.php: -------------------------------------------------------------------------------- 1 | getSetting('site','seller_secret_hash').sha1(erConfigClassLhConfig::getInstance()->getSetting('site','seller_secret_hash').$instance->address.$Params['user_parameters']['ts'])); 5 | 6 | if (time() < $Params['user_parameters']['ts']+60 && (time() + 61) > $Params['user_parameters']['ts'] && $hashValidation == $Params['user_parameters']['hash']) { 7 | $users = erLhcoreClassModelUser::getUserList(array('limit' => 1,'sort' => 'id ASC')); 8 | if (!empty($users)) { 9 | $user = array_shift($users); 10 | 11 | // Login user and redirect 12 | erLhcoreClassUser::instance()->setLoggedUser($user->id); 13 | header('Location: ' .erLhcoreClassDesign::baseurldirect('site_admin')); 14 | exit; 15 | 16 | } else { 17 | die('Could not find a user'); 18 | } 19 | 20 | } else { 21 | die('Invalid hash or it has expired'); 22 | } 23 | exit; 24 | ?> -------------------------------------------------------------------------------- /instancecustomer/modules/lhinstance/module.php: -------------------------------------------------------------------------------- 1 | "Instance customer"); 4 | 5 | $ViewList = array(); 6 | 7 | $ViewList['billing'] = array( 8 | 'params' => array(), 9 | 'functions' => array( 'billing' ) 10 | ); 11 | 12 | $ViewList['remove'] = array( 13 | 'params' => array('id','date','hash') 14 | ); 15 | 16 | $ViewList['setoperatorslimits'] = array( 17 | 'params' => array('id','date','operators','hash') 18 | ); 19 | 20 | $ViewList['workflow'] = array( 21 | 'params' => array('id','date','hash') 22 | ); 23 | 24 | $ViewList['extensionsstructure'] = array( 25 | 'params' => array('id','date','hash') 26 | ); 27 | 28 | $ViewList['billingpdf'] = array( 29 | 'params' => array('id'), 30 | 'functions' => array( 'billing' ) 31 | ); 32 | 33 | $ViewList['billinginstance'] = array( 34 | 'params' => array(), 35 | 'functions' => array( 'billing' ) 36 | ); 37 | 38 | $ViewList['logmein'] = array( 39 | 'params' => array('ts','hash'), 40 | 'functions' => array( ) 41 | ); 42 | 43 | $FunctionList['billing'] = array('explain' => 'Access to billing'); 44 | 45 | ?> -------------------------------------------------------------------------------- /instancecustomer/modules/lhinstance/remove.php: -------------------------------------------------------------------------------- 1 | getSetting('site','seller_secret_hash'); 5 | $validateHash = sha1((string)$Params['user_parameters']['id'].(string)$Params['user_parameters']['date'].$secretHash); 6 | 7 | if ( (string)$Params['user_parameters']['hash'] == $validateHash && $Params['user_parameters']['id'] == erLhcoreClassInstance::$instanceChat->id && date('Ym') == (string)$Params['user_parameters']['date']) { 8 | 9 | if (erLhcoreClassInstance::$instanceChat->removeInstanceData() === true){ 10 | echo json_encode(array('error' => false)); 11 | } else { 12 | echo json_encode(array('error' => true,'msg' => 'Could not delete')); 13 | } 14 | 15 | } else { 16 | echo json_encode(array('error' => true,'msg' => 'Invalid hash')); 17 | } 18 | 19 | exit; 20 | ?> -------------------------------------------------------------------------------- /instancecustomer/modules/lhinstance/setoperatorslimits.php: -------------------------------------------------------------------------------- 1 | getSetting('site', 'seller_secret_hash'); 5 | $validateHash = sha1((string) $Params['user_parameters']['id'] . (string) $Params['user_parameters']['date'] . $secretHash . '_' . (string) $Params['user_parameters']['operators']); 6 | 7 | if ((string) $Params['user_parameters']['hash'] == $validateHash && $Params['user_parameters']['id'] == erLhcoreClassInstance::$instanceChat->id && date('Ym') == (string) $Params['user_parameters']['date']) { 8 | 9 | if ($Params['user_parameters']['operators'] > 0) { 10 | $userCount = erLhcoreClassModelUser::getUserCount(array( 11 | 'filter' => array( 12 | 'disabled' => 0 13 | ) 14 | )); 15 | 16 | // We have to disable exceeded users 17 | if ($userCount > $Params['user_parameters']['operators']) { 18 | $users = erLhcoreClassModelUser::getUserList(array( 19 | 'sort' => 'id ASC', 20 | 'filter' => array('disabled' => 0), 21 | 'offset' => (int) $Params['user_parameters']['operators'], 22 | 'limit' => 100000000 23 | )); 24 | 25 | foreach ($users as $user) { 26 | $user->disabled = 1; 27 | $user->saveThis(); 28 | } 29 | } 30 | } 31 | 32 | echo "ok"; 33 | 34 | } else { 35 | echo 'Invalid hash'; 36 | } 37 | 38 | exit(); -------------------------------------------------------------------------------- /instancecustomer/modules/lhinstance/workflow.php: -------------------------------------------------------------------------------- 1 | getSetting('site','seller_secret_hash'); 4 | $validateHash = sha1((string)$Params['user_parameters']['id'].'workflow'.(string)$Params['user_parameters']['date'].$secretHash); 5 | 6 | if ( (string)$Params['user_parameters']['hash'] == $validateHash && $Params['user_parameters']['id'] == erLhcoreClassInstance::$instanceChat->id && date('Ym') == (string)$Params['user_parameters']['date']) { 7 | 8 | // Let the core to do the main job 9 | include 'modules/lhcron/workflow.php'; 10 | include 'modules/lhcron/transfer_workflow.php'; 11 | include 'modules/lhcron/report.php'; 12 | 13 | erLhcoreClassChatEventDispatcher::getInstance()->dispatch('chat.instance.workflow',array('instance' => erLhcoreClassInstance::$instanceChat)); 14 | 15 | } else { 16 | echo 'Invalid hash'; 17 | } 18 | 19 | exit; -------------------------------------------------------------------------------- /instancecustomer/modules/lhsystem/languages.php: -------------------------------------------------------------------------------- 1 | set('updated',true); 7 | } 8 | 9 | $input = new stdClass(); 10 | $input->siteaccess = erLhcoreClassSystem::instance()->SiteAccess; 11 | $tab = ''; 12 | 13 | if ((string)$Params['user_parameters_unordered']['sa'] != ''){ 14 | $input->siteaccess = (string)$Params['user_parameters_unordered']['sa']; 15 | $tab = 'generalsettings'; 16 | } 17 | 18 | if (isset($_POST['changeSiteAccess'])) { 19 | $input->siteaccess = $_POST['siteaccess']; 20 | } 21 | 22 | if ( isset($_POST['StoreUserSettingsAction']) ) { 23 | $definition = array( 24 | 'language' => new ezcInputFormDefinitionElement( 25 | ezcInputFormDefinitionElement::OPTIONAL, 'string' 26 | ) 27 | ); 28 | 29 | if (!isset($_POST['csfr_token']) || !$currentUser->validateCSFRToken($_POST['csfr_token'])) { 30 | erLhcoreClassModule::redirect('system/languages'); 31 | exit; 32 | } 33 | 34 | $Errors = array(); 35 | 36 | $form = new ezcInputForm( INPUT_POST, $definition ); 37 | $Errors = array(); 38 | 39 | if ( $form->hasValidData( 'language' ) && !empty($form->language)) { 40 | erLhcoreClassModelUserSetting::setSetting('user_language',$form->language); 41 | 42 | // Redirect for change to take effect 43 | erLhcoreClassModule::redirect('system/languages','/(updated)/true'); 44 | exit; 45 | 46 | } else { 47 | $tpl->set('errors', array(erTranslationClassLhTranslation::getInstance()->getTranslation('system/languages','Please choose correct language'))); 48 | } 49 | } 50 | 51 | $cfgSite = erConfigClassLhConfig::getInstance(); 52 | $tpl->set('locales',$cfgSite->getSetting( 'site', 'available_site_access' )); 53 | $tpl->set('current_site_access',erLhcoreClassSystem::instance()->SiteAccess); 54 | $tpl->set('input',$input); 55 | $tpl->set('currentUser',$currentUser); 56 | $tpl->set('tab',$tab); 57 | 58 | $Result['content'] = $tpl->fetch(); 59 | $Result['path'] = array(array('url' => erLhcoreClassDesign::baseurl('system/configuration'),'title' => erTranslationClassLhTranslation::getInstance()->getTranslation('system/languages','Languages configuration'))) 60 | 61 | ?> -------------------------------------------------------------------------------- /instancecustomer/modules/lhsystem/module.php: -------------------------------------------------------------------------------- 1 | "System configuration"); 4 | 5 | $ViewList = array(); 6 | 7 | $ViewList['languages'] = array( 8 | 'script' => 'languages.php', 9 | 'params' => array(), 10 | 'uparams' => array('updated','sa'), 11 | 'functions' => array( 'changelanguage' ) 12 | ); 13 | 14 | $ViewList['update'] = array( 15 | 'params' => array(), 16 | 'uparams' => array('action'), 17 | 'functions' => array( 'performupdate' ) 18 | ); 19 | 20 | $ViewList['timezone'] = array( 21 | 'params' => array(), 22 | 'functions' => array( 'timezone' ) 23 | ); 24 | 25 | ?> 26 | -------------------------------------------------------------------------------- /instancecustomer/modules/lhsystem/timezone.php: -------------------------------------------------------------------------------- 1 | time_zone; 7 | $date_format = $instanceChat->date_format; 8 | $date_hour_format = $instanceChat->date_hour_format; 9 | $date_date_hour_format = $instanceChat->date_date_hour_format; 10 | 11 | if ( isset($_POST['StoreTimeZoneSettings']) ) { 12 | 13 | $definition = array( 14 | 'TimeZone' => new ezcInputFormDefinitionElement( 15 | ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw' 16 | ), 17 | 'DateFormat' => new ezcInputFormDefinitionElement( 18 | ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw' 19 | ), 20 | 'DateFullFormat' => new ezcInputFormDefinitionElement( 21 | ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw' 22 | ), 23 | 'DateHourFormat' => new ezcInputFormDefinitionElement( 24 | ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw' 25 | ), 26 | ); 27 | 28 | if (!isset($_POST['csfr_token']) || !$currentUser->validateCSFRToken($_POST['csfr_token'])) { 29 | erLhcoreClassModule::redirect('system/timezone'); 30 | exit; 31 | } 32 | 33 | $form = new ezcInputForm( INPUT_POST, $definition ); 34 | 35 | if ( $form->hasValidData( 'TimeZone' ) ) { 36 | $timezone = $form->TimeZone; 37 | } else { 38 | $timezone = ''; 39 | } 40 | 41 | if ( $form->hasValidData( 'DateFormat' ) ) { 42 | $date_format = $form->DateFormat; 43 | } else { 44 | $date_format = ''; 45 | } 46 | 47 | if ( $form->hasValidData( 'DateFullFormat' ) ) { 48 | $date_date_hour_format = $form->DateFullFormat; 49 | } else { 50 | $date_date_hour_format = ''; 51 | } 52 | 53 | if ( $form->hasValidData( 'DateHourFormat' ) ) { 54 | $date_hour_format = $form->DateHourFormat; 55 | } else { 56 | $date_hour_format = ''; 57 | } 58 | 59 | if (isset($_POST['StoreTimeZoneSettings'])) { 60 | $instanceChat->time_zone = $timezone; 61 | $instanceChat->date_format = $date_format; 62 | $instanceChat->date_hour_format = $date_hour_format; 63 | $instanceChat->date_date_hour_format = $date_date_hour_format; 64 | $instanceChat->saveToInstanceThis(); 65 | } 66 | 67 | $tpl->set('updated','done'); 68 | } 69 | 70 | $tpl->set('timezone',$timezone); 71 | $tpl->set('date_format',$date_format); 72 | $tpl->set('date_hour_format',$date_hour_format); 73 | $tpl->set('date_date_hour_format',$date_date_hour_format); 74 | 75 | $Result['content'] = $tpl->fetch(); 76 | 77 | $Result['path'] = array(array('url' => erLhcoreClassDesign::baseurl('system/configuration'),'title' => erTranslationClassLhTranslation::getInstance()->getTranslation('system/htmlcode','System configuration')), 78 | array('title' => erTranslationClassLhTranslation::getInstance()->getTranslation('system/timezone','Time zone'))); 79 | 80 | 81 | ?> -------------------------------------------------------------------------------- /instancecustomer/modules/lhsystem/update.php: -------------------------------------------------------------------------------- 1 | fetch(); 7 | $Result['path'] = array(array('url' => erLhcoreClassDesign::baseurl('system/configuration'),'title' => erTranslationClassLhTranslation::getInstance()->getTranslation('system/htmlcode','System configuration')), 8 | array('title' => erTranslationClassLhTranslation::getInstance()->getTranslation('system/update','Update information'))); 9 | 10 | 11 | ?> -------------------------------------------------------------------------------- /instancecustomer/pos/erlhcoreclassmodelinstancealias.php: -------------------------------------------------------------------------------- 1 | table = "lhc_instance_client_alias"; 5 | $def->class = "erLhcoreClassModelInstanceAlias"; 6 | 7 | $def->idProperty = new ezcPersistentObjectIdProperty(); 8 | $def->idProperty->columnName = 'id'; 9 | $def->idProperty->propertyName = 'id'; 10 | $def->idProperty->generator = new ezcPersistentGeneratorDefinition( 'ezcPersistentNativeGenerator' ); 11 | 12 | $def->properties['instance_id'] = new ezcPersistentObjectProperty(); 13 | $def->properties['instance_id']->columnName = 'instance_id'; 14 | $def->properties['instance_id']->propertyName = 'instance_id'; 15 | $def->properties['instance_id']->propertyType = ezcPersistentObjectProperty::PHP_TYPE_INT; 16 | 17 | $def->properties['address'] = new ezcPersistentObjectProperty(); 18 | $def->properties['address']->columnName = 'address'; 19 | $def->properties['address']->propertyName = 'address'; 20 | $def->properties['address']->propertyType = ezcPersistentObjectProperty::PHP_TYPE_STRING; 21 | 22 | $def->properties['url'] = new ezcPersistentObjectProperty(); 23 | $def->properties['url']->columnName = 'url'; 24 | $def->properties['url']->propertyName = 'url'; 25 | $def->properties['url']->propertyType = ezcPersistentObjectProperty::PHP_TYPE_STRING; 26 | 27 | return $def; 28 | 29 | ?> -------------------------------------------------------------------------------- /instancecustomer/pos/erlhcoreclassmodelinstanceinvoice.php: -------------------------------------------------------------------------------- 1 | table = "lhc_instance_invoice"; 5 | $def->class = "erLhcoreClassModelInstanceInvoice"; 6 | 7 | $def->idProperty = new ezcPersistentObjectIdProperty(); 8 | $def->idProperty->columnName = 'id'; 9 | $def->idProperty->propertyName = 'id'; 10 | $def->idProperty->generator = new ezcPersistentGeneratorDefinition( 'ezcPersistentNativeGenerator' ); 11 | 12 | $def->properties['txn_id'] = new ezcPersistentObjectProperty(); 13 | $def->properties['txn_id']->columnName = 'txn_id'; 14 | $def->properties['txn_id']->propertyName = 'txn_id'; 15 | $def->properties['txn_id']->propertyType = ezcPersistentObjectProperty::PHP_TYPE_STRING; 16 | 17 | $def->properties['instance_id'] = new ezcPersistentObjectProperty(); 18 | $def->properties['instance_id']->columnName = 'instance_id'; 19 | $def->properties['instance_id']->propertyName = 'instance_id'; 20 | $def->properties['instance_id']->propertyType = ezcPersistentObjectProperty::PHP_TYPE_INT; 21 | 22 | $def->properties['order_item'] = new ezcPersistentObjectProperty(); 23 | $def->properties['order_item']->columnName = 'order_item'; 24 | $def->properties['order_item']->propertyName = 'order_item'; 25 | $def->properties['order_item']->propertyType = ezcPersistentObjectProperty::PHP_TYPE_STRING; 26 | 27 | $def->properties['odate'] = new ezcPersistentObjectProperty(); 28 | $def->properties['odate']->columnName = 'odate'; 29 | $def->properties['odate']->propertyName = 'odate'; 30 | $def->properties['odate']->propertyType = ezcPersistentObjectProperty::PHP_TYPE_INT; 31 | 32 | $def->properties['currency'] = new ezcPersistentObjectProperty(); 33 | $def->properties['currency']->columnName = 'currency'; 34 | $def->properties['currency']->propertyName = 'currency'; 35 | $def->properties['currency']->propertyType = ezcPersistentObjectProperty::PHP_TYPE_STRING; 36 | 37 | $def->properties['amount'] = new ezcPersistentObjectProperty(); 38 | $def->properties['amount']->columnName = 'amount'; 39 | $def->properties['amount']->propertyName = 'amount'; 40 | $def->properties['amount']->propertyType = ezcPersistentObjectProperty::PHP_TYPE_INT; 41 | 42 | $def->properties['log'] = new ezcPersistentObjectProperty(); 43 | $def->properties['log']->columnName = 'log'; 44 | $def->properties['log']->propertyName = 'log'; 45 | $def->properties['log']->propertyType = ezcPersistentObjectProperty::PHP_TYPE_STRING; 46 | 47 | return $def; 48 | 49 | ?> -------------------------------------------------------------------------------- /instancecustomer/providers/InstanceWorkerArchive.php: -------------------------------------------------------------------------------- 1 | reconnect(); // Because it timeouts automatically, this calls to reconnect to database, this is implemented in 2.52v 11 | 12 | $cfg = \erConfigClassLhConfig::getInstance(); 13 | $db->query('USE ' . $cfg->getSetting('db', 'database')); 14 | 15 | $instance = \erLhcoreClassModelInstance::fetch($this->args['inst_id']); 16 | \erLhcoreClassInstance::$instanceChat = $instance; 17 | 18 | $db->query('USE ' . $cfg->getSetting('db', 'database_user_prefix') . $this->args['inst_id']); 19 | 20 | try { 21 | include 'modules/lhcron/stats/department.php'; 22 | } catch (\Exception $e) { 23 | \LiveHelperChatExtension\instancecustomer\providers\InstanceWorker::logInstanceError($e); 24 | } 25 | 26 | try { 27 | include 'modules/lhcron/encrypt.php'; 28 | } catch (\Exception $e) { 29 | \LiveHelperChatExtension\instancecustomer\providers\InstanceWorker::logInstanceError($e); 30 | } 31 | 32 | try { 33 | include 'modules/lhcron/archive.php'; 34 | } catch (\Exception $e) { 35 | \LiveHelperChatExtension\instancecustomer\providers\InstanceWorker::logInstanceError($e); 36 | } 37 | 38 | try { 39 | include 'modules/lhcron/archive_mail.php'; 40 | } catch (\Exception $e) { 41 | \LiveHelperChatExtension\instancecustomer\providers\InstanceWorker::logInstanceError($e); 42 | } 43 | } 44 | 45 | } -------------------------------------------------------------------------------- /instancecustomer/providers/InstanceWorkerDelete.php: -------------------------------------------------------------------------------- 1 | reconnect(); // Because it timeouts automatically, this calls to reconnect to database, this is implemented in 2.52v 11 | 12 | $cfg = \erConfigClassLhConfig::getInstance(); 13 | $db->query('USE ' . $cfg->getSetting('db', 'database')); 14 | 15 | $instance = \erLhcoreClassModelInstance::fetch($this->args['inst_id']); 16 | \erLhcoreClassInstance::$instanceChat = $instance; 17 | 18 | $db->query('USE ' . $cfg->getSetting('db', 'database_user_prefix') . $this->args['inst_id']); 19 | 20 | try { 21 | include 'modules/lhcron/mail/delete_mail.php'; 22 | include 'modules/lhcron/mail/delete_mail_item.php'; 23 | } catch (\Exception $e) { 24 | \LiveHelperChatExtension\instancecustomer\providers\InstanceWorker::logInstanceError($e); 25 | } 26 | } 27 | 28 | } -------------------------------------------------------------------------------- /instancecustomer/providers/InstanceWorkerWebhook.php: -------------------------------------------------------------------------------- 1 | reconnect(); // Because it timeouts automatically, this calls to reconnect to database, this is implemented in 2.52v 11 | 12 | $cfg = \erConfigClassLhConfig::getInstance(); 13 | $db->query('USE ' . $cfg->getSetting('db', 'database')); 14 | 15 | $instance = \erLhcoreClassModelInstance::fetch($this->args['inst_id']); 16 | \erLhcoreClassInstance::$instanceChat = $instance; 17 | 18 | $db->query('USE ' . $cfg->getSetting('db', 'database_user_prefix') . $this->args['inst_id']); 19 | 20 | try { 21 | include 'modules/lhcron/webhook.php'; 22 | } catch (\Exception $e) { 23 | \LiveHelperChatExtension\instancecustomer\providers\InstanceWorker::logInstanceError($e); 24 | } 25 | } 26 | 27 | } -------------------------------------------------------------------------------- /instancecustomeroverride/design/instancecustomeroverridetheme/tpl/lhcobrowse/operatorinit.default.tpl.php: -------------------------------------------------------------------------------- 1 | var lhcbrowserOpeator = new LHCCoBrowserOperator(window,document,{'formsenabled':cobrowse_forms_supported == 1 ? print 'true' : 'false'?>,'lhcbase':'','httpsmode':,'disablejs':current_value == 1 ? 'true' : 'false'?>,options:{opcontrol:$('#status-icon-control'),opscroll:$('#sync-user-scroll'),opmouse:$('#show-operator-mouse'),scroll:$('#scroll-user-window')},'cpos':{w:w?>,wh:wh?>},'cursor':'http://','nodejssettings':{'path':'','nodejssocket':'https://cdn.jsdelivr.net/npm/socket.io-client@2/dist/socket.io.js','nodejshost':'http://wscb.example.com','secure':false},'nodejsenabled':1,'chat_hash':'chat->hash?>','chat_id':chat_id?>, 'base':url)?>, 'initialize' : initialize != '' ? $browse->initialize : 'null'?>}); -------------------------------------------------------------------------------- /instancecustomeroverride/design/instancecustomeroverridetheme/tpl/lhcobrowse/userinit.default.tpl.php: -------------------------------------------------------------------------------- 1 | this.cobrowser = new LHCCoBrowser({'chat_hash':this.sharehash,'nodejssettings':{'nodejssocket':'https://cdn.jsdelivr.net/npm/socket.io-client@2/dist/socket.io.js','nodejshost':'http://wscb.example.com','secure':false},'nodejsenabled':1,'trans':{'operator_watching':getTranslation('chat/getstatus','Screen shared, click to finish'),ENT_QUOTES))?>},'url':'http://'+lh_inst.lang+'/cobrowse/storenodemap'+inst.getAppendCookieArguments()+'/?url='+encodeURIComponent(location.href.match(/^(.*\/)[^\/]*$/)[1])}); 2 | this.cobrowser.startMirroring(); -------------------------------------------------------------------------------- /instancecustomeroverride/design/instancecustomeroverridetheme/tpl/lhinstance/billing_paypal.default.tpl.php: -------------------------------------------------------------------------------- 1 | getSetting('site','seller_paypal_enabled') == true) : ?> 2 |
    3 | 4 | 5 |
    6 |
    7 | 8 | 9 | 11 | 12 | 19 | 20 |
    10 | getTranslation('instance/edit','Request quantity, (includes 1 month extend)')?>
    13 | 18 |
    21 |
    22 |
    23 | 24 | 25 | 26 | 27 |
    28 |
    29 |
    30 | -------------------------------------------------------------------------------- /instancecustomeroverride/doc/README.md: -------------------------------------------------------------------------------- 1 | This extensions should be putted in clients extension folder. 2 | It just overrides core auto hosting extension templates. Just renamed these templates without default 3 | Do not forget to activate this extension. -------------------------------------------------------------------------------- /instanceoverride/design/instanceoverridetheme/db_post_update/db.default.sql: -------------------------------------------------------------------------------- 1 | -- Example how to force to use city database as default option 2 | DELETE FROM `lh_chat_config` WHERE `identifier` = 'geo_data'; 3 | INSERT INTO `lh_chat_config` (`identifier`, `value`, `type`, `explain`, `hidden`) VALUES 4 | ('geo_data', 'a:5:{i:0;b:0;s:21:\"geo_detection_enabled\";i:1;s:22:\"geo_service_identifier\";s:8:\"max_mind\";s:23:\"max_mind_detection_type\";s:4:\"city\";s:22:\"max_mind_city_location\";s:37:\"var/external/geoip/GeoLite2-City.mmdb\";}', 0, '', 1); -------------------------------------------------------------------------------- /instanceoverride/design/instanceoverridetheme/tpl/lhinstance/email.default.tpl.php: -------------------------------------------------------------------------------- 1 | getTranslation('instance/email','Hello');?>, 2 | 3 | getTranslation('instance/email','Here is your chat instance data');?>: 4 | getTranslation('instance/email','Address');?>: getSetting( 'site', 'http_mode')?>address?>.getSetting( 'site', 'seller_domain')?>/site_admin/ 5 | 6 | getTranslation('instance/email','Login');?>: 7 | getTranslation('instance/email','Password');?>: 8 | 9 | getTranslation('instance/email','Number of purchased request');?>: 10 | request,"\n\n";?> 11 | 12 | getTranslation('instance/email','Valid untill');?>: 13 | expires > 0 ? date('Y-m-d',$instance->expires) : '-',"\n\n";?> 14 | 15 | getTranslation('instance/email','Recommended embed code');?>: 16 | 17 | var LHCChatOptions = {}; 18 | LHCChatOptions.opt = {widget_height:190,widget_width:300,popup_height:520,popup_width:500}; 19 | (function() { 20 | var po = document.createElement(\'script\'); po.type = \'text/javascript\'; po.async = true; 21 | var refferer = (document.referrer) ? encodeURIComponent(document.referrer) : \'\'; 22 | var location = (document.location) ? encodeURIComponent(document.location) : \'\'; 23 | po.src = \'';?>getSetting( 'site', 'http_mode')?>address.'.'. erConfigClassLhConfig::getInstance()->getSetting( 'site', 'seller_domain') .'/chat/getstatus/(click)/internal/(position)/bottom_right/(check_operator_messages)/true/(top)/350/(units)/pixels/(leaveamessage)/true?r=\'+refferer+\'&l=\'+location; 24 | var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(po, s); 25 | })(); 26 | ',"\n\n"; ?> 27 | 28 | getTranslation('instance/email','Sincerely');?>, 29 | getTranslation('instance/email','Live Support Team');?> --------------------------------------------------------------------------------