当前位置: 首页>>代码示例>>PHP>>正文


PHP SC_Utils_Ex::sfDomainSessionStart方法代码示例

本文整理汇总了PHP中SC_Utils_Ex::sfDomainSessionStart方法的典型用法代码示例。如果您正苦于以下问题:PHP SC_Utils_Ex::sfDomainSessionStart方法的具体用法?PHP SC_Utils_Ex::sfDomainSessionStart怎么用?PHP SC_Utils_Ex::sfDomainSessionStart使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SC_Utils_Ex的用法示例。


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

示例1: SC_SiteSession

 function SC_SiteSession()
 {
     SC_Utils_Ex::sfDomainSessionStart();
     // 前ページでの登録成功判定を引き継ぐ
     $_SESSION['site']['pre_regist_success'] = isset($_SESSION['site']['regist_success']) ? $_SESSION['site']['regist_success'] : "";
     $_SESSION['site']['regist_success'] = false;
     $_SESSION['site']['pre_page'] = isset($_SESSION['site']['now_page']) ? $_SESSION['site']['now_page'] : "";
     $_SESSION['site']['now_page'] = $_SERVER['PHP_SELF'];
 }
开发者ID:khrisna,项目名称:eccubedrm,代码行数:9,代码来源:SC_SiteSession.php

示例2: SC_Session

 function SC_Session()
 {
     // セッション開始
     SC_Utils_Ex::sfDomainSessionStart();
     // セッション情報の保存
     if (isset($_SESSION['cert'])) {
         $this->sid = session_id();
         $this->cert = $_SESSION['cert'];
         $this->login_id = $_SESSION['login_id'];
         $this->authority = $_SESSION['authority'];
         // 管理者:0, 一般:1, 閲覧:2
         $this->member_id = $_SESSION['member_id'];
         if (isset($_SESSION['uniq_id'])) {
             $this->uniqid = $_SESSION['uniq_id'];
         }
         // ログに記録する
         GC_Utils_Ex::gfPrintLog("access : user=" . $this->login_id . " auth=" . $this->authority . " sid=" . $this->sid);
     } else {
         // ログに記録する
         GC_Utils_Ex::gfPrintLog("access error.");
     }
 }
开发者ID:khrisna,项目名称:eccubedrm,代码行数:22,代码来源:SC_Session.php

示例3: SC_SiteView

 function SC_SiteView($cart = true)
 {
     parent::SC_View();
     $this->_smarty->template_dir = TEMPLATE_DIR;
     $this->_smarty->compile_dir = COMPILE_DIR;
     $this->initpath();
     // PHP5ではsessionをスタートする前にヘッダー情報を送信していると警告が出るため、先にセッションをスタートするように変更
     SC_Utils_Ex::sfDomainSessionStart();
     if ($cart) {
         $include_dir = realpath(dirname(__FILE__));
         require_once $include_dir . "/SC_CartSession.php";
         $objCartSess = new SC_CartSession();
         $objCartSess->setPrevURL($_SERVER['REQUEST_URI']);
     }
 }
开发者ID:khrisna,项目名称:eccubedrm,代码行数:15,代码来源:SC_View.php

示例4: SC_CampaignSession

 function SC_CampaignSession($key = "campaign")
 {
     SC_Utils_Ex::sfDomainSessionStart();
     $this->key = $key;
 }
开发者ID:khrisna,项目名称:eccubedrm,代码行数:5,代码来源:SC_CampaignSession.php

示例5: process

 /**
  * Page のプロセス.
  *
  * @return void
  */
 function process()
 {
     global $objCampaignSess;
     $conn = new SC_DBConn();
     $this->objView = new SC_SiteView();
     $objCampaignSess = new SC_CampaignSession();
     $objDb = new SC_Helper_DB_Ex();
     $CONF = $objDb->sf_getBasisData();
     // 店舗基本情報
     SC_Utils_Ex::sfDomainSessionStart();
     $objCustomer = new SC_Customer();
     $this->arrData = isset($_SESSION['customer']) ? $_SESSION['customer'] : "";
     // レイアウトデザインを取得
     $layout = new SC_Helper_PageLayout_Ex();
     $layout->sfGetPageLayout($this, false, DEF_LAYOUT);
     //フォーム値変換用カラム
     $arrConvertColumn = array(array("column" => "name01", "convert" => "aKV"), array("column" => "name02", "convert" => "aKV"), array("column" => "kana01", "convert" => "CKV"), array("column" => "kana02", "convert" => "CKV"), array("column" => "zip01", "convert" => "n"), array("column" => "zip02", "convert" => "n"), array("column" => "pref", "convert" => "n"), array("column" => "addr01", "convert" => "aKV"), array("column" => "addr02", "convert" => "aKV"), array("column" => "email", "convert" => "a"), array("column" => "tel01", "convert" => "n"), array("column" => "tel02", "convert" => "n"), array("column" => "tel03", "convert" => "n"), array("column" => "contents", "convert" => "aKV"));
     if (!isset($_POST['mode'])) {
         $_POST['mode'] = "";
     }
     switch ($_POST['mode']) {
         case 'confirm':
             // エラーチェック
             $this->arrForm = $_POST;
             $this->arrForm['email'] = isset($_POST['email']) ? strtolower($_POST['email']) : '';
             $this->arrForm['email02'] = isset($_POST['email02']) ? strtolower($_POST['email02']) : '';
             $this->arrForm = $this->lfConvertParam($this->arrForm, $arrConvertColumn);
             $this->arrErr = $this->lfErrorCheck($this->arrForm);
             if (!$this->arrErr) {
                 // エラー無しで完了画面
                 $this->tpl_mainpage = 'contact/confirm.tpl';
                 $this->tpl_title = 'お問い合わせ(確認ページ)';
             } else {
                 foreach ($this->arrForm as $key => $val) {
                     $this->{$key} = $val;
                 }
             }
             break;
         case 'return':
             foreach ($_POST as $key => $val) {
                 $this->{$key} = $val;
             }
             break;
         case 'complete':
             $this->arrForm = $_POST;
             $this->arrForm['email'] = strtolower($_POST['email']);
             $this->arrForm = $this->lfConvertParam($this->arrForm, $arrConvertColumn);
             $this->arrErr = $this->lfErrorCheck($this->arrForm);
             if (!$this->arrErr) {
                 $this->lfSendMail($CONF, $this);
                 // 完了ページへ移動する
                 $this->sendRedirect($this->getLocation("./complete.php", array(), true));
                 exit;
             } else {
                 SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR);
             }
             break;
         default:
             break;
     }
     //---- ページ表示
     $this->objView->assignobj($this);
     // フレームを選択(キャンペーンページから遷移なら変更)
     $objCampaignSess->pageView($this->objView);
 }
开发者ID:khrisna,项目名称:eccubedrm,代码行数:70,代码来源:LC_Page_Contact.php

示例6: startSession

 function startSession()
 {
     SC_Utils_Ex::sfDomainSessionStart();
     $_SESSION['customer'] = $this->customer_data;
     // セッション情報の保存
     GC_Utils_Ex::gfPrintLog("access : user=" . $this->customer_data['customer_id'] . "\t" . "ip=" . $this->getRemoteHost(), CUSTOMER_LOG_PATH);
 }
开发者ID:khrisna,项目名称:eccubedrm,代码行数:7,代码来源:SC_Customer.php


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