- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
function errhandler($errno,$errstr,$errfile,$errline,$errcontext)
{
global $dbw,$dbr,$tid,$pid,$cheat,$http_referer;
switch ($errno)
{
case E_NOTICE:
case E_USER_NOTICE:
return true;
break;
case E_WARNING:
case E_USER_WARNING:
$error = 'Warning';
if (strpos($errstr,'Deadlock')!==false)
{
cust_rollback($errline);
}
break;
case E_ERROR:
case E_USER_ERROR:
$error = 'Fatal Error';
cust_rollback($errline);
break;
default:
return true;
break;
}
switch ($errno) {
case E_ERROR:
case E_USER_ERROR:
exit();
break;
}
return TRUE;
}
set_error_handler("errhandler");
Lure Of Chaos 24.03.2012 20:52 # +1
istem 25.03.2012 11:18 # 0
guest8 09.04.2019 12:53 # −999