template = MAIN_FRAME; //IP制限チェック $allow_hosts = unserialize(ADMIN_ALLOW_HOSTS); if (is_array($allow_hosts) && count($allow_hosts) > 0) { if (array_search($_SERVER['REMOTE_ADDR'],$allow_hosts) === FALSE) { SC_Utils_Ex::sfDispError(AUTH_ERROR); } } //SSL制限チェック if (ADMIN_FORCE_SSL == TRUE) { if (SC_Utils_Ex::sfIsHTTPS() === false) { SC_Response_Ex::sendRedirect($_SERVER['REQUEST_URI'], $_GET, FALSE, TRUE); } } $this->tpl_authority = $_SESSION['authority']; // ディスプレイクラス生成 $this->objDisplay = new SC_Display_Ex(); // プラグインを実行するかを判定します. // プラグイン管理ではプラグインが実行されません if ($_SERVER['SCRIPT_NAME'] === ROOT_URLPATH . ADMIN_DIR . 'system/plugin.php') { $this->plugin_activate_flg = false; } // スーパーフックポイントを実行. $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); $objPlugin->doAction('LC_Page_preProcess', array($this)); // トランザクショントークンの検証と生成 $this->doValidToken(true); $this->setTokenTo(); } /** * Page のプロセス. * * @return void */ function process() { } /** * Page のレスポンス送信. * * @return void */ function sendResponse() { // HeadNaviにpluginテンプレートを追加する. $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); $objPlugin->setHeadNaviBlocs($this->arrPageLayout['HeadNavi']); // スーパーフックポイントを実行. $objPlugin->doAction('LC_Page_process', array($this)); $this->objDisplay->prepare($this, true); $this->objDisplay->response->write(); } /** * デストラクタ. * * @return void */ function destroy() { parent::destroy(); } /** * 前方互換用 * * @deprecated 2.12.0 GC_Utils_Ex::gfPrintLog を使用すること */ function log($mess, $log_level='Info') { trigger_error('前方互換用メソッドが使用されました。', E_USER_WARNING); // ログレベル=Debugの場合は、DEBUG_MODEがtrueの場合のみログ出力する if ($log_level === 'Debug' && DEBUG_MODE === false) { return; } // ログ出力 GC_Utils_Ex::gfPrintLog($mess, ''); } }