Source for file LC_Page_Admin_System_Log.php
Documentation is available at LC_Page_Admin_System_Log.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_EX_REALDIR . 'page_extends/admin/LC_Page_Admin_Ex.php';
* @version $Id: LC_Page_Admin_System_Log.php 20970 2011-06-10 10:27:24Z Seasoft $
$this->tpl_mainpage = 'system/log.tpl';
$this->tpl_subno = 'log';
$this->tpl_mainno = 'system';
$this->tpl_maintitle = 'システム設定';
$this->tpl_subtitle = 'EC-CUBE ログ表示';
$objFormParam->setParam($_POST);
if (SC_Utils_Ex::sfIsInt($tmp = $objFormParam->getValue('line'))) {
* @return object SC_FormParam インスタンス
$objFormParam->addParam('line_max', 'line_max', INT_LEN, '', array('NUM_CHECK', 'MAX_LENGTH_CHECK', 'EXIST_CHECK'));
* @return array $arrLogs 取得したログ
for ($gen = 0 ; $gen <= MAX_LOG_QUANTITY; $gen++ ) {
$arrBodyReverse = array();
foreach ($arrLogTmp as $line) {
if (preg_match('/^(\d+\/\d+\/\d+ \d+:\d+:\d+) \[([^\]]+)\] (.*)$/', $line, $arrMatch)) {
$arrLogLine['date'] = $arrMatch[1];
$arrLogLine['path'] = $arrMatch[2];
$arrBodyReverse[] = $arrMatch[3];
$arrBodyReverse = array();
$arrLogs[] = $arrLogLine;
if (count($arrLogs) >= $this->line_max) break 2;
$arrBodyReverse[] = $line;
Documentation generated on Fri, 24 Feb 2012 14:01:49 +0900 by Seasoft
|