queryMysql($query); } else { $query = "SELECT * FROM follow WHERE follower='{$user}' AND following='{$view}'"; if (!mysql_num_rows(queryMysql($query))) { $query = "INSERT INTO follow VALUES(null,'{$user}','{$sdk}','{$view}','{$name}')"; queryMysql($query); } } } if ($num != null) { for ($j = 0; $j < $num; ++$j) { $row = mysql_fetch_row($result); if ($row[1] == $user) { continue; } $picexist = picthere($row[1]); $name = ucwords($row[3] . " " . $row[4]); echo "<li><table><tr><td>\n\t\t<img src='{$picexist}'/></td><td><a class='defbtn' href='rnmembers.php?view={$row['1']}'>{$name}</a><br/>"; $query = "SELECT * FROM rnfriends WHERE (user='******'1']}' OR friend='{$row['1']}') AND (user='******' OR friend='{$user}')"; $t1 = mysql_num_rows(queryMysql($query)); $t1row = mysql_fetch_row(queryMysql($query)); $query = "SELECT * FROM follow WHERE follower='{$user}'\n\t\tAND following='{$row['1']}'"; $t2 = mysql_num_rows(queryMysql($query)); $follow = "Follow..!!"; $adding = "Send A Friend Request"; //...........................For Showing Relationship Status B/n Friends.........................// //$drping = "Dropping..!!"; //$addng = "Following..."; if ($t1 == 0 && $t2 == 0) { echo <<<_END \t\t\t [<a class='button green' id='follow' rel='{$row['1']}' onclick="clicky('follow','{$row['1']}'); return false;" href='follow.php?view={$row['1']}&follow=follow&name={$name}'>{$follow}</a>] <a onclick="clicky('add','{$row['1']}'); return false;" href='follow.php?view={$row['1']}&add=add&name={$name}' id='add' rel='{$row['1']}' class='button black' style='font-size:16px;'> ↔ {$adding} </a>
<div id='footer' style='position:fixed;width:100%;z-index:4009;'> <div class='div1'> <fieldset class='fldheadapp'><img src='images/logo.png'/> <small class='defbtn' style='font-size:12px;'><?php echo "{$user}"; ?> </small></fieldset> </div> <?php if ($loggedin) { $imgthumb = picthere($user); $time = time(); $time = md5($time); ?> <span class='boxfloat'> <div id='floatingbar' > <ul align='center' > <li><img id='imgfloat' height='36' width='36' src='<?php echo "{$imgthumb}"; ?> ' /></li> <li><a id='iconbtn' class='defbtn' href='rnmembers.php?view=<?php echo "{$user}"; ?> '><img src='PNG-icons\Home_32x32-32.png'/></a></li> <li><a id='iconbtn' class='defbtn' href='peoples.php'>People<img src='PNG-icons\iDisk Public_32x32-32.png'/></a></li> <li><a id='iconbtn' class='defbtn' href='rnfriends.php'><img src='PNG-icons\Finder_32x32-32.png'/></a></li> <li><a id='iconbtn' class='defbtn' href='rnmessages.php?view=<?php
<button class='fieldavailableusers' onclick="user_button('{$rowheader['0']}','{$nameabc}')" rel='clic' id='{$rowheader['0']}'> \t<img src='{$userpicexists}' align='left'/><small id='fieldvalue' >{$nameabc}</small> \t</button><form method='post' rel='{$rowheader['0']}' id='paneform' action='leftpanemsg.php?view={$rowheader['0']}'><hr/><textarea class='panewriter' onkeypress="keyp(event,'{$rowheader['0']}','{$nameabc}')" name='lefttextarea' id='lolwrite' rel='{$rowheader['0']}' style='width:100%;height:55px;resize:none;display:none;' placeholder='You may press Shift+Enter For NewLine..!!'></textarea><input type='hidden' name='recipent' value='{$rowheader['0']}'></input></form> _END; } echo "</div>"; echo "<small class='xmlwords'>Offline users</small>"; echo "<div id='offlinespan'>"; $resultheader = queryMysql("select * from rnprofiles where online=0"); $numheader = mysql_num_rows($resultheader); for ($i = 0; $i < $numheader; $i++) { $rowheader = mysql_fetch_row($resultheader); if ($rowheader[0] == $user) { continue; } $userpicexists = picthere($rowheader[0]); $nameabc = ucwords($rowheader[4]); /* Tooly() defined In requirefn.php */ tooly($nameabc, $rowheader[0], "button#{$rowheader['0']}"); echo <<<_END <button class='fieldavailableusers' onclick="user_button('{$rowheader['0']}','{$nameabc}')" rel='clic' id='{$rowheader['0']}'> \t\t<img src='{$userpicexists}' align='left'/><small id='fieldvalue' >{$nameabc}</small> \t</button><form method='post' action='leftpanemsg.php?view={$rowheader['0']}' rel='{$rowheader['0']}' id='paneform'><hr/><textarea class='panewriter' onkeypress="keyp(event,'{$rowheader['0']}','{$nameabc}')" name='lefttextarea' id='lolwrite' rel='{$rowheader['0']}' style='width:100%;height:55px;resize:none;display:none; placeholder='You may press Shift+Enter For NewLine..!!'></textarea><input type='hidden' name='recipent' value='{$rowheader['0']}'></input></form> _END; } echo "</div>"; echo "</div>\n\t<div class='activitiesdiv'>\n\t\t<br/> <small class='xmlwords'>Activities</small>\n\t</div>\n\t</div></div>"; ?> <script> window.onload = function(){
} else { $usern = $row[1]; $name = $row[2]; } if ($row[5] == 0 && $row[3] == $user) { $adding = "Accept FriendShip ?"; $accept = "add&accept=1"; } elseif ($row[5] == 1 && $row[3] == $user || $row[1] == $user) { $adding = "Unfriend This User!!"; $accept = "remove"; } if ($row[5] == 0 && $row[1] == $user) { $adding = "Cancel the Request !!"; $accept = "remove"; } $picexist = picthere($usern); echo "<li><table><tr><td><img src='{$picexist}'/></td><td><a class='defbtn' href='rnmembers.php?view={$usern}'>{$name}</a><br/>"; $query = "SELECT * FROM follow WHERE follower='{$user}'\n\t\tAND following='{$usern}'"; $t2 = mysql_num_rows(queryMysql($query)); //..........For Showing Relationship Status B/n Friends.......// // Existing friend if ($t2 == 0) { // Follow the Existing friend $follow = "Follow..!!"; echo <<<_END \t\t[<a id='followf' rel='{$usern}' onclick="clickyfriend('followf','{$usern}'); return false;" class='button green' href='followfriend.php?view={$usern}&follow=follow&name={$name}'>{$follow}</a>] <a onclick="clickyfriend('addf','{$usern}'); return false;" id='addf' rel='{$usern}' href='followfriend.php?view={$usern}&add={$accept}' class='button black' style='font-size:16px;'> ↔ {$adding} </a> _END; } else { // unFollow The Friend //$adding="UnFriend This User"; $follow = "UnFollow..!!";
$rslt1 = queryMysql($qry1); $rp = mysql_fetch_row($rslt1); if ($row[1] == $user && $row[2] == $user) { echo "<a class='button grey' style='margin-bottom:20px;' href='rnmembers.php?"; echo "view={$row['1']}'><b>You....</b></a><b class='defbtn' style='font-size:14px !important;'> {$wrote}:->></b> "; } elseif ($row[1] == $user && $row[2] != $user) { // for profileinfo $qry = "SELECT * FROM snmembers WHERE user='******'2']}'"; $rslt = queryMysql($qry); $rw = mysql_fetch_row($rslt); // Pop-up users-Division.......... echo " <div class='user' style='width:350px;z-index:999;position:absolute;'> <b class='defbtn' style='font-size:14px;'> <b class='button grey'>You..</b> {$wrote}->> </b>\n\t<a class='button blue' href='rnmembers.php?view={$row['2']}'><strong>{$row['2']}</strong></a><ul>"; echo "<li> <a href='rnmembers.php?view={$row['2']}'> {$row['2']}'s Profile </a> </li>"; echo "<li> <a href='rnmessages.php?view={$row['2']}'> {$row['2']}'s Inbox </a> </li>"; echo "<li> <a href='rnfriends.php?view={$row['2']}'> {$row['2']}'s Friends </a> </li>"; $picy = picthere($row[2]); echo "<li class='sep'> <img height=' 40' width='40' style='border:ridge;' src='{$picy}'/>"; echo "Joined on:-><br/>"; echo " <small class='ud3btn'>"; echo date('M jS \'y g:sa:', $rw[10]); echo "</small>"; echo "</li>"; echo "</ul></div><br/>"; } elseif ($row[1] != $user && $row[2] == $user) { // for profileinfo................ $qry = "SELECT * FROM snmembers WHERE user='******'1']}'"; $rslt = queryMysql($qry); $rw = mysql_fetch_row($rslt); // Pop-up users-Division.......... echo "<div class='user' style='width:350px;z-index:999;position:absolute;'><a class='button blue' href='rnmembers.php?view={$row['1']}'>{$row['1']}</a><b class='defbtn' style='font-size:12px;'>{$wrote}->> <b class='button grey' >You..!</b></b>"; pseudomsg($row[1], $rw[10], $picthumb, $rp[1]);