diff --git a/Admin/Templates/server_info.tpl b/Admin/Templates/server_info.tpl
index 51f831a5..631fd59c 100644
--- a/Admin/Templates/server_info.tpl
+++ b/Admin/Templates/server_info.tpl
@@ -1,182 +1,182 @@
-
+$tribe1 = mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX."users WHERE tribe = 1");
+$tribe2 = mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX."users WHERE tribe = 2");
+$tribe3 = mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX."users WHERE tribe = 3");
+$tribes = Array(mysql_num_rows($tribe1),mysql_num_rows($tribe2),mysql_num_rows($tribe3));
+$users = mysql_num_rows(mysql_query("SELECT SQL_CACHE * FROM ".TB_PREFIX."users")) - 1;
+?>
-
-
| Player Information | -|
|---|---|
| Registered players | -- |
| Active players | -- |
| Players online | -- | -
| Players Banned | -- | -
| Villages settled | -- | -
| Player Information | Tribe | -Registered | -Percent | - - -
|---|---|---|
| Romans | -- | - |
| Teutons | -- | - |
| Gauls | -- | - |
| Player Information | +|
|---|---|
| Registered players | ++ |
| Active players | ++ |
| Players online | ++ | +
| Players Banned | ++ | +
| Villages settled | ++ | +
| Player Information | Tribe | +Registered | +Percent | + + +
|---|---|---|
| Romans | ++ | + |
| Teutons | ++ | + |
| Gauls | ++ | + |
| Server Information | -- | Total | -Average | - - -
|---|---|---|
Gold |
- - | - |
| Troops on the Server | -'.$troop['sumof'].' | '; - } - - echo ""; - for($i=11; $i<21; $i++) - { - echo '![]() | ';
- }
- echo '';
- for($i=11; $i<21; $i++)
- {
- $t = mysql_query("SELECT SUM(u".$i.") AS sumof FROM ".TB_PREFIX."units");
- $troop = mysql_fetch_assoc($t);
- echo ''.$troop['sumof'].' | '; - } - - echo ""; - for($i=21; $i<31; $i++) - { - echo '![]() | ';
- }
- echo '';
- for($i=21; $i<31; $i++)
- {
- $t = mysql_query("SELECT SUM(u".$i.") AS sumof FROM ".TB_PREFIX."units");
- $troop = mysql_fetch_assoc($t);
- echo ''.$troop['sumof'].' | '; - } - - echo ""; - for($i=31; $i<41; $i++) - { - echo '![]() | ';
- }
- echo '';
- for($i=31; $i<41; $i++)
- {
- $t = mysql_query("SELECT SUM(u".$i.") AS sumof FROM ".TB_PREFIX."units");
- $troop = mysql_fetch_assoc($t);
- echo ''.$troop['sumof'].' | '; - } - - echo ""; - for($i=41; $i<51; $i++) - { - echo '![]() | ';
- }
- echo '';
- for($i=41; $i<51; $i++)
- {
- $t = mysql_query("SELECT SUM(u".$i.") AS sumof FROM ".TB_PREFIX."units");
- $troop = mysql_fetch_assoc($t);
- echo ''.$troop['sumof'].' | '; - } - ?> - -
|---|
| Server Information | ++ | Total | +Average | + + +
|---|---|---|
Gold |
+ + | + |
| Troops on the Server | +'.$troop['sumof'].' | '; + } + + echo ""; + for($i=11; $i<21; $i++) + { + echo '![]() | ';
+ }
+ echo '';
+ for($i=11; $i<21; $i++)
+ {
+ $t = mysql_query("SELECT SUM(u".$i.") AS sumof FROM ".TB_PREFIX."units");
+ $troop = mysql_fetch_assoc($t);
+ echo ''.$troop['sumof'].' | '; + } + + echo ""; + for($i=21; $i<31; $i++) + { + echo '![]() | ';
+ }
+ echo '';
+ for($i=21; $i<31; $i++)
+ {
+ $t = mysql_query("SELECT SUM(u".$i.") AS sumof FROM ".TB_PREFIX."units");
+ $troop = mysql_fetch_assoc($t);
+ echo ''.$troop['sumof'].' | '; + } + + echo ""; + for($i=31; $i<41; $i++) + { + echo '![]() | ';
+ }
+ echo '';
+ for($i=31; $i<41; $i++)
+ {
+ $t = mysql_query("SELECT SUM(u".$i.") AS sumof FROM ".TB_PREFIX."units");
+ $troop = mysql_fetch_assoc($t);
+ echo ''.$troop['sumof'].' | '; + } + + echo ""; + for($i=41; $i<51; $i++) + { + echo '![]() | ';
+ }
+ echo '';
+ for($i=41; $i<51; $i++)
+ {
+ $t = mysql_query("SELECT SUM(u".$i.") AS sumof FROM ".TB_PREFIX."units");
+ $troop = mysql_fetch_assoc($t);
+ echo ''.$troop['sumof'].' | '; + } + ?> + +
|---|