</tr> <tr> <td bgcolor="#d9dfea"> </td> </tr> <?php ?> <table width=95%> <?php foreach ($requestsyourpending as $ids) { $name = $relationpend->getname('user', $ids); $searchn = $profile->get_searchnail($ids); if ($ids > 0) { ?> <tr> <td align=left> <table class="bottomborder" width="100%"> <tr valign=stop> <td width="100px" align=left> <img border=0 src="<?php echo $searchn; ?> "> </td> <td width="300px" align=left> <table width="200px">
$error .= "<br>"; } else { $error = "</b></font>A request has been sent to " . $profile->retrieve("name") . " to confirm your request."; if ($_REQUEST['confirm'] == "Confirm") { $error = "</b></font>Confirmed! <a href='profile.php?id=" . $fid . "'>View their profile</a> or <a href='reqs.php'>Go Back to Pending Requests</a>"; } if ($_REQUEST['deny'] == "Deny") { $error = "</b></font>The request has been removed. <a href='reqs.php'>Go Back to Pending Requests</a>"; } $success = true; } } $yourpending = $relation->pending_requests(); if (in_array($fid, $yourpending)) { $success = true; $relationshipwanted = strtolower($relation->getname('relationshiptype', $relation->getrelationshiptype($id, $fid))); $error = "</b></font><form method=post action=addfriend.php><input type=hidden name=id value='" . $fid . "'><a href='profile.php?id=" . $fid . "'>" . $profile->retrieve("name") . "</a> would like you to confirm that you are " . $relationshipwanted . ". <input class=inputsubmit type=submit name='confirm' value='Confirm'><input class=inputsubmit type=submit name='deny' value='Deny'></form>"; } ?> <title>TheFacebook | Add Friend</title> <link rel="stylesheet" href="style.css"> <link rel="shortcut icon" href="favicon.ico"> <center> <table class="bordertable" cellspacing=0 cellpadding=0 border=0 width=700> <tr><td> <table class="bottomborder" cellspacing=0 cellpadding=0 border=0 width=100%>