"") { } else{ credit_system($row_profile["userid"],$row_profile["referralid"],$row_profile["adsenseid"],$row_profile["channelcode"]); $showadsense=1; } //================bookmark channel=================================== if(isset($_POST['hid_addfavposted']) && $_POST['hid_addfavposted']=="1") { if($_SESSION['username']) { $prid = $_POST['pid']; $table1 ="bookmarks"; $fields= ""; if(isset($_SESSION['userid'])) { $fields="userid,"; $val[]=$_SESSION['userid']; } $fields .= "profileid, ondate"; $val[] = $prid; $val[] = date('Y-m-d h:m:s'); $field1 = "userid,profileid"; $cond1 = "userid=".$_SESSION['userid']; $cond1 .= " and profileid =".$prid; $res_bookmarks =getField($table1,$cond1,$field1); if($_SESSION['userid']==$prid) { $msg ="You can not add yourself!!"; } else { if($res_bookmarks && mysql_num_rows($res_bookmarks)>0) { $msg ="This user already exists in your favorite channels!!"; } else { $insertid = insert_into_db($table1, $fields, $val); if($insertid>0) { $msg ="This Profile has been submitted to your favorite successfully."; } else { $msg ="Due to some error your request is not completed. Please try again!!"; } } } } else { ?> 0) { $msg ="Your comment has been posted successfully."; } else { $msg ="Due to some error your comment is not posted. Please try again!!"; } } */ //====================POST comment============================ //==========================deny================================ $deny_forever = '1'; if(isset($_POST['hid_addfrndposted']) && $_POST['hid_addfrndposted']=="1") { global $def_frnd_msg; $cond = "fromid=".$_SESSION['userid']; $cond .= " and toid =".$pid; $res_chk_deny = getField("friendrequests", $cond, "deny_forever" ); if($_SESSION['userid']==$pid) { $msg ="You can not add yourself!!"; } else { if($res_chk_deny && mysql_num_rows($res_chk_deny)) { $row_chk_deny = mysql_fetch_array($res_chk_deny); $deny =$row_chk_deny['deny_forever']; if($deny=='1') { $msg ="This user has blocked your request!!"; } else { $deny_forever ='0'; } } //----START-- change by kui @ 15 AUG $is_friend=0; if(check_addressbook($_SESSION['userid'],$pid)) { $msg ="Following users are already exists in your addressbook."; $is_friend=1; } //----END-- change by kui @ 15 AUG //if( $deny_forever=='0' || !$res_chk_deny ) if( ($deny_forever=='0' || !$res_chk_deny ) && !$is_friend) //change by kui @ 15 AUG { $last_msgid = get_last_msgid(); $fields1= "messageid, message"; $val1 =array(); $last_msgid=$last_msgid+1; $val1[0]= $last_msgid; $val1[1]= $def_frnd_msg; $msg_insert = insert_into_db("invite_messages" ,$fields1, $val1); $tab_frnd ="friendrequests"; $fields ="fromid, toid, approved, pending, messageid, ondate"; $val =array(); $val[0] = $_SESSION['userid']; $val[1] = $pid; $val[2] ='0'; $val[3] ='1'; $val[4] = $last_msgid; $val[5] = date('Y-m-d h:m:s'); $addfrndid =insert_into_db($tab_frnd, $fields,$val); if($addfrndid>0) { $msg ="Add to friend request has been sent to the member."; } else { $msg ="Due to some error your request is not completed. Please try again!!"; } } } } //==========================deny================================ //=======================================get user data================================================= $name = $row_profile['username']; $aboutme = $row_profile['aboutme']; $message = $row_profile['message']; $photoexts = $row_profile['photoext']; $sess_file_name = $row_profile['sess_file_name']; $is_online_user = is_online($sess_file_name); $disp_photo2 =""; if($row_profile['photoext']<>"") { $photoexts ="$siteurl/photoes/".$pid.".".$photoexts; $disp_photo2 = ""; } $aboutme = wordwrap($aboutme, 30,'
'); $pagetitle = $name." - ".$pagetitle; if($adsenseid=="") { $showadsense=0; } ?> <?php echo $pagetitle; ?>
 
". $__syslang["OnlineNow"] ."" : "");?>
 
"; //echo "No Photo Uploaded Yet."; echo $disp_photo; } ?>
:
:
:

0) { $row_by = mysql_fetch_array($res_by); ?>
:

-

:  
" />
"; ?>