當前位置: 首頁>>代碼示例>>PHP>>正文


PHP erLhcoreClassInstance類代碼示例

本文整理匯總了PHP中erLhcoreClassInstance的典型用法代碼示例。如果您正苦於以下問題:PHP erLhcoreClassInstance類的具體用法?PHP erLhcoreClassInstance怎麽用?PHP erLhcoreClassInstance使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了erLhcoreClassInstance類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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


注:本文中的erLhcoreClassInstance類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。