Ignore:
Timestamp:
Apr 9, 2008, 4:48:09 PM (17 years ago)
Author:
george
Message:

Upraveno: Optimalizace a opravy systému zaznamenávání ladících informací o pádech serveru.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • administrace/debug_list.php

    r320 r329  
    88}
    99
    10 echo('<table><tr><td width="150px" valign="top">');
     10echo('<table width="100%"><tr><td width="150px" valign="top">');
     11echo('<strong>Restart list</strong><br>');
    1112
    1213$DbResult = $Database->query('SELECT Id, Time FROM debug WHERE 1 ORDER BY Time DESC');
    1314while($DbRow = $DbResult->fetch_array())
    1415{
    15   echo('<a href="?Id='.$DbRow['Id'].'&amp;Show=Backtrace">'.$DbRow['Time'].'</a><br>');
     16  echo('<a href="?Id='.$DbRow['Id'].'">'.str_replace(" ", "&nbsp;", $DbRow['Time']).'</a><br>');
    1617}
    1718
     
    3132    echo('<strong>MaxPlayerCount:</strong> '.$DbRow['MaxPlayerCount'].'<br><br>');
    3233    echo('<a href="?Id='.$Id.'&amp;Show=Backtrace">Backtrace</a>'.
    33       '  <a href="?Id='.$Id.'&amp;Show=Log">Console standard output log</a>'.
    34       '  <a href="?Id='.$Id.'&amp;Show=Error">Console error log</a><hr>');
     34      '  <a href="?Id='.$Id.'&amp;Show=Log">Mangos log</a>'.
     35      '  <a href="?Id='.$Id.'&amp;Show=Error">Console error log</a>'.
     36      '  <a href="?Id='.$Id.'&amp;Show=DbErrors">Database error log</a><hr>');
    3537    if(array_key_exists('Show', $_GET))
    3638    {
     
    3941      {
    4042        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>');
    4244          break;
    4345        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>');
    4547          break;
    4648        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>');
    4853          break;
    4954      }
Note: See TracChangeset for help on using the changeset viewer.