#270 world, realm and world_test status
This commit is contained in:
parent
124dbd4167
commit
70f604955f
BIN
mojotrollz/files/content/offline.png
Normal file
BIN
mojotrollz/files/content/offline.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 567 B |
BIN
mojotrollz/files/content/online.png
Normal file
BIN
mojotrollz/files/content/online.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 733 B |
@ -1,5 +1,5 @@
|
||||
<div class="row-fluid">
|
||||
<div class="col-md-6">${name}</div>
|
||||
<div class="col-md-3">${level}</div>
|
||||
<div class="col-md-3">${online}</div>
|
||||
<div class="col-md-3"><img src="./api.php?call=files&cat=content&id=${online}.png" width="18" height="18"/></div>
|
||||
</div>
|
||||
@ -1,5 +1,5 @@
|
||||
<div class="row-fluid">
|
||||
<div class="col-md-6"><a href="#!account(tbc_account);account.${username}">${username}</a></div>
|
||||
<div class="col-md-3">${count}</div>
|
||||
<div class="col-md-3">${online}</div>
|
||||
<div class="col-md-3"><img src="./api.php?call=files&cat=content&id=${online}.png" width="18" height="18"/></div>
|
||||
</div>
|
||||
@ -6,6 +6,9 @@ class default_beta implements \SYSTEM\PAGE\Page {
|
||||
return \SYSTEM\PAGE\text::tag('meta_beta');}
|
||||
public function html(){
|
||||
$vars = array();
|
||||
$vars['realm_online'] = \SAI\saimod_mojotrollz_server_handling::sai_mod__SAI_saimod_mojotrollz_server_handling_action_run_tbc_realm_status() == 1 ? 'online' : 'offline';
|
||||
$vars['world_online'] = \SAI\saimod_mojotrollz_server_handling::sai_mod__SAI_saimod_mojotrollz_server_handling_action_run_tbc_world_status() == 1 ? 'online' : 'offline';
|
||||
$vars['test_online'] = \SAI\saimod_mojotrollz_server_handling::sai_mod__SAI_saimod_mojotrollz_server_handling_action_run_tbc_world_test_status() == 1 ? 'online' : 'offline';
|
||||
if(\SYSTEM\SECURITY\security::isLoggedIn()){
|
||||
$vars['email'] = \SYSTEM\SECURITY\security::getUser()->email;
|
||||
$vars['username'] = \SYSTEM\SECURITY\security::getUser()->username;
|
||||
@ -18,7 +21,7 @@ class default_beta implements \SYSTEM\PAGE\Page {
|
||||
}
|
||||
$vars['beta_area'] = \SYSTEM\PAGE\replace::replaceFile((new PPAGE('default_beta/tpl/beta_loggedin.tpl'))->SERVERPATH(), $vars);
|
||||
} else {
|
||||
$vars['beta_area'] = \SYSTEM\PAGE\replace::replaceFile((new PPAGE('default_beta/tpl/beta_loggedout.tpl'))->SERVERPATH());}
|
||||
$vars['beta_area'] = \SYSTEM\PAGE\replace::replaceFile((new PPAGE('default_beta/tpl/beta_loggedout.tpl'))->SERVERPATH(), $vars);}
|
||||
$vars = array_merge($vars,\SYSTEM\PAGE\text::tag('mojotrollz'));
|
||||
return \SYSTEM\PAGE\replace::replaceFile((new PPAGE('default_beta/tpl/beta.tpl'))->SERVERPATH(), $vars);
|
||||
}
|
||||
|
||||
@ -12,6 +12,37 @@
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel panel-success">
|
||||
<div class="panel-heading"><h4>Server Status</h4></div>
|
||||
<div class="panel-body">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<b>Realm: </b>
|
||||
</td>
|
||||
<td>
|
||||
<img src="./api.php?call=files&cat=content&id=${realm_online}.png" width="18" height="18"/> ${realm_online}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<b>World: </b>
|
||||
</td>
|
||||
<td>
|
||||
<img src="./api.php?call=files&cat=content&id=${world_online}.png" width="18" height="18"/> ${world_online}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<b>Test: </b>
|
||||
</td>
|
||||
<td>
|
||||
<img src="./api.php?call=files&cat=content&id=${test_online}.png" width="18" height="18"/> ${test_online}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><h4>WoW Account</h4></div>
|
||||
<div class="panel-body">
|
||||
|
||||
@ -13,6 +13,37 @@
|
||||
<button id="btn_beta" class="btn btn-success btn-lg" style="width: 100%;">Join the Mojotribe</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel panel-success">
|
||||
<div class="panel-heading"><h4>Server Status</h4></div>
|
||||
<div class="panel-body">
|
||||
<table style="width: 100%;">
|
||||
<tr>
|
||||
<td>
|
||||
<b>Realm Server: </b>
|
||||
</td>
|
||||
<td style="text-align: right;">
|
||||
${realm_online} <img src="./api.php?call=files&cat=content&id=${realm_online}.png" width="18" height="18"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<b>World Server: </b>
|
||||
</td>
|
||||
<td style="text-align: right;">
|
||||
${world_online} <img src="./api.php?call=files&cat=content&id=${world_online}.png" width="18" height="18"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<b>Test Server: </b>
|
||||
</td>
|
||||
<td style="text-align: right;">
|
||||
${test_online} <img src="./api.php?call=files&cat=content&id=${test_online}.png" width="18" height="18"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><h4>Login</h4></div>
|
||||
<div class="panel-body">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user