handle error





PHPXRef 0.7 : NEABExplorer : /libs/handle_error.php source









[ Index ]


PHP Cross Reference of NEABExplorer














if (gwGetCookie('xrefnav')=='off')
document.write('[ Show Explorer ]');
else
document.write('[ Hide Explorer ]');



[ Show Explorer ]
[ Hide Navbar ]





titleBody[close]
/libs/ -> handle_error.php (source)

[Summary view]
[Print]
[Text view]


1 <?PHP
2 /**
3 * Code used to display an error message.
4 */
5
6 $errortype = array (
7 1 => "Error",
8 2 => "Warning",
9 4 => "Parsing Error",
10 8 => "Notice",
11 16 => "Core Error",
12 32 => "Core Warning",
13 64 => "Compile Error",
14 128 => "Compile Warning",
15 256 => "User Error",
16 512 => "User Warning",
17 1024=> "User Notice",
18 2048=> "Strict"
19 );
20
21 $err = "Date: ".date("Y-m-d H:i:s (T)")."\n";
22 $err .= "Error number: ".$errno."\n";
23 $err .= "Error type: ".$errortype[$errno]."\n";
24 $err .= "Error message: ".$errmsg."\n";
25 $err .= "Filename: ".$filename."\n";
26 $err .= "Line number: ".$linenum."\n";
27
28 echo "<html>\n";
29 echo "<head>\n";
30 echo "<title>$gametitle</title>\n";
31 echo "<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>\n";
32 echo "<meta HTTP-EQUIV='imagetoolbar' CONTENT='no'>\n";
33 echo "<link rel=icon href=/favicon.ico type=image/png>\n";
34 echo "<link href=normal_2.css rel=stylesheet type=text/css>\n";
35 echo "</head>\n";
36 echo "<body>\n";
37
38 echo "<BR><DIV ALIGN=CENTER>";
39 echo "<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=1 BGCOLOR=#000000>";
40 echo "<TR><TH><B><FONT COLOR=#FFFFFF>Result</FONT></B></TH></TR>\n";
41 echo "<TR><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2 BGCOLOR=#E0E0E0 WIDTH=300><TR><TD>";
42 echo "An error occured, maybe this part of the game is under maintenance, you should retry.<BR><BR\n";
43 echo "<B><FONT COLOR=#FF0000>".nl2br($err)."</FONT></B>\n";
44
45 if($uservals["ROLE"] == "Y")
46 {
47 echo "<PRE>\n";
48 var_dump(debug_backtrace());
49 echo "</PRE>\n";
50 }
51
52 echo "</TD></TR></TABLE></TD></TR></TABLE><BR>\n";
53 echo "[<A HREF=game.php>Retry</A>]\n";
54 exit;
55 ?>



FUNC_DATA={
'date': ['date', '', [], 5],
'nl2br': ['nl2br', '', [], 4],
'var_dump': ['var_dump', '', [], 1],
'debug_backtrace': ['debug_backtrace', '', [], 1]};
CLASS_DATA={
};
CONST_DATA={
};

titleDescriptionBody
titleDescriptionBody
titleDescriptionBody
titleBody



Generated: Sun Jul 8 18:11:25 2007
Cross-referenced by PHPXref 0.7





Wyszukiwarka

Podobne podstrony:
handle error
handle error
handle error
old error handler
function restore error handler
function xslt set error handler
function set error handler
function set error handler
function set error handler
set error handler
function restore error handler
function mysql error
Handleiding
error
function error reporting

więcej podobnych podstron