/** * Page のプロセス. * * @return void */ function process() { ob_end_clean(); parent::process(); $this->action(); $this->sendResponse(); }
/** * Page のプロセス. * * @return void */ function process() { parent::process(); // ログインチェック $objCustomer = new SC_Customer_Ex(); // ログインしていない場合は必ずログインページを表示する if ($objCustomer->isLoginSuccess(true) === false) { // クッキー管理クラス $objCookie = new SC_Cookie_Ex(); // クッキー判定(メールアドレスをクッキーに保存しているか) $this->tpl_login_email = $objCookie->getCookie('login_email'); if ($this->tpl_login_email != '') { $this->tpl_login_memory = '1'; } // POSTされてきたIDがある場合は優先する。 if (isset($_POST['login_email']) && $_POST['login_email'] != '') { $this->tpl_login_email = $_POST['login_email']; } // 携帯端末IDが一致する会員が存在するかどうかをチェックする。 if (SC_Display_Ex::detectDevice() === DEVICE_TYPE_MOBILE) { $this->tpl_valid_phone_id = $objCustomer->checkMobilePhoneId(); } $this->tpl_title = t('c_MY page (login)_01'); $this->tpl_mainpage = 'mypage/login.tpl'; } else { //マイページ会員情報表示用共通処理 $this->tpl_login = true; $this->CustomerName1 = $objCustomer->getvalue('name01'); $this->CustomerName2 = $objCustomer->getvalue('name02'); $this->CustomerPoint = $objCustomer->getvalue('point'); $this->action(); } $this->sendResponse(); }
/** * Page のプロセス. * * @return void */ function process() { parent::process(); $this->action(); //$this->sendResponse(); if ($this->data_mode == 'API') { echo json_encode($this->arrProducts); } else { if ($this->data_mode == 'WEB') { $this->sendResponse(); } else { /*My own query*/ $servername = "localhost"; $username = "******"; $password = "******"; $dbname = "rise_up_shop"; // Create connection $dd = $this->data_mode; $conn = new mysqli($servername, $username, $password, $dbname); // Check connection $sql = "SELECT * FROM dtb_products where product_id={$dd}"; $result = mysqli_query($conn, $sql); echo json_encode(mysqli_fetch_object($result)); } } }
/** * Page のプロセス. * * @return void */ public function process() { parent::process(); $this->action(); $this->sendResponse(); // プラグインなどで order_id を取得する場合があるため, ここで unset する unset($_SESSION['order_id']); }
/** * * {@inheritDoc} * * @see LC_Page::process() */ function process() { if (ADMIN_FORCE_SSL && SC_Utils_Ex::sfIsHTTPS() === false) { SC_Response_Ex::reloadSSL(); SC_Response_Ex::actionExit(); } GC_Utils_Ex::gfPrintLog(print_r($_SESSION, true), DEBUG_LOG_REALFILE); GC_Utils_Ex::gfPrintLog(print_r($_COOKIE, true), DEBUG_LOG_REALFILE); GC_Utils_Ex::gfPrintLog(print_r($_SERVER, true), DEBUG_LOG_REALFILE); GC_Utils_Ex::gfPrintLog(print_r($_ENV, true), DEBUG_LOG_REALFILE); parent::process(); $this->action(); $this->sendResponse(); }
/** * Page のプロセス. * * @return void */ function process() { parent::process(); $objView = new SC_SiteView_Ex(); $objSess = new SC_Session_Ex(); SC_Utils_Ex::sfIsSuccess($objSess); if (isset($_SESSION['preview']) && $_SESSION['preview'] === 'ON') { // プレビュー用のレイアウトデザインを取得 $objLayout = new SC_Helper_PageLayout_Ex(); $objLayout->sfGetPageLayout($this, true); // 画面の表示 $objView->assignobj($this); $objView->display(SITE_FRAME); return; } SC_Utils_Ex::sfDispSiteError(PAGE_ERROR); }
/** * Page のプロセス. * * @return void */ function process() { parent::process(); $this->action(); }
/** * Page のプロセス. * * @return void */ public function process() { parent::process(); $this->action(); $this->sendResponse(); }
/** * Page のプロセス. * * @return void */ function process() { parent::process(); }