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

Revision 20534, 3.1 KB checked in by Seasoft, 13 years ago (diff)

#627(ソース整形・ソースコメントの改善)
#628(未使用処理・定義などの削除)

  • 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
Line 
1<!-- -*- coding: utf-8 -*- -->
2<?php
3/*
4 * This file is part of EC-CUBE
5 *
6 * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved.
7 *
8 * http://www.lockon.co.jp/
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.
23 */
24
25// {{{ requires
26require_once CLASS_EX_REALDIR . 'page_extends/admin/LC_Page_Admin_Ex.php';
27
28/**
29 * エラー表示のページクラス
30 *
31 * @package Page
32 * @author LOCKON CO.,LTD.
33 * @version $Id$
34 */
35class LC_Page_Error_DispError extends LC_Page_Admin_Ex {
36
37    // }}}
38    // {{{ functions
39
40    /**
41     * Page を初期化する.
42     *
43     * @return void
44     */
45    function init() {
46        parent::init();
47        $this->template = LOGIN_FRAME;
48        $this->tpl_mainpage = 'login_error.tpl';
49        $this->tpl_title = 'ログインエラー';
50    }
51
52    /**
53     * Page のプロセス。
54     *
55     * @return void
56     */
57    function process() {
58        $this->action();
59        $this->sendResponse();
60    }
61   
62    /**
63     * Page のプロセス。
64     *
65     * @return void
66     */
67    function action(){
68        switch ($this->type) {
69            case LOGIN_ERROR:
70                $this->tpl_error="IDまたはパスワードが正しくありません。<br />もう一度ご確認のうえ、再度入力してください。";
71                break;
72            case ACCESS_ERROR:
73                $this->tpl_error="ログイン認証の有効期限切れの可能性があります。<br />もう一度ご確認のうえ、再度ログインしてください。";
74                break;
75            case AUTH_ERROR:
76                $this->tpl_error="このファイルにはアクセス権限がありません。<br />もう一度ご確認のうえ、再度ログインしてください。";
77                break;
78            case INVALID_MOVE_ERRORR:
79                $this->tpl_error="不正なページ移動です。<br />もう一度ご確認のうえ、再度入力してください。";
80                break;
81            default:
82                $this->tpl_error="エラーが発生しました。<br />もう一度ご確認のうえ、再度ログインしてください。";
83                break;
84        }
85    }
86
87    /**
88     * デストラクタ.
89     *
90     * @return void
91     */
92    function destroy() {
93        parent::destroy();
94    }
95
96    /**
97     * エラーページではトランザクショントークンの自動検証は行わない
98     */
99    function doValidToken() {
100        // queit.
101    }
102}
103?>
Note: See TracBrowser for help on using the repository browser.