</td></tr> </td></tr> </table> </td><td width=595 style="width:595px" valign=top> <table class="bordertable" cellspacing=0 cellpadding=0 border=1 width=100%><tr><td> <table cellspacing=0 cellpadding=2 border=0 width=100%> <tr> <td class='white' bgcolor=#3B5998 colspan=2> Welcome <?php $fname = $profile->retrieve('name'); $fname = explode(" ", $fname); echo $fname[0]; ?> ! </td> </tr> </table> <br> <table cellspacing=0 cellpadding=6 border=0 width=97% align=center valign=top> <tr> <td width="95%" align=center valign=top> <center><p class='title'>[ Welcome <?php
<td> <form method="post" action="editprofile.php"> <table cellspacing=0 cellpadding=2 border=0 width=100%> <tr> <td colspan=2> <b>Account Info:</b> </td> </tr> <tr> <td style="width:110px"> Name: </td> <td style="width:430px"> <?php echo $profile->retrieve('name'); ?> </td> </tr> <tr> <td> Member Since: </td> <td> <?php echo date("F j, Y", strtotime($profile->retrieve('registerdate'))); ?> </td> </tr> <tr> <td>
</table> <center> <table cellspacing=0 cellpadding=2 border=0 width=95%> <tr> <td> <table cellspacing=0 cellpadding=0 border=0 width=100%> <tr> <td> <table cellspacing=0 cellpadding=2 border=0 width=100%> <tr> <td style="width:110px"> Name: </td> <td style="width:430px"> <?php echo $profile->retrieve('name'); ?> <br> </td> </tr> <tr> <td colspan=2> <b>To edit your name, please contact info@thefacebook.us</b> </td> </tr> </table> </td>
$error = "You have too many pending friend requests, please try again later."; break; case -2: $error = "You are already in this relationship."; break; case -1: $error = "You cannot add yourself."; break; default: $error = "An error has occurred, please try again later."; $success = FALSE; break; } $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>"; }
<br> <table cellspacing=0 cellpadding=6 border=0 width=97% align=center valign=top> <tr> <td width="100%" valign=top> <table class='bordertable' cellspacing=0 cellpadding=0 width=100% valign=top> <tr> <td> <table cellspacing=0 cellpadding=2 border=0 width=100%> <tr> <td class='white' bgcolor=#3B5998> Remove your connection to <?php echo $profile->retrieve("name"); ?> </td> </tr> </table> <?php if (!$success) { ?> <form method=post> <input type=hidden name=id value=<?php echo $fid; ?> > <table cellspacing=0 cellpadding=2 border=0 width=100%> <tr>
} if (!$connection && $sess->Retrieve('id') != 3) { header('Location: search.php?id=' . $id); } $friendarray = $profile->friendsids($uid, 0, 5000); $time = microtime(); $time = explode(' ', $time); $time = $time[1] + $time[0]; $finish = $time; $total_time = round($finish - $start, 4); //echo 'Friend data loaded in: '.$total_time.' seconds.'."\n"; ?> <html xmlns:fb="http://www.facebook.com/2008/fbml"> <head> <title>TheFacebook | <?php echo $profile->retrieve('name'); ?> </title> <link rel="stylesheet" href="style.css"> <link rel="shortcut icon" href="favicon.ico"> </head> <body> <div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.Canvas.setAutoResize(); }; (function() { var e = document.createElement('script'); e.async = true; e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; document.getElementById('fb-root').appendChild(e);
<center> <table cellspacing=0 cellpadding=2 border=0 width=95%> <tr> <td> <table cellspacing=0 cellpadding=0 border=0 width=100%> <tr> <td> <form method="post" action="editpicture.php" enctype="multipart/form-data" > <table cellspacing=0 cellpadding=2 border=0 width=100%> <tr> <td width=100px> <b>Your current picture:</b> </td> <td> <?php $pic = $profile->retrieve('defaultpicture'); echo "<img src='{$pic}'>"; ?> </td> </tr> <tr> <td width=100px> <b>Select a file:</b> </td> <td> <input class='inputtext' style='width:90%' type=file name='picture'> </td> </tr> <tr> <td colspan=2 align=center> <input class='inputsubmit' type='submit' value="Upload">