• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP erLhcoreClassInstance类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中erLhcoreClassInstance的典型用法代码示例。如果您正苦于以下问题:PHP erLhcoreClassInstance类的具体用法?PHP erLhcoreClassInstance怎么用?PHP erLhcoreClassInstance使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了erLhcoreClassInstance类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: setupInstance

 public static function setupInstance($db)
 {
     $parts = explode('.', $_SERVER['HTTP_HOST']);
     $subdomain = array_shift($parts);
     $items = erLhcoreClassModelInstance::getList(array('filter' => array('address' => $subdomain)));
     if (!empty($items)) {
         erLhcoreClassInstance::$instanceChat = array_shift($items);
         $cfg = erConfigClassLhConfig::getInstance();
         $db->query('USE ' . $cfg->getSetting('db', 'database_user_prefix') . erLhcoreClassInstance::$instanceChat->id);
     } else {
         $cfg = erConfigClassLhConfig::getInstance();
         header('Location: ' . $cfg->getSetting('site', 'seller_url'));
         exit;
     }
 }
开发者ID:jabaxalapa,项目名称:automated-hosting,代码行数:15,代码来源:erlhcoreclassinstance.php


示例2: setupInstance

 public static function setupInstance($db)
 {
     if (isset($_SERVER['HTTP_HOST'])) {
         $cfg = erConfigClassLhConfig::getInstance();
         $subdomain = str_replace('.' . $cfg->getSetting('site', 'seller_domain'), '', $_SERVER['HTTP_HOST']);
         $session = erLhcoreClassInstance::getSession();
         $q = $session->createFindQuery('erLhcoreClassModelInstance');
         $q->where($q->expr->eq('address', $q->bindValue($subdomain)) . ' OR (full_domain = 1 AND ' . $q->expr->eq('address', $q->bindValue($_SERVER['HTTP_HOST'])) . ')');
         $items = $session->find($q);
         if (!empty($items)) {
             erLhcoreClassInstance::$instanceChat = array_shift($items);
             $db->query('USE ' . $cfg->getSetting('db', 'database_user_prefix') . erLhcoreClassInstance::$instanceChat->id);
         } else {
             header('Location: ' . $cfg->getSetting('site', 'seller_url'));
             exit;
         }
     }
 }
开发者ID:alisadali,项目名称:automated-hosting,代码行数:18,代码来源:erlhcoreclassinstance.php


示例3:

<?php

$chat_translation_enabled = erLhcoreClassInstance::getInstance()->atranslations_supported == 1;
开发者ID:hgeorge123,项目名称:automated-hosting,代码行数:3,代码来源:chat_translation_pre.tpl.php


示例4:

<?php

$information_tab_user_files_tab_enabled = erLhcoreClassInstance::getInstance()->files_supported == 1;
开发者ID:alisadali,项目名称:automated-hosting,代码行数:3,代码来源:information_tab_user_files_tab_pre.tpl.php


示例5:

<?php

$operator_screenshot_enabled = erLhcoreClassInstance::getInstance()->screenshot_supported == 1;
开发者ID:alisadali,项目名称:automated-hosting,代码行数:3,代码来源:operator_screenshot_pre.tpl.php


示例6: header

<?php

header('content-type: application/json; charset=utf-8');
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept');
if ((string) $Params['user_parameters']['address'] != '' && erLhcoreClassInstance::instanceExists((string) $Params['user_parameters']['address']) == false) {
    if (isset($_GET['callback'])) {
        echo $_GET['callback'] . '(' . json_encode(false) . ')';
    } else {
        echo 'true';
    }
} else {
    if (isset($_GET['callback'])) {
        echo $_GET['callback'] . '(' . json_encode(true) . ')';
    } else {
        echo 'false';
    }
}
exit;
开发者ID:alisadali,项目名称:automated-hosting,代码行数:19,代码来源:isfree.php


示例7:

<?php

$user_menu_tabs_personal_canned_messages_tab = erLhcoreClassInstance::getInstance()->cannedmsg_supported == 1;
开发者ID:alisadali,项目名称:automated-hosting,代码行数:3,代码来源:personal_canned_messages_tab_pre.tpl.php


