Changeset 366 for administrace


Ignore:
Timestamp:
May 21, 2008, 1:50:14 PM (17 years ago)
Author:
george
Message:

Odstranění nápovědy z logované konfigurace mangosu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • administrace/process_log.php

    r362 r366  
    5353//echo($Database->error);
    5454
     55$Configuration = array();
    5556$Log = addslashes(file_get_contents($MangosConfFile));
    56 $Database->query('UPDATE `debug` SET Configuration="'.$Log.'" WHERE Id='.$InsertId);
     57$LogLines = explode("\n", $Log);
     58foreach($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);
    5763
    5864// Clear log files
Note: See TracChangeset for help on using the changeset viewer.