-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.php
executable file
·55 lines (45 loc) · 1005 Bytes
/
error.php
1
2
3
4
5
6
7
8
9
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
function php_error_report($level){
// error_reporting -- Sets which PHP errors are reported
switch($level) {
case 1:
error_reporting(E_ERROR | E_WARNING | E_PARSE);
break;
case 2:
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
break;
case 3:
error_reporting(E_ALL ^ (E_NOTICE | E_WARNING));
break;
case 4:
error_reporting(E_ALL ^ E_NOTICE);
break;
case 5:
error_reporting(E_ALL);
break;
default:
error_reporting(0);
break;
}
}
function apache_error_report($case){
//ErrorDocument 400 /errors/badreq.html
//ErrorDocument 401 /errors/noauth.html
//ErrorDocument 403 /errors/forbid.html
//ErrorDocument 404 /errors/missing.html
//ErrorDocument 500 /errors/conferr.html
switch($case) {
case 400:
break;
case 401:
break;
case 403:
break;
case 404:
break;
case 500:
break;
default:
break;
}
?>