saimod servers
This commit is contained in:
parent
83778d8ce0
commit
07d0be6628
@ -3,7 +3,11 @@ namespace SAI;
|
||||
class saimod_mojotrollz_servers extends \SYSTEM\SAI\sai_module {
|
||||
public static function sai_mod__SAI_saimod_mojotrollz_servers(){
|
||||
return \SYSTEM\PAGE\replace::replaceFile(dirname(__FILE__).'/tpl/mojotrollz_servers.tpl');}
|
||||
public static function html_li_menu(){return '<li class=""><a data-toggle="tooltip" data-placement="left" title="Mojotrollz Server" href="#!mojotrollz_servers"><span class="glyphicon glyphicon-wrench" aria-hidden="true"></span> WoW Servers</a></li>';}
|
||||
public static function menu(){
|
||||
return new \SYSTEM\SAI\sai_module_menu( 100,
|
||||
\SYSTEM\SAI\sai_module_menu::POISITION_LEFT,
|
||||
\SYSTEM\SAI\sai_module_menu::DIVIDER_NONE,
|
||||
\SYSTEM\PAGE\replace::replaceFile((new \PSAI('saimod_mojotrollz_servers/tpl/menu.tpl'))->SERVERPATH()));}
|
||||
public static function right_public(){return false;}
|
||||
public static function right_right(){return \SYSTEM\SECURITY\security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);}
|
||||
public static function js(){return array(new \PSAI('saimod_mojotrollz_servers/js/saimod_mojotrollz_servers.js'));}
|
||||
@ -36,13 +40,13 @@ class saimod_mojotrollz_servers extends \SYSTEM\SAI\sai_module {
|
||||
return \SYSTEM\LOG\JsonResult::toString(\SQL\STATS_CLASSIC_SERVER::QA(array($filter)));}
|
||||
|
||||
public static function online_classic(){
|
||||
return \SQL\ONLINE_PLAYERS::Q1(new \SQL\mangos_zero_chars())['count'];}
|
||||
return \SQL\ONLINE_PLAYERS::Q1(\SQL\mangos_zero_chars::connection())['count'];}
|
||||
public static function online_tbc(){
|
||||
return \SQL\ONLINE_PLAYERS::Q1(new \SQL\mangos_one_chars())['count'];}
|
||||
return \SQL\ONLINE_PLAYERS::Q1(\SQL\mangos_one_chars::connection())['count'];}
|
||||
public static function online_classic_test(){
|
||||
return 0;}//\SQL\ONLINE_PLAYERS::Q1(new \SQL\mangos_zero_chars_test())['count'];}
|
||||
public static function online_tbc_test(){
|
||||
return \SQL\ONLINE_PLAYERS::Q1(new \SQL\mangos_one_chars_test())['count'];}
|
||||
return \SQL\ONLINE_PLAYERS::Q1(\SQL\mangos_one_chars_test::connection())['count'];}
|
||||
public static function sai_mod__SAI_saimod_mojotrollz_servers_action_update_server(){
|
||||
\LIB\lib_git::php();
|
||||
$log = '';
|
||||
|
||||
7
mojotrollz/sai/saimod_mojotrollz_servers/tpl/menu.tpl
Normal file
7
mojotrollz/sai/saimod_mojotrollz_servers/tpl/menu.tpl
Normal file
@ -0,0 +1,7 @@
|
||||
<li class="nav-item">
|
||||
<a id="menu_mojotrollz_servers" class="nav-link" data-toggle="tooltip" data-placement="bottom" title="Mojotrollz Server" href="#!mojotrollz_servers">
|
||||
<span class="d-lg-none" style="padding-left: 15px;"></span>
|
||||
<i class="fa fa-wrench" aria-hidden="true"></i>
|
||||
<span class="d-lg-none"> WoW Servers</span>
|
||||
</a>
|
||||
</li>
|
||||
Loading…
x
Reference in New Issue
Block a user