News
Database
Logout
diff --git a/mojotrollz/page/user_start/char_stats_realm.tpl b/mojotrollz/page/user_start/char_stats_realm.tpl
index a25e80d..6e2fd6b 100644
--- a/mojotrollz/page/user_start/char_stats_realm.tpl
+++ b/mojotrollz/page/user_start/char_stats_realm.tpl
@@ -1 +1,14 @@
-${race}
+
+
+
+ |
+
+
+ |
+
+ ${race}
+ |
+
+ ${count}
+ |
+
\ No newline at end of file
diff --git a/mojotrollz/page/user_start/class_stats_realm.tpl b/mojotrollz/page/user_start/class_stats_realm.tpl
new file mode 100644
index 0000000..817f88d
--- /dev/null
+++ b/mojotrollz/page/user_start/class_stats_realm.tpl
@@ -0,0 +1,11 @@
+
+
+
+ |
+
+ ${class}
+ |
+
+ ${count}
+ |
+
\ No newline at end of file
diff --git a/mojotrollz/page/user_start/user_start.php b/mojotrollz/page/user_start/user_start.php
index 1c5fb7f..1d89c7a 100644
--- a/mojotrollz/page/user_start/user_start.php
+++ b/mojotrollz/page/user_start/user_start.php
@@ -1,22 +1,121 @@
switch_order($race['race']);
+ $vars['race'] = $this->switch_race($order);
+ $vars['count'] = $race['count'];
+ $result .= SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'user_start/char_stats_realm.tpl'), $vars);
+ }
+
return $result;
}
+ public function get_class_statistics(){
+ $result = '';
+ $chars = \DBD\CLASS_STATS::QA();
+ foreach ($chars as $class){
+ $vars = array();
+ $vars['class'] = $this->switch_class($class['class']);
+ $vars['count'] = $class['count'];
+ $result .= SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'user_start/class_stats_realm.tpl'), $vars);
+ }
+
+
+ return $result;
+ }
+
+ public function get_faction_balance(){
+
+ }
+
public function html(){
$vars = array();
$vars['char_stats'] = $this->get_char_statistics();
+ $vars['class_stats'] = $this->get_class_statistics();
+ $vars['guildcount'] = \DBD\COUNT_GUILDS::Q1();
$vars['realm_status'] = realm::status();
$vars['world_status'] = world::status();
$vars['player_online'] = database::player_online();
$vars['PICPATH'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL).'api.php?call=files&cat=default_page&id=';
+ $vars['PIC'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL).'api.php?call=files&cat=wowicons&id=';
+ $vars['PI'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL).'api.php?call=files&cat=class&id=';
$vars = array_merge($vars, \SYSTEM\locale::getStrings(DBD\locale_string::VALUE_CATEGORY_MAINPAGE),
\SYSTEM\locale::getStrings(DBD\locale_string::VALUE_CATEGORY_WOW_SERVERINFO),
\SYSTEM\locale::getStrings(DBD\locale_string::VALUE_CATEGORY_BASIC));
diff --git a/mojotrollz/page/user_start/user_start.tpl b/mojotrollz/page/user_start/user_start.tpl
index 2b29679..c3b282e 100644
--- a/mojotrollz/page/user_start/user_start.tpl
+++ b/mojotrollz/page/user_start/user_start.tpl
@@ -1,10 +1,12 @@
-
+
+
Server Info
Realmlist: ${realmlist}
Server Version: ${server_version}
Client Version: ${client_version}
-
+
Crossfaction Raids: enabled
+
Realm Server: ${realm_status}
World Server: ${world_status}
Players Online: ${player_online}
@@ -13,4 +15,22 @@
Download realmlist.wtf
Download WoW 1.12
-
${char_stats}
+
+
Guilds: ${guildcount}
+
+
+
+
+
+
+
\ No newline at end of file