Changeset 329 for administrace/debug_list.php
- Timestamp:
- Apr 9, 2008, 4:48:09 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
administrace/debug_list.php
r320 r329 8 8 } 9 9 10 echo('<table><tr><td width="150px" valign="top">'); 10 echo('<table width="100%"><tr><td width="150px" valign="top">'); 11 echo('<strong>Restart list</strong><br>'); 11 12 12 13 $DbResult = $Database->query('SELECT Id, Time FROM debug WHERE 1 ORDER BY Time DESC'); 13 14 while($DbRow = $DbResult->fetch_array()) 14 15 { 15 echo('<a href="?Id='.$DbRow['Id'].' &Show=Backtrace">'.$DbRow['Time'].'</a><br>');16 echo('<a href="?Id='.$DbRow['Id'].'">'.str_replace(" ", " ", $DbRow['Time']).'</a><br>'); 16 17 } 17 18 … … 31 32 echo('<strong>MaxPlayerCount:</strong> '.$DbRow['MaxPlayerCount'].'<br><br>'); 32 33 echo('<a href="?Id='.$Id.'&Show=Backtrace">Backtrace</a>'. 33 ' <a href="?Id='.$Id.'&Show=Log">Console standard output log</a>'. 34 ' <a href="?Id='.$Id.'&Show=Error">Console error log</a><hr>'); 34 ' <a href="?Id='.$Id.'&Show=Log">Mangos log</a>'. 35 ' <a href="?Id='.$Id.'&Show=Error">Console error log</a>'. 36 ' <a href="?Id='.$Id.'&Show=DbErrors">Database error log</a><hr>'); 35 37 if(array_key_exists('Show', $_GET)) 36 38 { … … 39 41 { 40 42 case 'Backtrace': 41 echo('<strong>Backtrace:</strong> <br><pre>'. str_replace("\n", '<br>',$DbRow['Backtrace']).'</pre>');43 echo('<strong>Backtrace:</strong> <br><pre>'.htmlspecialchars($DbRow['Backtrace']).'</pre>'); 42 44 break; 43 45 case 'Log': 44 echo('<strong>Console standard output log:</strong> <br><pre>'. str_replace("\n", '<br>',$DbRow['Log']).'</pre>');46 echo('<strong>Console standard output log:</strong> <br><pre>'.htmlspecialchars($DbRow['Log']).'</pre>'); 45 47 break; 46 48 case 'Error': 47 echo('<strong>Console error log:</strong> <br><pre>'.str_replace("\n", '<br>', $DbRow['ErrorLog']).'</pre>'); 49 echo('<strong>Console error log:</strong> <br><pre>'.htmlspecialchars($DbRow['ErrorLog']).'</pre>'); 50 break; 51 case 'DbErrors': 52 echo('<strong>Database error log:</strong> <br><pre>'.htmlspecialchars($DbRow['DbErrors']).'</pre>'); 48 53 break; 49 54 }
Note:
See TracChangeset
for help on using the changeset viewer.