Source for file LC_Page_Error_SystemError.php
Documentation is available at LC_Page_Error_SystemError.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2011 LOCKON CO.,LTD. All Rights Reserved.
* http://www.lockon.co.jp/
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once CLASS_REALDIR . 'pages/error/LC_Page_Error.php';
* システムエラーや例外が発生した場合の表示ページ
* @author LOCKON CO.,LTD.
* @version $Id: LC_Page_Error_SystemError.php 20764 2011-03-22 06:26:40Z nanasess $
/** PEAR_Error がセットされていない場合用のバックトレーススタック */
$this->tpl_title = 'システムエラー';
$this->tpl_error = "システムエラーが発生しました。<br />大変お手数ですが、サイト管理者までご連絡ください。";
echo '<div class="debug">';
echo '<div>▼▼▼ デバッグ情報ここから ▼▼▼</div>';
echo '<div>▲▲▲ デバッグ情報ここまで ▲▲▲</div>';
$this->adminPage = SC_Utils_Ex::sfIsAdminFunction();
$this->tpl_mainpage = 'login_error.tpl';
$this->template = LOGIN_FRAME;
$this->objDisplay->prepare($this, true);
$this->objDisplay->prepare($this);
$this->objDisplay->response->write();
* トランザクショントークンに関して処理しないようにオーバーライド
* トランザクショントークンに関して処理しないようにオーバーライド
$errmsg .= SC_Utils_Ex::sfBacktraceToString($this->pearResult->backtrace);
// (上に該当せず)バックトレーススタックが指定されている場合
$errmsg .= SC_Utils_Ex::sfBacktraceToString($this->backtrace);
// (上に該当せず)バックトレースを生成できる環境(一般的には PHP 4 >= 4.3.0, PHP 5)の場合
// バックトレースのうち handle_error 以前は通常不要と考えられるので削除
foreach ($backtrace as $key => $arrLine) {
if (!isset ($arrLine['file']) && $arrLine['function'] === 'handle_error') {
$errmsg .= SC_Utils_Ex::sfBacktraceToString($backtrace);
$errmsg .= SC_Utils_Ex::sfGetUrl() . "\n";
$errmsg .= "SERVER_ADDR: " . $_SERVER['SERVER_ADDR'] . "\n";
$errmsg .= "REMOTE_ADDR: " . $_SERVER['REMOTE_ADDR'] . "\n";
$errmsg .= "USER_AGENT: " . $_SERVER['HTTP_USER_AGENT'] . "\n";
Documentation generated on Fri, 24 Feb 2012 14:01:57 +0900 by Seasoft
|