-
Notifications
You must be signed in to change notification settings - Fork 3
/
friendrequests.html.php
35 lines (33 loc) · 1.08 KB
/
friendrequests.html.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
<?php
$ini_array = parse_ini_file("config.ini");
$path = $ini_array['path'];
include_once $_SERVER['DOCUMENT_ROOT'].$path.
'/includes/helpers.inc.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include $_SERVER['DOCUMENT_ROOT'].$path.'/includes/notifications.html.php';
include_once $_SERVER['DOCUMENT_ROOT'].$path.
'/includes/header.inc.html.php';
?>
<meta charset="UTF-8">
</head>
<body>
<?php if (!isset($pending_friends) ):?>
<p> No FriendRequests YOU ARE LONELY ! </p>
<?php else :?>
<?php foreach ( $pending_friends as $pending_friend): ?>
<div>
<p>Please Accept this poor Guy :<?php htmlout($pending_friend['sender_name']) ?><br/> Ps (Friend Requests aren't marriage proposals)</p>
<form action=" " method="post" >
<input type="hidden" name="pending_id" value="<?php htmlout($pending_friend['id']);?>">
<input type="submit" name="action" value="Accept">
<input type="submit" name="action" value="Decline">
</form>
</div>
<?php endforeach ; ?>
<?php endif;?>
</table>
</body>
</html>