source: branches/version-2_12-dev/data/class/pages/error/LC_Page_Error_DispError.php @ 22206

Revision 22206, 3.6 KB checked in by kim, 11 years ago (diff)

#2003 copyrightを2013に更新

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-httpd-php; charset=UTF-8
RevLine 
[15521]1<!-- -*- coding: utf-8 -*- -->
2<?php
3/*
[16582]4 * This file is part of EC-CUBE
5 *
[22206]6 * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
[15521]7 *
8 * http://www.lockon.co.jp/
[16582]9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
[15521]23 */
24
25// {{{ requires
[20534]26require_once CLASS_EX_REALDIR . 'page_extends/admin/LC_Page_Admin_Ex.php';
[15521]27
28/**
29 * エラー表示のページクラス
30 *
31 * @package Page
32 * @author LOCKON CO.,LTD.
[20116]33 * @version $Id$
[15521]34 */
[20345]35class LC_Page_Error_DispError extends LC_Page_Admin_Ex {
[15521]36
37    // }}}
38    // {{{ functions
39
40    /**
41     * Page を初期化する.
[20547]42     * LC_Page_Adminクラス内でエラーページを表示しようとした際に無限ループに陥るのを防ぐため,
43     * ここでは, parent::init() を行わない.(フロントのエラー画面出力と同様の仕様)
[15521]44     *
45     * @return void
46     */
47    function init() {
[20259]48        $this->template = LOGIN_FRAME;
[20136]49        $this->tpl_mainpage = 'login_error.tpl';
[20135]50        $this->tpl_title = 'ログインエラー';
[20547]51        // ディスプレイクラス生成
52        $this->objDisplay = new SC_Display_Ex();
[21799]53
54        // transformでフックしているばあいに, 再度エラーが発生するため, コールバックを無効化.
55        $objHelperPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);
56        $objHelperPlugin->arrRegistedPluginActions = array();
[15521]57    }
58
59    /**
60     * Page のプロセス。
61     *
62     * @return void
63     */
64    function process() {
[20135]65        $this->action();
66        $this->sendResponse();
67    }
[20562]68
[20135]69    /**
70     * Page のプロセス。
71     *
72     * @return void
73     */
[21479]74    function action() {
[21596]75
[16448]76        switch ($this->type) {
77            case LOGIN_ERROR:
[21514]78                $this->tpl_error='IDまたはパスワードが正しくありません。<br />もう一度ご確認のうえ、再度入力してください。';
[16448]79                break;
80            case ACCESS_ERROR:
[21514]81                $this->tpl_error='ログイン認証の有効期限切れの可能性があります。<br />もう一度ご確認のうえ、再度ログインしてください。';
[16448]82                break;
83            case AUTH_ERROR:
[21514]84                $this->tpl_error='このページにはアクセスできません';
[20547]85                SC_Response_Ex::sendHttpStatus(403);
[16448]86                break;
87            case INVALID_MOVE_ERRORR:
[21514]88                $this->tpl_error='不正なページ移動です。<br />もう一度ご確認のうえ、再度入力してください。';
[16448]89                break;
90            default:
[21514]91                $this->tpl_error='エラーが発生しました。<br />もう一度ご確認のうえ、再度ログインしてください。';
[16448]92                break;
93        }
[21743]94
[15521]95    }
96
97    /**
98     * デストラクタ.
99     *
100     * @return void
101     */
102    function destroy() {
103        parent::destroy();
104    }
[20328]105
106    /**
107     * エラーページではトランザクショントークンの自動検証は行わない
108     */
109    function doValidToken() {
110        // queit.
111    }
[15521]112}
Note: See TracBrowser for help on using the repository browser.