access!=BANNED){ $displayarray = $database->getUserArray($session->uid,1); $forumcat = $database->ForumCat(htmlspecialchars($displayarray['alliance'])); $forum_cat = $database->ForumCat; ?> CountCat($arr['id']); $ltopic = $database->LastTopic($arr['id']); foreach($ltopic as $las) { } $lpos = $database->LastPost($las['id']); foreach($lpos as $pos) { } if($database->CheckLastTopic($arr['id'])){ if($database->CheckLastPost($las['id'])){ $lpost = date('m/d/y H:i a',$pos['date']); $owner = $database->getUserArray($pos['owner'],1); }else{ $lpost = date('m/d/y H:i a',$las[date]); $owner = $database->getUserArray($las['owner'],1); } }else{ $lpost = ""; $owner = ""; } echo ''; } } ?>
Public Forum
Forum name  Threads   Last post 
'; if($database->CheckEditRes($aid)=="1"){ echo 'To topedit
To bottomdelete'; }else{ echo 'Thread without new posts'; } echo '
'.$arr['forum_name'].'
'.$arr['forum_des'].'
'.$countop.' '.$lpost.'
'.$owner['username'].' Show last post
CountCat($arr['id']); $ltopic = $database->LastTopic($arr['id']); foreach($ltopic as $las) { } $lpos = $database->LastPost($las['id']); foreach($lpos as $pos) { } if($database->CheckLastTopic($arr['id'])){ if($database->CheckLastPost($las['id'])){ $lpost = date('m/d/y H:i a',$pos['date']); $owner = $database->getUserArray($pos['owner'],1); }else{ $lpost = date('m/d/y H:i a',$las[date]); $owner = $database->getUserArray($las['owner'],1); } }else{ $lpost = ""; $owner = ""; } echo ''; } } ?>
Confederation Forum
Forum name  Threads   Last post 
'; if($database->CheckEditRes($aid)=="1"){ echo 'To topedit
To bottomdelete'; }else{ echo 'Thread without new posts'; } echo '
'.$arr['forum_name'].'
'.$arr['forum_des'].'
'.$countop.' '.$lpost.'
'.$owner['username'].' Show last post
CountCat($arr['id']); $ltopic = $database->LastTopic($arr['id']); foreach($ltopic as $las) { } $lpos = $database->LastPost($las['id']); foreach($lpos as $pos) { } if($database->CheckLastTopic($arr['id'])){ if($database->CheckLastPost($las['id'])){ $lpost = date('m/d/y H:i a',$pos['date']); $owner = $database->getUserArray($pos['owner'],1); }else{ $lpost = date('m/d/y H:i a',$las[date]); $owner = $database->getUserArray($las['owner'],1); } }else{ $lpost = ""; $owner = ""; } echo ''; } } ?>
Alliance Forum
Forum name  Threads   Last post 
'; if($database->CheckEditRes($aid)=="1"){ echo 'To topedit
To bottomdelete'; }else{ echo 'Thread without new posts'; } echo '
'.$arr['forum_name'].'
'.$arr['forum_des'].'
'.$countop.' '.$lpost.'
'.$owner['username'].' Show last post
CountCat($arr['id']); $ltopic = $database->LastTopic($arr['id']); foreach($ltopic as $las) { } $lpos = $database->LastPost($las['id']); foreach($lpos as $pos) { } if($database->CheckLastTopic($arr['id'])){ if($database->CheckLastPost($las['id'])){ $lpost = date('m/d/y H:i a',$pos['date']); $owner = $database->getUserArray($pos['owner'],1); }else{ $lpost = date('m/d/y H:i a',$las[date]); $owner = $database->getUserArray($las['owner'],1); } }else{ $lpost = ""; $owner = ""; } echo ''; } } ?>
Closed Forum
Forum name  Threads   Last post 
'; if($database->CheckEditRes($aid)=="1"){ echo 'To topedit
To bottomdelete'; }else{ echo 'Thread without new posts'; } echo '
'.$arr['forum_name'].'
'.$arr['forum_des'].'
'.$countop.' '.$lpost.'
'.$owner['username'].' Show last post

getAlliPermissions($session->uid, $aid); if($opt['opt5'] == 1){ echo 'New forum Toggle Admin mode'; } ?>