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


PHP es_cookie::is_set方法代碼示例

本文整理匯總了PHP中es_cookie::is_set方法的典型用法代碼示例。如果您正苦於以下問題:PHP es_cookie::is_set方法的具體用法?PHP es_cookie::is_set怎麽用?PHP es_cookie::is_set使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在es_cookie的用法示例。


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

示例1: define

$request_param['m_latitude']= es_session::get("m_latitude");
$request_param['m_longitude']= es_session::get("m_longitude");
*/
define("FOLDER_NAME", "");
define('TMPL_NAME', 'fanwe');
//define("IS_DEBUG",true);
require '../system/common.php';
require '../system/system_init.php';
require './lib/page.php';
require './lib/functions.php';
require './lib/transport.php';
require './lib/template.php';
define('AS_LOG_DIR', APP_ROOT_PATH . 'wap/log/');
define('AS_DEBUG', true);
require './lib/logUtils.php';
if (es_cookie::is_set("is_pc")) {
    es_cookie::delete("is_pc");
}
$transport = new transport();
$transport->use_curl = true;
//調用模板引擎
//require_once  APP_ROOT_PATH.'system/template/template.php';
if (!file_exists(APP_ROOT_PATH . 'public/runtime/wap/')) {
    mkdir(APP_ROOT_PATH . 'public/runtime/wap/', 0777);
}
if (!file_exists(APP_ROOT_PATH . 'public/runtime/wap/tpl_caches/')) {
    mkdir(APP_ROOT_PATH . 'public/runtime/wap/tpl_caches/', 0777);
}
if (!file_exists(APP_ROOT_PATH . 'public/runtime/wap/tpl_compiled/')) {
    mkdir(APP_ROOT_PATH . 'public/runtime/wap/tpl_compiled/', 0777);
}
開發者ID:macall,項目名稱:baikec_jsd,代碼行數:31,代碼來源:index.php

示例2: get_current_deal_city

/**
 * 獲取當前團購城市
 */
function get_current_deal_city()
{
    if (es_cookie::is_set("deal_city")) {
        $deal_city_id = es_cookie::get("deal_city");
        $deal_city = $GLOBALS['db']->getRow("select * from " . DB_PREFIX . "deal_city where is_effect = 1 and is_delete = 0 and id = " . intval($deal_city_id));
    }
    if (!$deal_city) {
        //設置如存在的IP訂位
        if (file_exists(APP_ROOT_PATH . "system/extend/ip.php")) {
            require_once APP_ROOT_PATH . "system/extend/ip.php";
            $ip = get_client_ip();
            $iplocation = new iplocate();
            $address = $iplocation->getaddress($ip);
            foreach ($city_list as $city) {
                if (strpos($address['area1'], $city['name'])) {
                    $deal_city = $city;
                    break;
                }
            }
        }
        if (!$deal_city) {
            $deal_city = $GLOBALS['db']->getRow("select * from " . DB_PREFIX . "deal_city where is_default = 1 and is_effect = 1 and is_delete = 0");
        }
    }
    return $deal_city;
}
開發者ID:YouthAndra,項目名稱:huaitaoo2o,代碼行數:29,代碼來源:common.php


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