Changeset 366 for administrace
- Timestamp:
- May 21, 2008, 1:50:14 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
administrace/process_log.php
r362 r366 53 53 //echo($Database->error); 54 54 55 $Configuration = array(); 55 56 $Log = addslashes(file_get_contents($MangosConfFile)); 56 $Database->query('UPDATE `debug` SET Configuration="'.$Log.'" WHERE Id='.$InsertId); 57 $LogLines = explode("\n", $Log); 58 foreach($LogLines as $LogLine) 59 { 60 if(substr($LogLine, 0, 1) != '#') $Configuration[] = $LogLine; 61 } 62 $Database->query('UPDATE `debug` SET Configuration="'.implode("\n", $Configuration).'" WHERE Id='.$InsertId); 57 63 58 64 // Clear log files
Note:
See TracChangeset
for help on using the changeset viewer.