source: branches/version-2_4/data/class/pages/error/LC_Page_Error_DispError.php @ 18734

Revision 18734, 2.8 KB checked in by nanasess, 14 years ago (diff)

Copyright の更新(#601)

  • Property svn:eol-style set to LF
  • Property svn:keywords set to "Id Revision Date"
  • 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_PATH . "pages/error/LC_Page_Error.php");
27
28/**
29 * エラー表示のページクラス
30 *
31 * @package Page
32 * @author LOCKON CO.,LTD.
33 * @version $Id: LC_Page_Error.php 15141 2007-07-27 10:59:11Z nanasess $
34 */
35class LC_Page_Error_DispError extends LC_Page_Error {
36
37    // }}}
38    // {{{ functions
39
40    /**
41     * Page を初期化する.
42     *
43     * @return void
44     */
45    function init() {
46        parent::init();
47        $this->tpl_mainpage = 'login_error.tpl';
48    }
49
50    /**
51     * Page のプロセス。
52     *
53     * @return void
54     */
55    function process() {
56        $objView = new SC_AdminView();
57
58        switch ($this->type) {
59            case LOGIN_ERROR:
60                $this->tpl_error="IDまたはパスワードが正しくありません。<br />もう一度ご確認のうえ、再度入力してください。";
61                break;
62            case ACCESS_ERROR:
63                $this->tpl_error="ログイン認証の有効期限切れの可能性があります。<br />もう一度ご確認のうえ、再度ログインしてください。";
64                break;
65            case AUTH_ERROR:
66                $this->tpl_error="このファイルにはアクセス権限がありません。<br />もう一度ご確認のうえ、再度ログインしてください。";
67                break;
68            case INVALID_MOVE_ERRORR:
69                $this->tpl_error="不正なページ移動です。<br />もう一度ご確認のうえ、再度入力してください。";
70                break;
71            default:
72                $this->tpl_error="エラーが発生しました。<br />もう一度ご確認のうえ、再度ログインしてください。";
73                break;
74        }
75
76        $objView->assignobj($this);
77        $objView->display(LOGIN_FRAME);
78    }
79
80    /**
81     * デストラクタ.
82     *
83     * @return void
84     */
85    function destroy() {
86        parent::destroy();
87    }
88}
89?>
Note: See TracBrowser for help on using the repository browser.