Report user

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

    Report user

    how do i change this to report a user
    Code:
    else if($action=="rpost")
    {
      $pid = $_GET["pid"];
      addonline(getuid_sid($sid),"Reporting Post","");
    $pstyle = gettheme($sid);
          echo xhtmlhead("$stitle",$pstyle);
      echo "<p align=\"center\">";
      $pinfo = mysql_fetch_array(mysql_query("SELECT reported FROM ibwf_posts WHERE id='".$pid."'"));
              if($pinfo[0]=="0")
              {
              $str = mysql_query("UPDATE ibwf_posts SET reported='1' WHERE id='".$pid."' ");
              if($str)
              {
                echo "<img src=\"images/ok.gif\" alt=\"O\"/>Post reported to mods successfully";
              }else{
                echo "<img src=\"images/notok.gif\" alt=\"X\"/>Can't report post at the moment";
              }
              }else{
                echo "<img src=\"images/notok.gif\" alt=\"X\"/>This Post is already reported";
              }
              echo "<br/><br/>";
          $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'"));
        $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'"));
        echo "<a href=\"index.php?action=main\"><img src=\"images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
      echo "</p>";
      echo xhtmlfoot();
    
       exit();
        }

    #2
    add a row in users *reported*
    $pinfo = mysql_fetch_array(mysql_query("SELECT reported FROM ibwf_users WHERE id='".$pid."'"));
    if($pinfo[0]=="0")
    {
    $str = mysql_query("UPDATE ibwf_users SET reported='1' WHERE id='".$pid."' ");
    if($str)
    something like that anyway .sorry just done 13 hours shift and am done in lol
    Wapchat4u


    Topsites4u

    Comment


      #3
      wer pid put $who, and i think lava has uid as a autonumber so it may be that or i maybe wrong it may just be id.
      Want something coded email me at sales@webnwaphost.com for a prices.




      Comment

      Working...
      X