Changeset 18281
- Timestamp:
- 2009/09/07 22:36:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/pages/admin/system/LC_Page_Admin_System_Log.php
r18234 r18281 113 113 $arrLogTmp = array_reverse(file($path)); 114 114 115 $ body = '';115 $arrBodyReverse = array(); 116 116 foreach ($arrLogTmp as $line) { 117 $line = chop($line); 117 118 if (preg_match('/^(\d+\/\d+\/\d+ \d+:\d+:\d+) \[([^\]]+)\] (.*)$/', $line, $arrMatch)) { 118 119 $arrLogLine = array(); … … 122 123 $arrLogLine['path'] = $arrMatch[2]; 123 124 // 内容 124 $arrLogLine['body'] = $arrMatch[3] . $body; 125 $body = ''; 125 $arrBodyReverse[] = $arrMatch[3]; 126 $arrLogLine['body'] = implode("\n", array_reverse($arrBodyReverse)); 127 $arrBodyReverse = array(); 126 128 127 129 $arrLogs[] = $arrLogLine; … … 131 133 } else { 132 134 // 内容 133 $ body = "\n" . $line . $body;135 $arrBodyReverse[] = $line; 134 136 } 135 137 }
Note: See TracChangeset
for help on using the changeset viewer.