-
Notifications
You must be signed in to change notification settings - Fork 0
/
errorlogic.php
128 lines (107 loc) · 5.43 KB
/
errorlogic.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?php
/*
5 = update succesful
6 = update failed
7 = Not Signed In as Professional
8 = order confirmed!
9 = order update failed
10 = Order Rejected
11 = Order Reject Failed
12 = prod not set in kart
13 = categories missing chose a service
14 = no item selected
echo "<div class='alert alert-warning alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'><span aria-hidden='true'>×</span></button>
<strong>Warning!</strong> Better check yourself, you're not looking too good.
</div>"
*/
if(isset($_SESSION['err']))
{
if($_SESSION['err'] == 0){
echo "<div class='alert alert-success alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'><span aria-hidden='true'>×</span></button>
<strong>Signup Succesfull!</strong>
</div>";
}elseif($_SESSION['err'] == 1){
echo "<div class='alert alert-warning alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'><span aria-hidden='true'>×</span></button>
<strong>Signup Failed!</strong>
</div>";
}elseif($_SESSION['err'] == 2){
echo "<div class='alert alert-success alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'><span aria-hidden='true'>×</span></button>
<strong>Login Succesfull!</strong> </div>";
}elseif($_SESSION['err'] == 3){
echo "<div class='alert alert-warning alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'><span aria-hidden='true'>×</span></button>
<strong>Login Failed!</strong>
</div>";
}elseif($_SESSION['err'] ==4){
echo "<div class='alert alert-warning alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'><span aria-hidden='true'>×</span></button>
<strong>Warning!</strong>Unauthorise Action, You are Not Logged In.
</div>";
}elseif($_SESSION['err'] ==5){
echo "<div class='alert alert-success alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'><span aria-hidden='true'>×</span></button>
<strong>Hooray!</strong> Profile Update Succesful.
</div>";
}elseif($_SESSION['err'] ==6){
echo "<div class='alert alert-warning alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'><span aria-hidden='true'>×</span></button>
<strong>Warning!</strong> Profile Update Failed!
</div>";
}elseif($_SESSION['err'] ==7){
echo "<div class='alert alert-warning alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'><span aria-hidden='true'>×</span></button>
<strong>Warning!</strong> Not Logged In As PROFESSIONAL!
</div>";
}elseif($_SESSION['err'] ==8){
echo "<div class='alert alert-success alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'><span aria-hidden='true'>×</span></button>
<strong>Hurray!</strong> Order confirmed!.
</div>";
}elseif($_SESSION['err'] ==9){
echo "<div class='alert alert-warning alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'><span aria-hidden='true'>×</span></button>
<strong>Warning!</strong> Order Failed!
</div>";
}elseif($_SESSION['err'] ==10){
echo "<div class='alert alert-warning alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'><span aria-hidden='true'>×</span></button>
<strong>Warning!</strong> Order Rejected!
</div>";
}elseif($_SESSION['err'] ==11){
echo "<div class='alert alert-warning alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'><span aria-hidden='true'>×</span></button>
<strong>Warning!</strong> Order Rejection Failed
</div>";
}elseif($_SESSION['err'] ==12){
echo "<div class='alert alert-warning alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'><span aria-hidden='true'>×</span></button>
<strong>Warning!</strong> No Product Selected!.
</div>";
}elseif($_SESSION['err'] ==13){
echo "<div class='alert alert-warning alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'><span aria-hidden='true'>×</span></button>
<strong>Warning!</strong> Choose A Category Of Service First
</div>";
}elseif($_SESSION['err'] ==14){
echo "<div class='alert alert-warning alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'><span aria-hidden='true'>×</span></button>
<strong>Warning!</strong> Kart Error!
</div>";
}elseif($_SESSION['err'] ==15){
echo "<div class='alert alert-warning alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'><span aria-hidden='true'>×</span></button>
<strong>Warning!</strong> Empty Review!
</div>";
}elseif($_SESSION['err'] ==18){
echo "<div class='alert alert-success alert-dismissible' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'><span aria-hidden='true'>×</span></button>
<strong>Bye Bye!</strong> You Have Succesfully logout!
</div>";
}
$_SESSION['err']=null;
}
?>