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(); }
Comment