} } else { if (!empty($_GET['retouite'])) { recordRetouite($_GET['id'], $bd); } else { if (isset($_POST['follow'])) { follow($bd, $_POST['suivi']); } else { if (isset($_POST['unfollow'])) { unfollow($bd, $_POST['suivi']); } else { if (isset($_POST['unAcceptRequest'])) { unAcceptRequest($bd, $_POST['suiveur']); } else { if (isset($_GET['getFollowers'])) { show_followers($bd); } else { if (isset($_GET['getSuivi'])) { show_whoIFollow($bd); } else { if (isset($_GET['getTimeline'])) { $touitos = gettouitos($bd, $_SESSION['id']); show_timeline($touitos, $bd); } else { if (isset($_POST['acceptRequest'])) { $touitos = gettouitos($bd, $_POST['suiveur']); anwserRequest($bd, $touitos, $_POST['acceptRequest']); } else { if (isset($_GET['moreNewsTouite'])) { displayNews($bd, intval($_GET['offset'])); } else {
<br><br> <div class="inner" align="center"> <?php if (isset($_SESSION['username'])) { echo "<b>Hello! " . $_SESSION['username'] . " | find out your followers</b>"; //unset($_SESSION['username']); } ?> <div class="all_users" align="center"> <?php $folnonfol = ''; $users = show_followers($_SESSION['userid']); $following = following($_SESSION['userid']); $follower = follower($_SESSION['userid']); if (count($users)) { ?> <table border="1" cellspacing="0" cellpadding="5" width="330"> <?php foreach ($users as $key => $value) { echo '<tr valign="top">'; echo '<td>' . $value; if (in_array($key, $follower)) { $folnonfol = '| following you'; } else { $folnonfol = ''; //This user is not following you }