示例8:

<?php

$operator_remarks_enabled = erLhcoreClassInstance::getInstance()->chatremarks_supported == 1;
开发者ID:alisadali,项目名称:automated-hosting,代码行数:3,代码来源:operator_remarks_pre.tpl.php


示例9:

<?php

$chat_chat_tabs_footprint_tab_tab_enabled = erLhcoreClassInstance::getInstance()->footprint_supported == 1;
开发者ID:alisadali,项目名称:automated-hosting,代码行数:3,代码来源:footprint_tab_tab_pre.tpl.php


示例10: array

<?php

$tpl = erLhcoreClassTemplate::getInstance('lhsystem/timezone.tpl.php');
$instanceChat = erLhcoreClassInstance::getInstance();
$timezone = $instanceChat->time_zone;
$date_format = $instanceChat->date_format;
$date_hour_format = $instanceChat->date_hour_format;
$date_date_hour_format = $instanceChat->date_date_hour_format;
if (isset($_POST['StoreTimeZoneSettings'])) {
    $definition = array('TimeZone' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw'), 'DateFormat' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw'), 'DateFullFormat' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw'), 'DateHourFormat' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'unsafe_raw'));
    if (!isset($_POST['csfr_token']) || !$currentUser->validateCSFRToken($_POST['csfr_token'])) {
        erLhcoreClassModule::redirect('system/timezone');
        exit;
    }
    $form = new ezcInputForm(INPUT_POST, $definition);
    if ($form->hasValidData('TimeZone')) {
        $timezone = $form->TimeZone;
    } else {
        $timezone = '';
    }
    if ($form->hasValidData('DateFormat')) {
        $date_format = $form->DateFormat;
    } else {
        $date_format = '';
    }
    if ($form->hasValidData('DateFullFormat')) {
        $date_date_hour_format = $form->DateFullFormat;
    } else {
        $date_date_hour_format = '';
    }
    if ($form->hasValidData('DateHourFormat')) {
开发者ID:hgeorge123,项目名称:automated-hosting,代码行数:31,代码来源:timezone.php


示例11:

<?php

if (erLhcoreClassInstance::getInstance()->is_active == false) {
    ?>
<div class="alert alert-danger alert-dismissible" role="alert" style="max-width:1024px;margin:7px auto;">
    <?php 
    echo erTranslationClassLhTranslation::getInstance()->getTranslation('pagelayout/pagelayout', 'Your service plan has expired.');
    ?>
    <?php 
    if (erConfigClassLhConfig::getInstance()->getSetting('site', 'hide_billing') == false) {
        ?>
        <a class="alert-link" href="<?php 
        echo erLhcoreClassDesign::baseurl('instance/billing');
        ?>
" ><i class="material-icons">account_balance</i><?php 
        echo erTranslationClassLhTranslation::getInstance()->getTranslation('pagelayout/pagelayout', 'Billing');
        ?>
</a>
    <?php 
    }
    ?>
</div>
<?php 
}
开发者ID:alisadali,项目名称:automated-hosting,代码行数:24,代码来源:top_head_multiinclude.default.tpl.php


示例12:

<?php

$chat_chat_tabs_actions_transfer_enabled = erLhcoreClassInstance::getInstance()->transfer_supported == 1;
开发者ID:hgeorge123,项目名称:automated-hosting,代码行数:3,代码来源:transfer_pre.tpl.php


示例13:

<?php

$system_configuration_links_files_enabled = erLhcoreClassInstance::getInstance()->files_supported == 1;
开发者ID:alisadali,项目名称:automated-hosting,代码行数:3,代码来源:files_pre.tpl.php


示例14:

<?php

$department_xmpp_enabled = erLhcoreClassInstance::getInstance()->xmpp_supported == 1;
开发者ID:hgeorge123,项目名称:automated-hosting,代码行数:3,代码来源:xmpp_enabled.tpl.php


示例15: userEditPhotoPath

 public function userEditPhotoPath($params)
 {
     $params['dir'] = 'var/userphoto/' . date('Y') . 'y/' . date('m') . '/' . date('d') . '/' . erLhcoreClassInstance::getInstance()->id . '/' . $params['storage_id'] . '/';
 }
开发者ID:alisadali,项目名称:automated-hosting,代码行数:4,代码来源:bootstrap.php


示例16:

<?php

$chat_lists_online_operators_enabled = erLhcoreClassInstance::getInstance()->operatorschat_supported == 1;
开发者ID:hgeorge123,项目名称:automated-hosting,代码行数:3,代码来源:angular_online_op_list_tab_pre.tpl.php


示例17: LHCCoBrowserOperator

var lhcbrowserOpeator = new LHCCoBrowserOperator(window,document,{'formsenabled':<?php 
erLhcoreClassInstance::getInstance()->cobrowse_forms_supported == 1 ? print 'true' : (print 'false');
?>
,'lhcbase':'<?php 
echo (erLhcoreClassSystem::$httpsMode == true ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'];
echo erLhcoreClassDesign::baseurl('cobrowse/proxycss');
?>
','httpsmode':<?php 
echo erLhcoreClassSystem::$httpsMode == true ? 'true' : 'false';
?>
,'disablejs':<?php 
echo erLhcoreClassModelChatConfig::fetch('disable_js_execution')->current_value == 1 ? 'true' : 'false';
?>
,options:{opcontrol:$('#status-icon-control'),opscroll:$('#sync-user-scroll'),opmouse:$('#show-operator-mouse'),scroll:$('#scroll-user-window')},'cpos':{w:<?php 
echo $browse->w;
?>
,wh:<?php 
echo $browse->wh;
?>
},'cursor':'<?php 
echo erLhcoreClassModelChatConfig::fetch('explicit_http_mode')->current_value;
?>
//<?php 
echo $_SERVER['HTTP_HOST'];
echo erLhcoreClassDesign::design('images/icons/cursor.png');
?>
','nodejssettings':{'nodejssocket':<?php 
echo json_encode(erLhcoreClassModelChatConfig::fetch('sharing_nodejs_sllocation')->current_value);
?>
,'nodejshost':<?php 
echo json_encode(erLhcoreClassModelChatConfig::fetch('sharing_nodejs_socket_host')->current_value);
开发者ID:alisadali,项目名称:automated-hosting,代码行数:31,代码来源:operatorinit.tpl.php


示例18: setExpireInformStatus

 /**
  * Adjust inform workflow attributes based on expire data
  * */
 public function setExpireInformStatus()
 {
     $expireOptions = erLhcoreClassInstance::getExpireOptions();
     $informStatusSet = false;
     foreach ($expireOptions as $expireOption) {
         $expireOption['filter']['filter']['id'] = $this->id;
         // We ignore status at this stage
         unset($expireOption['filter']['filter']['expire_inform_status']);
         foreach (erLhcoreClassModelInstance::getList($expireOption['filter']) as $item) {
             foreach ($expireOption['set'] as $attr => $attrValue) {
                 $this->{$attr} = $attrValue;
                 $this->saveThis();
                 $informStatusSet = true;
             }
         }
     }
     // None of above filters matched, so we can set default value
     if ($informStatusSet == false) {
         $this->expire_inform_status = 0;
         $this->saveThis();
     }
 }
开发者ID:alisadali,项目名称:automated-hosting,代码行数:25,代码来源:erlhcoreclassmodelinstance.php


示例19:

<?php

$system_configuration_links_chatbox_embed_enabled = erLhcoreClassInstance::getInstance()->chatbox_supported == 1;
开发者ID:hgeorge123,项目名称:automated-hosting,代码行数:3,代码来源:chatbox_embed_pre.tpl.php


示例20:

<?php

$system_configuration_tabs_speech_enabled = erLhcoreClassInstance::getInstance()->speech_supported == 1;
开发者ID:alisadali,项目名称:automated-hosting,代码行数:3,代码来源:speech_pre.tpl.php



注:本文中的erLhcoreClassInstance类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP erLhcoreClassModelChat类代码示例发布时间:2022-05-23
下一篇:
PHP erLhcoreClassIPDetect类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap