access!=BANNED){ $displayarray = $database->getUserArray($session->uid,1); $forumcat = $database->ForumCat(htmlspecialchars($displayarray['alliance'])); $ally = $session->alliance; $public = mysql_query("SELECT * FROM ".TB_PREFIX."forum_cat WHERE alliance = $ally AND forum_area = 1"); $public1 = mysql_num_rows($public); $cofederation = mysql_query("SELECT * FROM ".TB_PREFIX."forum_cat WHERE alliance = $ally AND forum_area = 2"); $cofederation1 = mysql_num_rows($cofederation); $alliance = mysql_query("SELECT * FROM ".TB_PREFIX."forum_cat WHERE alliance = $ally AND forum_area = 0"); $alliance1 = mysql_num_rows($alliance); $closed = mysql_query("SELECT * FROM ".TB_PREFIX."forum_cat WHERE alliance = $ally AND forum_area = 3"); $closed1 = mysql_num_rows($closed); if($public1 != 0){ ?>
| Public Forum | |||
|---|---|---|---|
| Forum name | Threads | Last post | |
';
if($database->CheckEditRes($aid)=="1"){
echo '
![]()
';
}else{
echo ' ';
}
echo ' |
'.stripslashes($arr['forum_name']).' '.stripslashes($arr['forum_des']).' |
'.$countop.' | '.$lpost.' '; if ($owner!="") { echo ''.$owner['username'].' ';
}
echo ' |
| Confederation Forum | |||
|---|---|---|---|
| Forum name | Threads | Last post | |
';
if($database->CheckEditRes($aid)=="1"){
echo '![]() ![]() ![]() ';
}else{
echo ' ';
}
echo ' |
'.stripslashes($arr['forum_name']).' '.stripslashes($arr['forum_des']).' |
'.$countop.' | '.$lpost.' '; if ($owner!="") { echo ''.$owner['username'].' ';
}
echo ' |
| Alliance Forum | |||
|---|---|---|---|
| Forum name | Threads | Last post | |
';
if($database->CheckEditRes($aid)=="1"){
echo '![]() ![]() ![]() ';
}else{
echo ' ';
}
echo ' | '.stripslashes($arr['forum_name']).' '.stripslashes($arr['forum_des']).' |
'.$countop.' | '.$lpost.' '; if ($owner!="") { echo ''.$owner['username'].' ';
}
echo ' |
| Closed Forum | |||
|---|---|---|---|
| Forum name | Threads | Last post | |
';
if($database->CheckEditRes($aid)=="1"){
echo '![]() ![]() ![]() ';
}else{
echo ' ';
}
echo ' | '.stripslashes($arr['forum_name']).' '.stripslashes($arr['forum_des']).' |
'.$countop.' | '.$lpost.' '; if ($owner!="") { echo ''.$owner['username'].' ';
}
echo ' |
getAlliPermissions($session->uid, $aid);
if($opt['opt5'] == 1){
echo '
';
}
?>