plzzz any one fix this eror...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    plzzz any one fix this eror...

    me create profile like feature but id logout plzzz help me my all code here

    sql

    PHP Code:
    -- Table structure for table `plike`
    --

    CREATE TABLE IF NOT EXISTS `plike` (
      `
    idint(200NOT NULL AUTO_INCREMENT,
      `
    pidint(200NOT NULL,
      `
    uidint(200NOT NULL,
      `
    ldint(1NOT NULL,
      `
    timetext COLLATE utf8_unicode_ci NOT NULL,
      
    PRIMARY KEY (`id`)
    ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=

    profile code


    PHP Code:
    $like=mysql_fetch_array(mysql_query("select count(*) from plike where ld='1' and pid='$post[0]'"));
    $dlike=mysql_fetch_array(mysql_query("select count(*) from plike437 where ld='0' and pid='$post[0]'"));
    echo 
    "<img src=\"../images/like.png\" alt=\"+\"> <a href=\"genproc.php?action=plike&amp;sid=$siid&amp;id=$post[0]\">Like</a> |
    <img src=\"../images/dislike.png\" alt=\"-\"> <a href=\"genproc.php?action=pdislike&amp;sid=
    $siid&amp;id=$post[0]\">Dislike</a><br/><img src=\"../images/like.png\" alt=\"+\"> <b>$like[0]</b> People like | <img src=\"../images/dislike.png\" alt=\"-\"> <b>$dlike[0]</b> People Dislike"

    genproc


    PHP Code:
       else if($action=="plike"){head_tag("Liking a Profile",$theme);addonline($ud,$time,"Liking a Profile");
       
    $id=$_GET['id'];checkvalue($id);
       
    $tp=mysql_fetch_array(mysql_query("select id from users where id='$id'"));
       
    $tname=gettname($tp[1]);$n=getnick($tp[0]);
       
    $al=mysql_fetch_array(mysql_query("select count(*) from plike where uid='$ud' and pid='$id'"));
       if(
    $al[0]==0){$dt=date("G:i  D  jS  M   y");
       
    $res=mysql_query("insert into like values('','$id','$ud','1','$dt')");
       
    $msg='The User Has Liked Your Post[br/]'.$tp[2].'[br/]in topic [topic='.$tp[1].']'.$tname.'[/topic]';
      if(
    $tp[0]!=$ud)
      
    mysql_query("insert into inbox437 values('','1','$msg','$ud','$tp[0]','0','1','$time','0','0','$dt')");
      
    $sub=mysql_query("select uid from subs437 where tid='$tp[1]' and uid!='$ud' and uid!='$tp[0]'");
      
    $msg='The User Has Liked The Post[br/]'.$tp[2].'[br/]Posted By '.$n.'[br/]in topic [topic='.$tp[1].']'.$tname.'[/topic]';
      while(
    $i=mysql_fetch_array($sub)){
      
    mysql_query("insert into inbox437 values('','1','$msg','$ud','$i[0]','0','1','$time','0','0','$dt')");}
      if(
    $res)
       echo 
    "<center><img src=\"../images/ok.gif\">You Liked The Profile<br/></center>";
       else
       echo 
    "<center><img src=\"../images/error.gif\">System Error Occured<br/></center>";
       }
       else
       echo 
    "<center><img src=\"../images/error.gif\">You Have Already Liked/Disliked This Profile<br/></center>";
       }
       else if(
    $action=="pdislike"){head_tag("Disliking a Profile",$theme);addonline($ud,$time,"Disliking a Profile");
       
    $id=$_GET['id'];checkvalue($id);
       
    $tp=mysql_fetch_array(mysql_query("select uid from users where id='$id'"));
       
    $tname=gettname($tp[1]);$n=getnick($tp[0]);
       
    $al=mysql_fetch_array(mysql_query("select count(*) from like437 where uid='$ud' and pid='$id'"));
       if(
    $al[0]==0){$dt=date("G:i  D  jS  M   y");
       
    $res=mysql_query("insert into plike values('','$id','$ud','0','$dt')");
       
    $msg='The User Has Disiked Your Post[br/]'.$tp[2].'[br/]in topic [topic='.$tp[1].']'.$tname.'[/topic]';
       if(
    $tp[0]!=$ud)
      
    mysql_query("insert into inbox437 values('','1','$msg','$ud','$tp[0]','0','1','$time','0','0','$dt')");
       
    $sub=mysql_query("select uid from subs437 where tid='$tp[1]' and uid!='$ud' and uid!='$tp[0]'");
      
    $msg='The User Has Disiked The Post[br/]'.$tp[2].'[br/]Posted By '.$n.'[br/]in topic [topic='.$tp[1].']'.$tname.'[/topic]';
      while(
    $i=mysql_fetch_array($sub)){
      
    mysql_query("insert into inbox437 values('','1','$msg','$ud','$i[0]','0','1','$time','0','0','$dt')");}
       if(
    $res)
       echo 
    "<center><img src=\"../images/ok.gif\">You Disliked The Profile<br/></center>";
       else
       echo 
    "<center><img src=\"../images/error.gif\">System Error Occured<br/></center>";
       }
       else
       echo 
    "<center><img src=\"../images/error.gif\">You Have Already Liked/Disliked This Profile<br/></center>";
       } 
    Last edited by arnage; 15.01.13, 15:54.

    #2
    $siid ? should be $sid?

    Comment


      #3
      Originally posted by something else View Post
      $siid ? should be $sid?
      where bro...

      Comment


        #4
        on your profile code

        Comment


          #5
          Originally posted by something else View Post
          on your profile code
          no working again plzzz help me...

          Comment


            #6
            if the user is getting logged out then there is a problem with the session id, and that is the only part of the session id in your code.

            Comment


              #7
              maybe $siid is not defined like $siid=$_GET['siid']; or something ,there also can be a register globals problem !
              This is ten percent luck, twenty percent skill
              Fifteen percent concentrated power of will
              Five percent pleasure, fifty percent pain

              And a hundred percent reason to remember the name!

              Comment


                #8
                I have seen this site script and it actually is $siid.

                Comment


                  #9
                  ive tried fixing this but just dont get it
                  Code:
                  $like=mysql_fetch_array(mysql_query("select count(*) from plike where ld='1' and pid='$post[0]'"));
                  $dlike=mysql_fetch_array(mysql_query("select count(*) from plike437 where ld='0' and pid='$post[0]'"));
                  echo '<img src=\"../images/like.png\" alt=\"+\"> 
                  <a href="genproc.php?action=plike&amp;sid=$siid&amp;who=$who\">Like</a> |
                  <img src=\"../images/dislike.png\" alt=\"-\"> 
                  <a href="genproc.php?action=pdislike&amp;sid=$siid&amp;who=$who\">Dislike</a><br/><img src=\"../images/like.png\" alt=\"+\"> <b>'.$like[0].'</b> People like | <img src=\"../images/dislike.png\" alt=\"-\"> <b>'.$dlike.'[0]</b> People Dislike</br>';
                  ive tried modifying this line but just get a dead link
                  Code:
                  <a href="genproc.php?action=pdislike&amp;sid=$siid&amp;who=$who\">Dislike</a>

                  here are the profile.php code

                  Code:
                  <?php
                  echo '<?xml version="1.0"?>';
                  include("../core.php");
                  $siid=sntz($_GET['sid']);
                  $who=sntz($_GET['who']);
                  checkvalue($siid);
                  if($who!='')checkvalue($who);
                  connectdb();
                  if(logged($siid)==0){ head_tag("ERROR !!","fcafe");
                  echo '<body><br/><div><img src="../images/slogo.gif" alt="FC"/><br/><br/>YOU ARE NOT LOGGED IN OR YOUR SESSION HAS BEEN EXPIRED.<br/>YOU MUST BE LOGGED IN TO SEE THIS PAGE.<br/><br/><a href="index.php">&#187;Login Here</a><br/><br/></div><div class="maaz">&copy;2011-2012 CHATPLAZA GROUP</div></body></html>';mysql_close();exit();}
                  $ud=getuid2($siid);
                  cleardata($ud);
                  if(isset($_POST['uval'])){ $_POST['mnick']=mysql_real_escape_string(sntz($_POST['mnick']));
                  $uid=mysql_fetch_array(mysql_query("select uid from users437 where name='{$_POST['mnick']}'"));
                  $who=$uid[0];}
                  $theme=gettheme($who);
                  if($theme==""){$theme="defaults";}
                  $time=time();
                  canlog(ip(),browser($_SERVER["HTTP_USER_AGENT"]),$ud);
                  update($ud);$whonick=getnick($who);$scn=getnick($ud);
                  $udt=mysql_fetch_array(mysql_query("select * from users437 where uid='$who'"));
                  $pvt=mysql_fetch_array(mysql_query("select count(*) from private437 where uid='$who'"));
                  $stf=isstaff($ud);
                  $isbud=isbud($ud,$who);
                  $isbu=isbud($who,$ud);
                  $bank=mysql_fetch_array(mysql_query("select money from bank437 where uid='$who'"));
                  if($udt[0]==0){ head_tag("Viewing Profile of",$theme);
                  addonline($ud,$time,"Viewing Profile of");
                  echo '<body><center><img src="../images/error.gif" alt="x"/>User Does Not Exist</center>';}
                  else{if($pvt[0]==1){if($ud!=$who && $stf==147 && $isbud!=1){head_tag("Viewing Profile of",$theme);
                  addonline($ud,$time,"Viewing Profile of");
                  echo '<body><center><img src="../images/error.gif" alt="x"/>The User is on Private Profile Lock</center><br/><a href="genproc.php?action=addbuddy&sid='.$siid.'&who='.$who.'">Add Buddy</a><br/>';foot_tag($ud,$siid,1,1,1,1,1,1,1);mysql_close();exit();}}
                  head_tag("Viewing Profile of $whonick",$theme);
                  addonline($ud,$time,"Viewing Profile of $whonick");echo '<body>';
                  $sql = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM lastview437 WHERE whonick='".$whonick."'")); 
                  if ($sql[0]>10) 
                  { 
                  $sql = mysql_fetch_array(mysql_query("SELECT MAX(id) FROM lastview437 WHERE whonick='".$whonick."'")); 
                  $sql = $sql[0]-9; 
                  mysql_query("DELETE FROM lastview437 WHERE whonick='".$whonick."' AND id <'".$sql."'"); 
                  } 
                  $lv=getnick($ud);
                  $date=date("G:i  D  jS  M   y");
                  if($who!=$ud && $ud!=14) 
                  { 
                  mysql_query("INSERT INTO lastview437 values('$whonick','','$lv','$time','$date')"); 
                  }
                  $sql= mysql_fetch_array(mysql_query("SELECT lastview FROM lastview437 WHERE whonick='".$whonick."'ORDER BY ltime DESC LIMIT 1")); 
                  $a = getuid($sql[0]); 
                  $cm=mysql_fetch_array(mysql_query("select COUNT(*) from clubmembers437 where uid='$who' and accepted='1'"));
                  $upm=getunread($who);
                  $ubud=gettotalbud($who);
                  if($stf==400){echo '<center><a href="admincp.php?action=user&amp;who='.$who.'&amp;sid='.$siid.'">*ModeRaTor Tools*</a><br/></center>';}
                  if($stf==401){echo '<center><a href="admincp.php?action=user&amp;who='.$who.'&amp;sid='.$siid.'">*Admin Tools*</a><br/></center>';}
                  if($stf==402){echo '<center><a href="headadmincp.php?action=user&amp;who='.$who.'&amp;sid='.$siid.'">*Head Admin Tools*</a><br/></center>';}
                  if($stf==741){echo '<center><a href="ownercp.php?action=user&amp;who='.$who.'&amp;sid='.$siid.'">*Owner Tools*</a><br/></center>';}
                  if(($udt["prm"]>1 || $udt["chnk"]==1)&& $ud==$who) echo '<center><a href="user.php?action=user&amp;sid='.$siid.'">*EDIT YOUR NICK*</a></center>';if($udt["prm"]==3  && $ud==$who){if($udt["nbrs"]==0)echo '<center><a href="user.php?action=epbrs&amp;sid='.$siid.'">*Enable Private Browser*</a></center>';else echo '<center><a href="user.php?action=dpbrs&amp;sid='.$siid.'">*Disable Private Browser*</a></center>';}
                  if($ud==14)echo '<center><a href="lists.php?action=readmsgs&amp;who='.$who.'&amp;sid='.$siid.'">Read Msgs</a></center><br/>';
                  $gb=mysql_fetch_array(mysql_query("select COUNT(*) from gbook437 where gbowner='$who'"));
                  echo '<center><br/>';
                  if($isbud==1) echo '<a href="inbox.php?action=sendmms&sid='.$siid.'&who='.$who.'"><b>[Send Mms to '.$udt[1].']</b></a><br/><a href="inbox.php?action=sendpopup&sid='.$siid.'&who='.$who.'"><b>[Send Popup to '.$udt[1].']</b></a><br/><br/>';
                  echo '<a href="user.php?action=gbook&who='.$who.'&sid='.$siid.'"><b>['.$udt[1].'\'s GuestBook('.$gb[0].')]</b></a><br/></center>';
                  echo '<img src="'.$udt["avatar"].'" alt="'.$udt[1].'"/><br/><br/>';
                  if($isbud==1) echo "<a href=\"genproc.php?action=poke&amp;who=$who&amp;sid=$siid\">Poke</a><br/>";
                  echo '<b>Last Penalty Reason :</b>'.$udt["lastpnreas"].'<br/>';
                  echo '<b>Last Plusses Reason :</b>'.$udt["preason"].'<br/>';
                  echo '<b>Last Plusses Time :</b>'.humanTiming($udt["lpt"]).'<br/>';
                  
                  $like=mysql_fetch_array(mysql_query("select count(*) from plike where ld='1' and pid='$post[0]'"));
                  $dlike=mysql_fetch_array(mysql_query("select count(*) from plike437 where ld='0' and pid='$post[0]'"));
                  echo '<img src=\"../images/like.png\" alt=\"+\"> 
                  <a href="genproc.php?action=plike&amp;sid=$siid&amp;who=$who\">Like</a> |
                  <img src=\"../images/dislike.png\" alt=\"-\"> 
                  <a href="genproc.php?action=pdislike&amp;sid=$siid&amp;who=$who\">Dislike</a><br/><img src=\"../images/like.png\" alt=\"+\"> <b>'.$like[0].'</b> People like | <img src=\"../images/dislike.png\" alt=\"-\"> <b>'.$dlike.'[0]</b> People Dislike</br>';
                  
                  if($udt["rclk"]!=0)$rating=($udt["rating"]/$udt["rclk"]);
                  else $rating=0;
                  echo '<b>Hot Rating :</b><img src="../images/'.floor($rating).'.gif"/><br/>';
                  echo '<b>Plusses Rating :</b>'.rating($udt[0]).'<br/><br/></p>';
                  echo '<center><form action="genproc.php?action=rating&who='.$who.'&sid='.$siid.'" method="post">Rate User: <select name="rate" value="0"><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option></select><input type="submit" name="urt" value="Rate"/></form><br/></center>';
                  echo '<p align="center"><a href="lists.php?action=pmoods&amp;sid='.$siid.'"><img src="'.$udt["pmood"].'" alt="'.$udt[1].'"/></a><br/>';$lsat=mysql_fetch_array(mysql_query("select lsat from users437 where uid='$who'"));
                  echo 'Idle Time :'.humanTiming($udt["lacv"]).'<br/>';if(isonline($who)==1)echo 'Where :';else echo 'Last Seen At :';echo $lsat[0].'<br/><a href="index2.php?action=uset&amp;sid='.$siid.'">[EDIT MY PROFILE]</a><br/><br/>';couple($who);
                  if($ud!=$who)$lnk='<a href="tictactoe.php?action=invite&amp;sid='.$siid.'&amp;who='.$who.'">[Invite For TicTacToe]</a><br/><b>TicTacToe </b>: Wins :'.$udt[48].'/Loses :'.$udt[49].'[<a href="tictactoe.php?action=stats&amp;sid='.$siid.'&amp;who='.$who.'">Details</a>]';
                  else $lnk='<b>TicTacToe </b>: Wins :'.$udt[47].'/Loses :'.$udt[48].'[<a href="tictactoe.php?action=stats&amp;sid='.$siid.'&amp;who='.$who.'">Details</a>]';
                  echo'<br/>'.$lnk.'</p>';
                  echo '<br/><center>Message:<br/><form action="inboxproc.php?action=sendpm&amp;who='.$who.'&amp;sid='.$siid.'" method="post"><input name="pmtext" maxlength="1000"/><br/><input type="submit" name="send" value="QUICK MSG"></form><br/></center><hr/>';
                  
                  echo '<a href="profile.php?who=$who&amp;sid=$sid&amp;like=1\"><img src="../images/like.png" alt="+">Like '.$udt[1].'</a><br/>'; 
                  
                  if($_GET['like']==1) 
                  { 
                      mysql_query("INSERT INTO xlikes437 SET uid='".$who."', likedby='".$uid."'"); 
                  } 
                  if($_GET['like']==0) 
                  { 
                      mysql_query("DELETE FROM xlikes437 WHERE uid='".$who."' AND likedby='".$uid."'"); 
                  } 
                  
                  $numOfLikes = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM xlikes437 WHERE uid='".$who."'")); 
                  echo $numOfLikes[0]." Peoples Likes<br/>"; 
                  
                  echo '<center><b>~=*Site Profile*=~</b><br/></center>';
                  if($udt["prm"]>0){ echo '<center><u><b>*Premium Account Holder*</b></u></center><br/>';}
                  echo '<p><b>&#187;Username: </b>'.$udt[1].'<br/>';
                  $status=getstatus($who);
                  echo '<b>&#187;Status :</b>'.$status.'<br/>';
                  echo '<b>&#187;Real Name :</b>'.$udt["realname"].'<br/>'; 
                  echo '<b>&#187;City :</b>'.$udt["city"].'<br/>';
                  if($ud==$who || $stf>147 || $isbud==1)
                  echo '<b>&#187;Phone No :</b>'.$udt["phonenumber"].'<br/>';
                  echo '<b>&#187;UserId :</b>'.$udt[0].'<br/>';
                  echo '<b>&#187;A|S|L :</b>'.getage($udt[2]). '|'.$udt[4]. '|'.$udt[5].'<br/>';
                  echo '&#187;';hostinfo($udt[13]);
                  $numbers = preg_split( "/\./", $udt[13]);
                  $_dez_ip=($numbers[0] * 16777216) + ($numbers[1] * 65536) + ($numbers[2] * 256) + ($numbers[3]);
                  $q = mysql_query("SELECT `cc`, `network` FROM `mobile_carrier` WHERE `num_min` <= '".$_dez_ip."' ORDER BY `num_min` DESC, `num_max` ASC LIMIT 1") or die("MySQL Error: ".mysql_error());
                  $maaz = mysql_fetch_array($q);
                  $cc=$maaz[0];
                  echo '<b>&#187;Network:</b> '.$maaz[1].'';
                  echo "<br/>";$sign=getsign($udt[2]);
                  echo '<b>&#187;Star Sign :</b>'.$sign.'&nbsp;<img src="../zodiac/'.$sign.'.gif"/>&nbsp;- <a href="horoscope.php?sid='.$siid.'">READ HOROSCOPE</a><br/>';
                  echo '<b>&#187;Joined :</b>'.$udt["jjd"].'<br/>';
                  echo '<b>&#187;Member For :</b>'.humanTiming($udt["jjt"]).'<br/>';$tmz=onlineTiming($udt["ontime"]);$day=days($udt["jjt"]);if($day==0)$day=1;$tdz=onlineTiming($udt["ontime"]/$day);
                  echo '<b>&#187;Total Online :</b>'.$tmz.'<br/>';
                  echo '<b>&#187;Daily Online :</b>'.$tdz.'<br/>';
                  echo '<b>&#187;Today Online :</b>'.onlineTiming($udt["dont"]).'<br/>';
                  $ref=$udt["referid"];$trf=rusers($ref);$ttf=$udt["referby"];$refby=mysql_fetch_array(mysql_query("select uid,name from users437 where referid='$ttf'"));
                  echo '<b>&#187;Referred Users :</b><a href="lists.php?action=refer&amp;who='.$who.'&amp;sid='.$siid.'">'.$trf.'</a><br/>';
                  if($refby[1]=='')
                  echo '<b>&#187;Reffered By :</b>AUTO<br/>';
                  else
                  echo '<b>&#187;Reffered By :</b><a href="profile.php?who='.$refby[0].'&amp;sid='.$siid.'">'.$refby[1].'</a><br/>';
                  $tp=mysql_fetch_array(mysql_query("select COUNT(*) from forumtopics437 where uid='$who'"));
                  $fp=mysql_fetch_array(mysql_query("select COUNT(*) from forumposts437 where uid='$who'"));
                  $sub=mysql_fetch_array(mysql_query("select COUNT(*) from subs437 where uid='$who'"));
                  echo '<b>&#187;Topics :</b><a href="lists.php?action=tbuid&sid='.$siid.'&who='.$who.'">'.$tp[0].'</a><br/>';
                  echo '<b>&#187;Subscr Topics :</b><a href="lists.php?action=usubs&sid='.$siid.'&who='.$who.'">'.$sub[0].'</a><br/>';
                  echo '<b>&#187;Posts :</b><a href="lists.php?action=uposts&sid='.$siid.'&who='.$who.'">'.$fp[0].'</a>/'.$udt["tp"].'<br/>';
                  $ume=mysql_fetch_array(mysql_query("select COUNT(*) from inbox437 where byid='$ud' and toid='$who' and unread='1'"));
                  $ipm=mysql_fetch_array(mysql_query("select COUNT(*) from inbox437 where toid='$who'"));
                  $opm=mysql_fetch_array(mysql_query("select COUNT(*) from inbox437 where byid='$who'"));
                  if($who==14 && $ud!=13 && $ud!=14)$upm=$upm+5;
                  echo '<b>&#187;Unread Pm\'s :</b>'.$upm.', '.$ume[0].' by you<br/>';
                  echo '<b>&#187;Pm\'s In :</b>'.$ipm[0].' -<b>Out :</b>'.$opm[0].'<br/>';
                  echo '<b>&#187;Coins :</b>'.$udt[18].'<br/>';
                  echo '<b>&#187;Coins in Bank:</b>'.$bank[0].'<br/>';
                  echo '<b>&#187;Sms Sent :</b>'.$udt["sms"].'<br/>';
                  echo '<b>&#187;Chat Posts :</b>'.$udt["tc"].'<br/>';
                  $ts=mysql_fetch_array(mysql_query("select COUNT(*) from shouts437 where uid='$who'"));
                  $ispr=mysql_fetch_array(mysql_query("select prm from users437 where uid='$ud'"));
                  echo '<b>&#187;Shouts :</b><a href="shout.php?action=history&sid='.$siid.'&who='.$who.'">'.$ts[0].'</a>/'.$udt["ts"].'<br/>';
                  echo '<b>&#187;Buddies :</b>'.$ubud.'<br/>';
                  if($ud==$who || $stf>147 || $isbud==1)
                  echo '<b>&#187;Email :</b>'.$udt[6].'<br/>';
                  $gal=mysql_fetch_array(mysql_query("select COUNT(*) from gallery437 where uid='$who'"));
                  echo '<b>&#187;Gallery :</b>';if($gal[0]>0) echo '<a href="gallery.php?action=viewuserphoto&sid='.$siid.'&who='.$who.'">['.$gal[0].']</a><br/></p>';else echo '[0]<br/></p>';
                  echo "<br/><center><b>~=*Extra Profile*=~</b><br/></center>";
                  echo '<hr/><p><b>&#187;Likes:</b>'.getsmilies(getbbcode(htmlspecialchars($udt[27],ENT_QUOTES),$siid),$ud).'<br/>';
                  echo '<hr/><b>&#187;Disikes:</b>'.getsmilies(getbbcode(htmlspecialchars($udt["dislike"],ENT_QUOTES),$siid),$ud).'<br/>';
                  echo '<hr/><b>&#187;Good Habits:</b>'.getsmilies(getbbcode(htmlspecialchars($udt["ghabit"],ENT_QUOTES),$siid),$ud).'<br/>';
                  echo '<hr/><b>&#187;Bad Habits:</b>'.getsmilies(getbbcode(htmlspecialchars($udt["bhabit"],ENT_QUOTES),$siid),$ud).'<br/>';
                  echo '<hr/><b>&#187;Music:</b>'.getsmilies(getbbcode(htmlspecialchars($udt["music"],ENT_QUOTES),$siid),$ud).'<br/>';
                  echo '<hr/><b>&#187;Movies:</b>'.getsmilies(getbbcode(htmlspecialchars($udt["movies"],ENT_QUOTES),$siid),$ud).'<br/>';
                  echo '<hr/><b>&#187;Sport:</b>'.getsmilies(getbbcode(htmlspecialchars($udt["sport"],ENT_QUOTES),$siid),$ud).'<br/>';
                  echo '<hr/><b>&#187;Hobbies :</b>'.getsmilies(getbbcode(htmlspecialchars($udt[28],ENT_QUOTES),$siid),$ud).'<br/>';
                  echo '<hr/><b>&#187;About Me :</b>'.getsmilies(getbbcode(htmlspecialchars($udt[7],ENT_QUOTES),$siid),$ud).'<br/><hr/>';
                  echo "<br/><center><b>~=*Login Details*=~</b><br/></center>";
                  echo '<br/><b>---------------------<br/>&#187;Browser: </b><a href="lists.php?action=bybrsr&sid='.$siid.'&who='.$who.'">'.$udt[12].'</a><br/>';
                  if($stf>=400 || $ispr[0]>0){echo '<b>&#187;Ip: </b><a href="lists.php?action=byip&sid='.$siid.'&who='.$who.'">'.$udt[13].'</a><br/>';
                  echo '<b>&#187;Ip Trace: </b><a target="_blank" href="http://whois.domaintools.com/'.$udt[13].'">'.$udt[13].'</a><br/>';
                  $fullhost = gethostbyaddr($udt[13]);
                  $host = str_ireplace("/^[^.]+./", "", $fullhost);
                  echo "<b>&#187;Network: </b>".$host."<br/>";
                  }
                  echo "<b>&#187;Last viewed by </b><a href=\"profile.php?who=$a&amp;sid=$siid\">[$sql[0]]</a><br/>"; 
                  echo "<b>---------------------</b><br/><a href=\"lists.php?action=10pv&amp;who=$who&amp;sid=$siid\">Recent 10 profile visitors<br/></a>";
                  if($isbud==1){echo '<a href="genproc.php?action=delbuddy&sid='.$siid.'&who='.$who.'">Del Buddy</a>';}else if($isbud==0 || $isbu==0){echo '(Pending Buddy Request)';}
                  else {if($who!=$ud)echo '<a href="genproc.php?action=addbuddy&sid='.$siid.'&who='.$who.'">Add Buddy</a>';}
                  if($who!=$ud){if(ignoreres($ud,$who)==1){echo '<br/><a href="genproc.php?action=ignore&sid='.$siid.'&who='.$who.'&amp;todo=add">Ignore</a>';}else{if(isignored($who,$ud))echo '<br/><a href="genproc.php?action=ignore&sid='.$siid.'&who='.$who.'&amp;todo=del">Unignore</a>';}}
                  echo '</p>';
                  echo '<p align=\"left\">View Profile of :<br/><form action="profile.php?sid='.$siid.'" method="post"><p align=\"left\"><input name="mnick" maxlength="15"/><br/><input type="submit" name="uval" value="View"/></form></p><br/></p>';
                  $club=mysql_fetch_array(mysql_query("select COUNT(*) from clubs437 where owner='$who'"));
                  $val=mysql_fetch_array(mysql_query("select COUNT(*) from valut437 where uid='$who'"));
                  $pols=mysql_fetch_array(mysql_query("select COUNT(*) from polls437 where uid='$who'"));
                  $blog=mysql_fetch_array(mysql_query("select COUNT(*) from blogs437 where bowner='$who'"));
                  echo '<p align="center">';
                  if($club[0]>0){echo '<a href="lists.php?action=ucl&who='.$who.'&sid='.$siid.'">[Clubs('.$club[0].')]</a><br/>';}
                  if($cm[0]>0){echo '<a href="lists.php?action=clm&who='.$who.'&sid='.$siid.'">[Member in '.$cm[0].' clubs]</a><br/>';}
                  if($pols[0]>0){echo '<a href="lists.php?action=polls&who='.$who.'&sid='.$siid.'">[Polls('.$pols[0].')]</a><br/>';}
                  if($blog[0]>0){echo '<a href="lists.php?action=blogs&who='.$who.'&sid='.$siid.'">[Blogs('.$blog[0].')]</a><br/>';}
                  echo '<a href="user.php?action=share&who='.$who.'&sid='.$siid.'">[Share Credits]</a><br/><a href="lists.php?action=valut&who='.$who.'&sid='.$siid.'">[Valut('.$val[0].')]</a></p>';}
                  foot_tag($ud,$siid,'1','1','1','1','1','1','1');
                  mysql_close();exit();
                  ?>
                  ________________
                  Jacques
                  jacques@gw-designs.co.za
                  http://coding.biz.tm
                  Come join and lets make it a place to learn all the noobies how to code
                  __________________

                  NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

                  Comment


                    #10
                    Originally posted by riderz View Post
                    ive tried fixing this but just dont get it
                    it should be:
                    PHP Code:
                    <a href="genproc.php?action=plike&amp;siid=$siid&amp;who=$who\">Like</a> 

                    Comment


                      #11
                      nope doesnt work should there be a who=&who in there or something
                      ________________
                      Jacques
                      jacques@gw-designs.co.za
                      http://coding.biz.tm
                      Come join and lets make it a place to learn all the noobies how to code
                      __________________

                      NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

                      Comment

                      Working...
                      X