/
request.php
55 lines (51 loc) · 888 Bytes
/
request.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
if($_SERVER["REQUEST_METHOD"] == "POST")
{
print '<div class="post_it"><h3>';
if(isset($_POST['litter']))
{
print createPost();
}
if(isset($_POST['postComment']))
{
print postComment();
}
if(isset($_POST['reply']))
{
print replyComment();
}
if(isset($_POST['profile_pic']))
{
print changeProfilePic();
}
if(isset($_POST['changeInfo']))
{
print changeInfo();
}
if(isset($_POST['del_user']))
{
deleteUser();
}
if(isset($_POST['del_post']))
{
print deletePost();
}
if(isset($_POST['del_comment']))
{
print deleteComment();
}
if(isset($_POST['recycle']))
{
print recycle();
}
if(isset($_POST['follow']))
{
print follow();
}
if(isset($_POST['unfollow']))
{
print follow();
}
print '</h3><button type="button" id="hide_btn" class="button">close</button>';
print '</div>';
}