-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpost_delete.php
72 lines (51 loc) · 1.44 KB
/
post_delete.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
<div id="post">
<div>
<?php
$image = "images/user_male.jpg";
if($ROW_USER['gender'] == "Female")
{
$image = "images/user_female.jpg";
}
$image_class = new Image();
if(file_exists($ROW_USER['profile_image']))
{
$image = $image_class->get_thumb_profile($ROW_USER['profile_image']);
}
?>
<img src="<?php echo $image ?>" style="width: 75px;margin-right: 4px;border-radius: 50%;">
</div>
<div style="width: 100%;">
<div style="font-weight: bold;color: rgb(51, 168, 255);width: 100%;">
<?php
echo htmlspecialchars($ROW_USER['first_name']) . " " . htmlspecialchars($ROW_USER['last_name']);
if($ROW['is_profile_image'])
{
$pronoun = "his";
if($ROW_USER['gender'] == "Female")
{
$pronoun = "her";
}
echo "<span style='font-weight:normal;color:#aaa;'> updated $pronoun profile image</span>";
}
if($ROW['is_cover_image'])
{
$pronoun = "his";
if($ROW_USER['gender'] == "Female")
{
$pronoun = "her";
}
echo "<span style='font-weight:normal;color:#aaa;'> updated $pronoun cover image</span>";
}
?>
</div>
<?php echo htmlspecialchars($ROW['post']) ?>
<br><br>
<?php
if(file_exists($ROW['image']))
{
$post_image = $image_class->get_thumb_post($ROW['image']);
echo "<img src='$post_image' style='width:80%;' />";
}
?>
</div>
</div>