-
Notifications
You must be signed in to change notification settings - Fork 1
/
error.php
53 lines (49 loc) · 1.38 KB
/
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
<?php
function describeError($error) {
switch ($error) {
case 0:
$description = 'No Error';
break;
case 1:
$description = 'Username or Password are empty';
break;
case 2:
$description = 'Incorrect Length for Username, you must use at least 4 characters';
break;
case 3:
$description = 'Incorrect Length for Password';
break;
case 4:
$description = "Username must be alphanumeric";
break;
case 5:
$description = "Server is having troubles connecting to the database";
break;
case 6:
$description = "Username already exists";
break;
case 7:
$description = "Login failed, Check your credentials!";
break;
case 8:
$description = "Fact or source are empty";
break;
case 9:
$description = "You're not looged in";
break;
case 10:
$description = "No action defined";
break;
case 11:
$description = "No limits defined";
break;
case 12:
$description = "ID not defined";
break;
default:
$description = "Unknown Error";
break;
}
return $description;
}
?>