edit alliance forums, fix notices and change allidesc.tpl

This commit is contained in:
unknown
2012-04-05 00:31:55 +03:00
parent 6ef77feda0
commit 545cfc48c9
5 changed files with 281 additions and 3 deletions
+24 -1
View File
@@ -4,6 +4,16 @@ if($session->access!=BANNED){
$displayarray = $database->getUserArray($session->uid,1);
$forumcat = $database->ForumCat(htmlspecialchars($displayarray['alliance']));
$forum_cat = $database->ForumCat;
$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){
?>
<table cellpadding="1" cellspacing="1" id="public"><thead>
<tr>
@@ -53,6 +63,9 @@ echo '</td><td class="tit"><a href="allianz.php?s=2&fid='.$arr['id'].'&pid='.$ai
}
?>
</tbody></table>
<?php
}if($cofederation1 != 0){
?>
<table cellpadding="1" cellspacing="1" id="confederation"><thead>
<tr>
<th colspan="4">Confederation Forum</th>
@@ -101,6 +114,9 @@ echo '</td><td class="tit"><a href="allianz.php?s=2&fid='.$arr['id'].'&pid='.$ai
}
?>
</tbody></table>
<?php
}if($alliance1 != 0){
?>
<table cellpadding="1" cellspacing="1" id="alliance"><thead>
<tr>
<th colspan="4">Alliance Forum</th>
@@ -149,6 +165,9 @@ echo '</td><td class="tit"><a href="allianz.php?s=2&fid='.$arr['id'].'&pid='.$ai
}
?>
</tbody></table>
<?php
}if($closed1 != 0){
?>
<table cellpadding="1" cellspacing="1" id="closed"><thead>
<tr>
<th colspan="4">Closed Forum</th>
@@ -196,7 +215,11 @@ echo '</td><td class="tit"><a href="allianz.php?s=2&fid='.$arr['id'].'&pid='.$ai
}
}
?>
</tbody></table><p>
</tbody></table>
<?php
}
?>
<p>
<?php
$opt = $database->getAlliPermissions($session->uid, $aid);
if($opt['opt5'] == 1){
+1 -1
View File
@@ -94,7 +94,7 @@ INDELING CATEGORIEEN:
$titel="Defender of the Week";
break;
case "3":
$titel="Pop Climber of the week";
$titel="Climber of the week";
break;
case "4":
$titel="Robber of the week";