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


PHP WSTDomain函數代碼示例

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


在下文中一共展示了WSTDomain函數的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: WSTNavigation

/**
 * 獲取指定位置的導航菜單
 * @param int $type 導航位置
 */
function WSTNavigation($type = 0)
{
    $URL_HTML_SUFFIX = C('URL_HTML_SUFFIX');
    $cururl = U(MODULE_NAME . "/" . CONTROLLER_NAME . "/" . ACTION_NAME);
    $cururl = str_ireplace("." . $URL_HTML_SUFFIX, '', $cururl);
    $areaId2 = (int) session('areaId2');
    $rs = F('navigation/' . $areaId2);
    if (!$rs) {
        $m = M();
        //獲取所在省份
        $sql = "select parentId from __PREFIX__areas where areaId=" . $areaId2;
        $areaId1Rs = $m->query($sql);
        $areaId1 = (int) $areaId1Rs[0]['parentId'];
        $sql = "select navType,navTitle,navUrl,isShow,isOpen \n\t\t  from __PREFIX__navs where isShow=1 and (areaId1=0 or areaId1=" . $areaId1 . ") and (areaId2=0 or areaId2=" . $areaId2 . ") \n\t\t  order by navType asc,navSort asc";
        $rs = $m->query($sql);
        F('navigation/' . $areaId2, $rs);
    }
    foreach ($rs as $key => $v) {
        $rs[$key]['url'] = $cururl;
        if (stripos($v['navUrl'], 'https://') === false && stripos($v['navUrl'], 'http://') === false) {
            $rs[$key]['navUrl'] = WSTDomain() . "/" . $rs[$key]['navUrl'];
        }
        $rs[$key]['active'] = stripos($rs[$key]['navUrl'], $cururl) !== false ? 1 : 0;
        $rs[$key]['end'] = $key == count($rs) - 1 ? 1 : 0;
    }
    //分組
    $data = array();
    foreach ($rs as $key => $v) {
        $data[$v['navType']][] = $v;
    }
    return $data[$type];
}
開發者ID:wmk223,項目名稱:demotp,代碼行數:36,代碼來源:function.php

示例2: WSTDomain

			</li>
		</ul>
		<span class="clr"></span>
	</div>
</div>

<div style="height:132px;">
<div id="mainsearchbox" style="text-align:center;">
	<div id="wst-search-pbox">
		<div style="float:left;width:240px;" class="wst-header-car">
		  <a href='<?php 
echo WSTDomain();
?>
'>
			<img id="wst-logo" width='240' height='132' src="<?php 
echo WSTDomain();
?>
/<?php 
echo $CONF['mallLogo'];
?>
"/>
		  </a>	
		</div>
		<div id="wst-search-container">
			<div id="wst-search-type-box">
				<input id="wst-search-type" type="hidden" value="<?php 
echo $searchType;
?>
"/>
				<div id="wst-panel-goods" class="<?php 
if ($searchType == 1) {
開發者ID:xgogo,項目名稱:fq-vamall,代碼行數:31,代碼來源:a94fef02a05e0f8ec5ed9069dcf79389.php

示例3: array

<?php

return array(define('WEB_HOST', WSTDomain()), 'WxPayConf_pub' => array('JS_API_CALL_URL' => WEB_HOST . '/index.php/Home/WxJsAPI/jsApiCall', 'SSLCERT_PATH' => WEB_HOST . '/ThinkPHP/Library/Vendor/WxPayPubHelper/cacert/apiclient_cert.pem', 'SSLKEY_PATH' => WEB_HOST . '/ThinkPHP/Library/Vendor/WxPayPubHelper/cacert/apiclient_key.pem', 'NOTIFY_URL' => WEB_HOST . '/index.php/Home/WxNative2/notify', 'CURL_TIMEOUT' => 30));
開發者ID:lihuafeng,項目名稱:wstmall,代碼行數:3,代碼來源:config.php

示例4: getWSTMallVersion

 /**
  * 獲取當前版本
  */
 public function getWSTMallVersion()
 {
     $this->isAjaxLogin();
     $version = C('WST_VERSION');
     $key = C('WST_MD5');
     $license = $GLOBALS['CONFIG']['mallLicense'];
     $content = file_get_contents(C('WST_WEB') . '/index.php?m=Api&c=Download&a=getLastVersion&version=' . $version . '&version_md5=' . $key . "&license=" . $license . "&host=" . WSTDomain());
     $json = json_decode($content, true);
     if ($json['version'] == $version) {
         $json['version'] = "same";
     }
     $this->ajaxReturn($json);
 }
開發者ID:BuleAnt,項目名稱:reselling.market.,代碼行數:16,代碼來源:IndexAction.class.php

示例5: getLevelImg

 private function getLevelImg($levle)
 {
     if ($levle == 0) {
         return $img = '<img src="' . WSTDomain() . '/Apps/Home/View/default/images/level/l0.gif" height="25" width="25">';
     } else {
         return $img = '<img src="' . WSTDomain() . '/Apps/Home/View/default/images/level/l' . $levle . '.gif" height="25" width="25">';
     }
 }
開發者ID:shadows05,項目名稱:mall,代碼行數:8,代碼來源:UsersMemeberModel.class.php


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