Code:////////////////////////FORUM OPTIONS///////////////////////// if($topic==1) { addonline(getuid_sid($sid),"Forum Options",""); $nick=getnick_sid($sid); echo head_tag($nick."@Forum Options",1,$nick); $title="<b>Forum Options</b>"; $main="<p align=".align().">\n"; addonline(getuid_sid($sid),"Topic Options",""); $tinfo=mysql_fetch_array(mysql_query("SELECT name, fid, uid, text, pinned, closed FROM forumtopics WHERE id='".$thread."'")); $trid=$tinfo[2]; $ttext=htmlspecialchars($tinfo[3]); $tname=htmlspecialchars($tinfo[0]); $main.="Topic ID: <b>$thread</b><br/>\n"; $trnick=getnick_uid($trid); $main.="<ahref=\"../inbox/send.php?who=$trid&sid=$sid\">»Send Inbox To $trnick</a><br/> <ahref=\"../profile.php?who=$trid&sid=$sid\">»View $trnick's Profile</a>\n"; //echo "<ahref=\"index.php?action=post&sid=$sid&thread=$thread&qut=$pid\">»Quote</a><br/>"; /* $plid=mysql_fetch_array(mysql_query("SELECT poll FROM forumtopics WHERE id='".$thread."'")); if($plid[0]==0){ if(isowner(getuid_sid($sid))){ $main.="<ahref=\"index.php?action=pltpc&sid=$sid&thread=$thread\">»Add Poll</a><br/>"; } }else{ if(isowner(getuid_sid($sid))){ $main.="<ahref=\"genproc.php?action=dltpl&sid=$sid&thread=$thread\">»Delete Poll</a><br/>"; } } */ //$main.="<ahref=\"genproc.php?action=rtpc&sid=$sid&thread=$thread\">»Report</a>"; $main.="</p>\n"; if(mod_tools("fid",$tinfo[1],"topic_".$thread,getuid_sid($sid),1)){ $main.="<div class=".align()."> <form action=\"rename.php?thread=$thread&sid=$sid\" method=\"post\"> <b>Title:</b><br/> <input name=\"tname\" value=\"$tname\" maxlength=\"25\"/><br/> <input type=\"submit\" value=\"Rename\"> </form> </div> <div class=".align()."> <form action=\"./edit.php?topic=1&sid=$sid&thread=$thread\" method=\"post\"> <b>Text:</b><br/> <input name=\"ttext\" value=\"$ttext\" maxlength=\"500\"/><br/> <input type=\"submit\" value=\"Edit\"> </form> </div> <p align=".align()."> <ahref=\"./delete.php?topic=1&thread=$thread&sid=$sid\">»Delete</a><br/>\n"; } if(mod_tools("fid",$tinfo[1],"topic_".$thread,getuid_sid($sid),0)){ if($tinfo[5]=='1'){$ctxt="Open";$cact="0";} else{$ctxt="Close";$cact="1";} $main.="<ahref=\"./close.php?sid=$sid&thread=$thread&tdo=$cact\">»$ctxt</a><br/>\n"; if($tinfo[4]=='1'){$ptxt="Unpin";$pact="0";} else{$ptxt="Pin";$pact="1";} $main.="<ahref=\"./pin.php?sid=$sid&thread=$thread&tdo=$pact\">»$ptxt</a> </p>\n"; } //echo "<ahref=\"index.php?action=post&sid=$sid&thread=$thread&qut=$pid\">»Quote</a><br/>"; $forums=mysql_query("SELECT id, name FROM forums WHERE clubid='0'"); if(mod_tools("fid",$tinfo[1],"topic_".$thread,getuid_sid($sid),0)){ $main.="<div class=".align()."> <form action=\"move.php?thread=$thread&sid=$sid\" method=\"post\"> <b>Move to:</b><br/> <select name=\"mtf\">\n"; while($forum=mysql_fetch_array($forums)){ $main.="<option value=\"$forum[0]\">$forum[1]</option>\n"; } $main.="</select><br/> <input type=\"submit\" value=\"Move\"/> </form> </div>\n"; } $main.="<p align=".align().">\n$fivekey<a $key5href=\"viewtopic.php?thread=$thread&sid=$sid\">Back to topic</a></p>\n"; $L1="$sixkey<a $key6href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>"; $L2="$sevenkey<a $key7href=\"../buds/buds.php?sid=$sid\">BuddyList</a>"; $L3="$eightkey<a $key8href=\"../chat/public.php?sid=$sid\">Chat</a>"; $L4="$ninekey<a $key9href=\"./forums.php?sid=$sid\">Forums</a>"; $L5="$zerokey<a $key0href=\"../main.php?sid=$sid\"><imgsrc=\"../images/home.gif\"alt=\"\"/>Home</a>"; echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main); echo foot_tag(); } elseif($post==1) { $pinfo= mysql_fetch_array(mysql_query("SELECT uid, thread, text FROM forumposts WHERE id='".$pid."'")); $tinfo=mysql_fetch_array(mysql_query("SELECT fid FROM forumtopics WHERE id='".$pinfo[1]."'")); $trid=$pinfo[0]; $tid=$pinfo[1]; $ptext=htmlspecialchars($pinfo[2]); addonline(getuid_sid($sid),"Forum Options",""); echo head_tag(getnick_sid($sid)."@Forum Options",1,getnick_sid($sid)); $title="<b>Post Options</b>"; $main="<p align=".align().">\n"; $trnick=getnick_uid($trid); $main.="<ahref=\"../inbox/send.php?who=$trid&sid=$sid\">»Send PM to $trnick</a><br/> <ahref=\"../profile.php?who=$trid&sid=$sid\">»View $trnick's Profile</a>\n"; //echo "<ahref=\"index.php?action=post&sid=$sid&tid=$tid&qut=$pid\">»Quote</a><br/>"; //$main.="<ahref=\"genproc.php?action=rpost&sid=$sid&pid=$pid\">»Report</a>"; $main.="</p>\n"; if(mod_tools("fid",$tinfo[0],"post_".$pinfo[1],getuid_sid($sid),1)){ $main.="<div class=".align()."> <form action=\"./edit.php?post=1&pid=$pid&sid=$sid\" method=\"post\"> <b>Text:</b><br/> <input name=\"ptext\" value=\"$ptext\" maxlength=\"500\"/> <br/><input type=\"submit\" value=\"Edit\"> </form> </div> <p align=".align().">\n"; $main.="<ahref=\"./delete.php?post=1&pid=$pid&sid=$sid\">»Delete</a><br/><br/>\n"; } $main.="$fivekey<a $key5href=\"viewtopic.php?page=$page&thread=$tid&sid=$sid\">Back to topic</a>\n</p>\n"; $L1="$sixkey<a $key6href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>"; $L2="$sevenkey<a $key7href=\"../buds/buds.php?sid=$sid\">BuddyList</a>"; $L3="$eightkey<a $key8href=\"../chat/public.php?sid=$sid\">Chat</a>"; $L4="$ninekey<a $key9href=\"./forums.php?sid=$sid\">Forums</a>"; $L5="$zerokey<a $key0href=\"../main.php?sid=$sid\"><imgsrc=\"../images/home.gif\"alt=\"\"/>Home</a>"; echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main); echo foot_tag(); }


LinkBack URL
About LinkBacks
Reply With Quote
thankyou very much its fixed all my problems yay happy now admin team you can delete this post

Bookmarks