Location: PHPKode > projects > L-Forum > l-forum/admin/moderate.php
<?

include "../config.php";
include "../lib/init.inc";


if(!isset($f)){
   $head = str_replace("__TITLE__", $lang['administration'], $design['head']);
   echo $head;
   include "../themes/".$theme."/header.inc";
?>

<table border=0 width=<?echo $design['list_width']?> cellspacing=0 
cellpadding=<? echo $design['borderwidth']?>><tr>
<td bgcolor=<? echo $design['bordercolor'] ?>>
<table border=0 cellspacing=0 cellpadding=0 width=100%>
<tr>
<td class=head>&nbsp;<?echo $lang['forum_name']?></td>
<td class=head><?echo $lang['desc']?></td></tr>
<?

$count = 0;
if(!empty($forum_array)){
   while(list($x, ) = each($forum_array)){
      if($forum_array[$x]['moderation']){
         $bgcolor=($count%2==0||$count==0?$design['oddcolor']:$design['evencolor']);
         echo "<tr><td bgcolor=\"$bgcolor\"><a href=\"$PHP_SELF?f=$x\">".
            $forum_array[$x]['name']."</a></td>";
         echo "<td bgcolor=\"$bgcolor\">".$forum_array[$x]['desc']."&nbsp;</td></tr>";
         $count++;
      }
   }
}
if($count==0)
   echo "<tr><td bgcolor=\"White\">There aren't any moderated forums</td><td bgcolor=\"white\">&nbsp;</td></tr>";

?>
</table>
</td></tr></table>

<?
}else{
   auth_mod($f);
   $head = ereg_replace("__TITLE__", $lang['administration'], $design['head']);
   echo $head;
   include "../themes/".$theme."/header.inc";
?>
<table border=0 width=100%><tr><td>
<div align=center style="font-size : 14pt">Moderate messages</div>
Choose action or click message subject to edit that message;
<?$type=1;$href=0;include "../inc/list_mod.inc"?>
</td></tr></table>

<?
}
include "../themes/".$theme."/footer.inc";

echo $design['footer'];

?>
Return current item: L-Forum