Changeset 34 for trunk/www/mangos_debug.php
- Timestamp:
- Jun 15, 2009, 9:09:30 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/mangos_debug.php
r24 r34 70 70 } 71 71 72 function ProcessLog( )72 function ProcessLog($ServerId) 73 73 { 74 74 global $Config; … … 76 76 $Output = ''; 77 77 // Read server Id from first parameter 78 if((count($_SERVER['argv']) > 1) and is_numeric($_SERVER['argv'][1]))79 {80 78 $ServerId = $_SERVER['argv'][1]; 81 79 $LogDir = '../server/'.$ServerId.'/log/'; … … 105 103 //$Log = array_slice($Lines, 0, $Line); 106 104 //$Log = addslashes(implode("\n", $Log)); 107 105 108 106 // Get used database version from database 109 107 $DbResult = $this->Database->query('SELECT * FROM `server'.$ServerId.'_mangos`.`db_version`'); … … 131 129 $this->Database->query('UPDATE `Debug` SET Log="'.$Log.'" WHERE Id='.$InsertId); 132 130 unlink($MangosLogFile); 131 } 133 132 134 }135 133 if(file_exists($MangosDbErrorsLogFile)) 136 134 { … … 159 157 } 160 158 unlink($StdOutLogFile); 161 } else $Output = 'Je nutno zadat číslo serveru jako parameter';162 159 return($Output); 163 160 }
Note:
See TracChangeset
for help on using the changeset viewer.