Page
[ class tree: Page ] [ index: Page ] [ all elements ]

Source for file LC_Page_Error_DispError.php

Documentation is available at LC_Page_Error_DispError.php

  1. <!-- -*- coding: utf-8 -*- -->
  2. <?php
  3. /*
  4.  * This file is part of EC-CUBE
  5.  *
  6.  * Copyright(c) 2000-2011 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
  26. require_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: LC_Page_Error_DispError.php 20764 2011-03-22 06:26:40Z nanasess $
  34.  */
  35. class LC_Page_Error_DispError extends LC_Page_Admin_Ex {
  36.  
  37.     // }}}
  38.     // {{{ functions
  39.  
  40.     /**
  41.      * Page を初期化する.
  42.      * LC_Page_Adminクラス内でエラーページを表示しようとした際に無限ループに陥るのを防ぐため,
  43.      * ここでは, parent::init() を行わない.(フロントのエラー画面出力と同様の仕様)
  44.      *
  45.      * @return void 
  46.      */
  47.     function init({
  48.         $this->template LOGIN_FRAME;
  49.         $this->tpl_mainpage 'login_error.tpl';
  50.         $this->tpl_title 'ログインエラー';
  51.         // ディスプレイクラス生成
  52.         $this->objDisplay new SC_Display_Ex();
  53.     }
  54.  
  55.     /**
  56.      * Page のプロセス。
  57.      *
  58.      * @return void 
  59.      */
  60.     function process({
  61.         $this->action();
  62.         $this->sendResponse();
  63.     }
  64.  
  65.     /**
  66.      * Page のプロセス。
  67.      *
  68.      * @return void 
  69.      */
  70.     function action(){
  71.         switch ($this->type{
  72.             case LOGIN_ERROR:
  73.                 $this->tpl_error="IDまたはパスワードが正しくありません。<br />もう一度ご確認のうえ、再度入力してください。";
  74.                 break;
  75.             case ACCESS_ERROR:
  76.                 $this->tpl_error="ログイン認証の有効期限切れの可能性があります。<br />もう一度ご確認のうえ、再度ログインしてください。";
  77.                 break;
  78.             case AUTH_ERROR:
  79.                 $this->tpl_error="このページにはアクセスできません";
  80.                 SC_Response_Ex::sendHttpStatus(403);
  81.                 break;
  82.             case INVALID_MOVE_ERRORR:
  83.                 $this->tpl_error="不正なページ移動です。<br />もう一度ご確認のうえ、再度入力してください。";
  84.                 break;
  85.             default:
  86.                 $this->tpl_error="エラーが発生しました。<br />もう一度ご確認のうえ、再度ログインしてください。";
  87.                 break;
  88.         }
  89.     }
  90.  
  91.     /**
  92.      * デストラクタ.
  93.      *
  94.      * @return void 
  95.      */
  96.     function destroy({
  97.         parent::destroy();
  98.     }
  99.  
  100.     /**
  101.      * エラーページではトランザクショントークンの自動検証は行わない
  102.      */
  103.     function doValidToken({
  104.         // queit.
  105.     }
  106. }
  107. ?>

Documentation generated on Fri, 24 Feb 2012 14:01:57 +0900 by Seasoft