-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnote.php
106 lines (104 loc) · 4 KB
/
note.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
<?php
include __DIR__.'/parts/service.php';
$page_global = array(
"page_title"=>"Update - Serene Writers",
"page_description"=>"This page deals with internal errors! <nofllow>",
"page_image"=> URL ."files/logo.png",
"page_keyword"=>"Error Occured"
);
if (isset($_REQUEST['msg'])) {
$msg = $_REQUEST['msg'];
if ($msg == 'ac_creation') {
$color = 'black';
$msg_1 = "Account Created Successfully";
$msg_2 = "Please login now to continue.";
} else if ($msg == 'session_exp') {
$color = 'red';
$msg_1 = "Session Expired/Invalid";
$msg_2 = "Please login now to continue.";
} else if ($msg == 'pub') {
$color = "Green";
$msg_1 = "Published Successfully";
$msg_2 = "Congratulations your write up had been published on Serene Writers. All the best!";
} else if ($msg == 'article_not_found') {
$color = "Red";
$msg_1 = "Write-up Not Found";
$msg_2 = "Write-up had been deleted or reported or your url is invalid! Please check again;";
} else if ($msg == 'update') {
$color = "Green";
$msg_1 = "Updated Successfully";
$msg_2 = "Write-up had been updated!";
} else if ($msg == 'del_true') {
$color = "Green";
$msg_1 = "Deleted Successfully";
$msg_2 = "Write-up had been deleted!";
} else if ($msg == 'del_false') {
$color = "Red";
$msg_1 = "Error while deleting write-up";
$msg_2 = "Please check if you have authorization to delete the article.";
} else if ($msg == 'update_user') {
$color = "Green";
$msg_1 = "Updated Successfully";
$msg_2 = "User's info had been updated successfully";
} else if ($msg == 'author_not_found') {
$color = "Red";
$msg_1 = "Author Not Found";
$msg_2 = "Author had been deleted or your url is invalid! Please check again;";
} else if ($msg == 'invalid_input') {
$color = "Red";
$msg_1 = "Invalid Input";
$msg_2 = "You have tried to enter an invalid input.";
} else if ($msg == 'report_done') {
$color = "Green";
$msg_1 = "Reported Successfully";
$msg_2 = "We have recieved your report. We will soon process and get back to you.";
} else if ($msg == 'report_er') {
$color = "red";
$msg_1 = "Error occurred";
$msg_2 = "Some error occurred while reporting.";
} else if ($msg == 'mail_sent_pwd') {
$color = "Green";
$msg_1 = "Verification mail Sent";
$msg_2 = "We have sent an email to you. Please verify to reset your password.";
} else if ($msg == 'done_rest') {
$color = "Green";
$msg_1 = "Password Reset";
$msg_2 = "Your password had been reseted.";
} else if ($msg == 'done_rest_err') {
$color = "red";
$msg_1 = "Error occurred";
$msg_2 = "Some error occurred while reseting your password. Your link maybe broken or your password len is < 6. ";
} else {
$color = "red";
$msg_1 = "Error occurred";
$msg_2 = "Some error occurred while processing.";
}
} else {
header("Location: /");
}
include __DIR__.'/parts/head.php';
?>
<style>
@media screen and (min-width:770px) {
.margin_ph {
margin: 30vh 0 25vh 0 !important;
}
}
</style>
<div class="row margin_ph" >
<div class='col-md-2'></div>
<div id="primary" class="col-sm-12 col-md-8 content-area" style="margin:auto">
<main id="main" c/lass="site-main " role="main">
<article id="post-99" class="post-99 page type-page status-publish hentry">
<header class="entry-header col-sm-12" style="padding: 5vh 0 0;">
<h1 class="hdg hdg_1 hdg_title" ><?php echo $msg_1;?></h1>
</header>
<ul id="gform_fields_1" class="gform_fields top_label form_sublabel_below description_below">
<h3 class="hdg_3" style="color: <?php echo $color;?> !important;"><?php echo $msg_2;?></h3>
</ul>
<br/>
</article>
</main></div></div>
<?php
include __DIR__.'/parts/foot.php';
?>