Changeset 153 for www/error.php


Ignore:
Timestamp:
Feb 16, 2009, 6:16:00 PM (15 years ago)
Author:
george
Message:
  • Přidáno: Zobrazování chyb v SQL povelech. Nastavení v konfigureaci.
  • Upraveno: Zpřístupnění stavu financí dle ip i dle přihlášení.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • www/error.php

    r47 r153  
    66//error_reporting(0);                                   // Vypni interní obsluhu chyb
    77
    8 function obsluha_chyb($errno, $errmsg, $filename, $linenum, $vars)
     8function CustomErrorHandler($errno, $errmsg, $filename, $linenum, $vars)
    99{
    1010  global $Config;
     
    5757    '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"></head><body>'."\n".
    5858    'Došlo k vnitřní chybě!<br> O chybě byl uvědoměn správce webu a chybu brzy odstraní.<br><br>');
    59         if($Config['Web']['ShowError'] == 1) echo('<pre>'.$err.'</pre><br>');                   // V případě ladění chybu i zobraz
     59        if($Config['Web']['ShowError'] == true) echo('<pre>'.$err.'</pre><br>');                        // V případě ladění chybu i zobraz
    6060    echo('</body></html>');
    6161    if((E_ERROR | E_PARSE) & $errno) die();
     
    6363}
    6464
    65 set_error_handler('obsluha_chyb');                              // Aktivuj novou obsluhu chyb
     65set_error_handler('CustomErrorHandler');                                // Aktivuj novou obsluhu chyb
    6666
    6767?>
Note: See TracChangeset for help on using the changeset viewer.