

      

Forums and Moderators 
--> modify 
---> choose a board 
    

  forum.php   admin .

  ( 121 ):

 makeyesnocode("Count posts made in this forum towards user post counts?","countposts",1);
 :

// Password-Hack-by Afterburner-Start
maketableheader("Forum Password Feature");
makeinputcode("Forum Password<br>(Max length of 50 characters)<br>The board will work normally if this field is empty","password"); 
// Password-Hack-by Afterburner-End
   ( 130):

  $DB_site->query("INSERT INTO forum
                      (forumid,styleid,title,description,active,displayorder,parentid,
                       parentlist,allowposting,cancontainthreads,daysprune,newpostemail,newthreademail,
                       moderatenew,allowhtml,allowbbcode,allowimages,allowsmilies,allowicons,
                       styleoverride,allowratings,countposts,moderateattach)
                   VALUES
                      (NULL,'$styleset','".addslashes($title)."','".addslashes($description)."','$isactive','$displayorder','$parentid',
                       '','$allowposting','$cancontainthreads','$daysprune','".addslashes($newpostemail)."','".addslashes($newthreademail)."',
                       '$moderatenew','$aallowhtmlcode','$aallowbbcode','$aallowimgcode','$aallowsmilies','$aallowicons',
                       '$styleoverride','$allowratings','$countposts','$moderateattach')");
 :

$DB_site->query("INSERT INTO forum
                      (forumid,styleid,title,description,active,displayorder,parentid,
                       parentlist,allowposting,cancontainthreads,daysprune,newpostemail,newthreademail,
                       moderatenew,allowhtml,allowbbcode,allowimages,allowsmilies,allowicons,
                       styleoverride,allowratings,countposts,moderateattach,password)
                   VALUES
                      (NULL,'$styleset','".addslashes($title)."','".addslashes($description)."','$isactive','$displayorder','$parentid',
                       '','$allowposting','$cancontainthreads','$daysprune','".addslashes($newpostemail)."','".addslashes($newthreademail)."',
                       '$moderatenew','$aallowhtmlcode','$aallowbbcode','$aallowimgcode','$aallowsmilies','$aallowicons',
                       '$styleoverride','$allowratings','$countposts','$moderateattach','$password')");

:

$forumid=$DB_site->insert_id();
  $DB_site->query("UPDATE forum SET parentlist='".addslashes("$forumid,$parentlist")."' WHERE forumid=$forumid");

 :

// Password-Hack-by Afterburner-Start
$eintrag="userspezial$forumid";
$DB_site->query("ALTER TABLE userfield ADD $eintrag VARCHAR (20) not null");
// Password-Hack-by Afterburner-End

 ( 222)

  makeyesnocode("Count posts made in this forum towards user post counts?","countposts",$forum[countposts]);

 :

// Password-Hack-by Afterburner-Start
maketableheader("Forum Password Feature");
makeinputcode("Forum Password<br>(Max length of 50 characters)<br><b>The board will work normally if this field is empty.</b><br>Insert <font color=\"red\"><b>0</b></font> if you want to delete the password-access-table for this board in your database.<br><b>(If you want to change the password and nobody of the subscriber shall be able to access the board with the stored information in the database it is recommend to do this)</b>","password",$forum[password]); 
// Password-Hack-by Afterburner-End


 ( 247):

  $DB_site->query("UPDATE forum
                   SET
                     styleid='$styleset', title='".addslashes($title)."', description='".addslashes($description)."',
                     active='$isactive', displayorder='$displayorder', parentid='$parentid', parentlist=$parentlist,
                     allowposting='$allowposting', cancontainthreads='$cancontainthreads', daysprune='$daysprune',
                     newpostemail='".addslashes($newpostemail)."', newthreademail='".addslashes($newthreademail)."',
                     moderatenew='$moderatenew', allowhtml='$aallowhtmlcode', allowbbcode='$aallowbbcode',
                     allowimages='$aallowimgcode', allowsmilies='$aallowsmilies', allowicons='$aallowicons',
                     styleoverride='$styleoverride', allowratings='$allowratings', countposts='$countposts',
                     moderateattach='$moderateattach'
                   WHERE forumid='$forumid'");

 :

$DB_site->query("UPDATE forum
                   SET
                     styleid='$styleset', title='".addslashes($title)."', description='".addslashes($description)."',
                     active='$isactive', displayorder='$displayorder', parentid='$parentid', parentlist=$parentlist,
                     allowposting='$allowposting', cancontainthreads='$cancontainthreads', daysprune='$daysprune',
                     newpostemail='".addslashes($newpostemail)."', newthreademail='".addslashes($newthreademail)."',
                     moderatenew='$moderatenew', allowhtml='$aallowhtmlcode', allowbbcode='$aallowbbcode',
                     allowimages='$aallowimgcode', allowsmilies='$aallowsmilies', allowicons='$aallowicons',
                     styleoverride='$styleoverride', allowratings='$allowratings', countposts='$countposts',
                     moderateattach='$moderateattach',password='$password'
                   WHERE forumid='$forumid'");
// Password-Hack-by Afterburner-Start
if ($password== "0") {
$eintrag="userspezial$forumid";
$DB_site->query("ALTER TABLE userfield DROP $eintrag");
$DB_site->query("UPDATE forum SET password='' WHERE forumid='$forumid'");
}

if ($password == "0"){
		echo "done.";
	} else {
	if ($password == "") {
			echo "done.";
		} else {
			$check ="0";
			$eintrag="userspezial$forumid";
			if (MYSQL_QUERY("SELECT $eintrag FROM userfield")) {
			$check ="1";
			}
			if ($check != "1"){
				$DB_site->query("ALTER TABLE userfield ADD $eintrag VARCHAR (20) not null");
			
			}
			
		}
}
// Password-Hack-by Afterburner-End


  forumdisplay.php


 ( 92):

if ( isset($moderatorslist) ) {
  eval("\$moderatedby = \"".gettemplate('forumdisplay_moderatedby')."\";");
} else {
  $moderatedby='';
}

 :

// Password-Hack-by Afterburner-Start
if ($action == "dopassword") { 
if (md5($password) == md5($foruminfo['password'])) {
$eintrag="userspezial$forumid";	
$DB_site->query("UPDATE userfield SET $eintrag=1 WHERE userid='$bbuserinfo[userid]'");
} else { 
eval("standarderror(\"".gettemplate('fehler_password_board')."\");"); 
exit; 
} 
} else { 
if ($foruminfo['password']) {
$eintrag="userspezial$forumid";	
if ($bbuserinfo[$eintrag] != 1) { 
eval("standarderror(\"".gettemplate('fehler_password_board')."\");"); 
exit; 
} 
} 
}
// Password-Hack-by Afterburner-End




 showthread.php 

 ( 205):

if (!$thread['visible']) {
  $idname="thread";
  eval("standarderror(\"".gettemplate("error_invalidid")."\");");
  exit;
}

$forum=getforuminfo($thread['forumid']);

 :

// Password-Hack-by Afterburner-Start 
if ($forum['password']) {
$boardid="userspezial$thread[forumid]";
if ($bbuserinfo[$boardid] != 1) { 
eval("standarderror(\"".gettemplate('fehler_password_showtopic')."\");"); 
exit; 
} 
}
// Password-Hack-by Afterburner-End





 search.php.

 ( 915):

  if ($countmatches==0) {

    eval("standarderror(\"".gettemplate("error_searchnoresults")."\");");
    exit;

  } else {

    $counter=0;
    $postdone[]=0;
    while ($searchresult=$DB_site->fetch_array($searchresults) and $counter++<$perpage) {
      if ($postdone[$searchresult[postid]]) {
        $counter--;
        continue;
      }

 :

// Afterburner
$check=0;
$foruminfo = $DB_site->query_first("SELECT forumid,password FROM forum WHERE forumid='$searchresult[forumid]'");
if ($foruminfo[password]!="") {
$searchresult="";
$check=1;
}
// Afterburner


 ( 1045):

eval ("\$searchresultbits .= \"".gettemplate("$searchtemplatebit")."\";");


replace it with:

	  if ($check!=1) {
      eval ("\$searchresultbits .= \"".gettemplate("$searchtemplatebit")."\";");
	  }


 newthread.php

:

// ############################### start new thread ###############################
if ($action=="newthread") {


 :

// Password-Hack-by Afterburner-Start 
if ($foruminfo['password']) {
$thread[forumid]=$foruminfo[forumid];
$boardid="userspezial$thread[forumid]";
if ($bbuserinfo[$boardid] != 1) { 
eval("standarderror(\"".gettemplate('fehler_password_showtopic')."\");"); 
exit; 
} 
}
// Password-Hack-by Afterburner-End



 member.php

:

$lastposturl="showthread.php?s=$session[sessionhash]&postid=$getlastpost[postid]#post$getlastpost[postid]";

 :

$foruminfo = $DB_site->query_first("SELECT forumid,password FROM forum WHERE forumid='$getlastpost[forumid]'");
if ($foruminfo[password]!="") {
$lastposturl="";
$lastposttitle="$bbtitle";
} else {
        $lastposturl="showthread.php?s=$session[sessionhash]&postid=$getlastpost[postid]#post$getlastpost[postid]";
}



