/** * 初期化処理。 */ public function init() { if (CheckCarrier::isMobile()) { ini_set('session.use_trans_sid', 1); ini_set('session.use_only_cookies', 0); ini_set('session.use_cookies', 0); } session_start(); $this->checkSession(); }
/** * テンプレートの出力 * @access protected * @param String $tpl * @return */ protected function display($tpl = null) { if (is_null($tpl)) { $tpl = __APP__ . ".tpl"; } if (CheckCarrier::isMobile()) { header('content-type:text/html; charset="sjis"'); } $this->smarty->display($tpl); }
/** * テンプレートの出力 * @access protected * @param String $tpl * @return */ protected function display($tpl = null) { if (is_null($tpl)) { $tpl = __APP__ . ".tpl"; } //if(isset($_SESSION["USER_DATA"]["user_name"]) && $_SESSION["USER_DATA"]["auth"]){ if (isset($_SESSION["USER_DATA"])) { $this->smarty->assign("session", 1); } if (__EXEC__ == "login") { $this->smarty->assign("linkpattern", 0); } else { $this->smarty->assign("linkpattern", 1); } if (CheckCarrier::isMobile()) { header('content-type:text/html; charset="sjis"'); } $this->smarty->display($tpl); }