saimod server tbc
This commit is contained in:
parent
27f7b1e49f
commit
83778d8ce0
@ -3,7 +3,11 @@ namespace SAI;
|
||||
class saimod_mojotrollz_server_tbc extends \SYSTEM\SAI\sai_module {
|
||||
public static function sai_mod__SAI_saimod_mojotrollz_server_tbc(){
|
||||
return \SYSTEM\PAGE\replace::replaceFile(dirname(__FILE__).'/tpl/mojotrollz_server_tbc.tpl');}
|
||||
public static function html_li_menu(){return '<li class=""><a data-toggle="tooltip" data-placement="left" title="Mojotrollz TBC Server" href="#!mojotrollz_server_tbc"><span class="glyphicon glyphicon-tree-deciduous" aria-hidden="true"></span> TBC Server</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_server_tbc/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_server_tbc/js/saimod_mojotrollz_server_tbc.js'));}
|
||||
@ -144,9 +148,9 @@ class saimod_mojotrollz_server_tbc extends \SYSTEM\SAI\sai_module {
|
||||
return \SYSTEM\LOG\JsonResult::toString(\SQL\STATS_TBC_SERVER::QA(array($filter)));}
|
||||
|
||||
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_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_server_tbc_action_log_tbc_chars_live(){
|
||||
if(!\file_exists('/home/mojotrollz/mojo/tbc/server/log/Char.log')){
|
||||
|
||||
7
mojotrollz/sai/saimod_mojotrollz_server_tbc/tpl/menu.tpl
Normal file
7
mojotrollz/sai/saimod_mojotrollz_server_tbc/tpl/menu.tpl
Normal file
@ -0,0 +1,7 @@
|
||||
<li class="nav-item">
|
||||
<a id="menu_mojotrollz_server_tbc" class="nav-link" data-toggle="tooltip" data-placement="bottom" title="Mojotrollz TBC Server" href="#!mojotrollz_server_tbc">
|
||||
<span class="d-lg-none" style="padding-left: 15px;"></span>
|
||||
<i class="fa fa-leaf" aria-hidden="true"></i>
|
||||
<span class="d-lg-none"> TBC Server</span>
|
||||
</a>
|
||||
</li>
|
||||
Loading…
x
Reference in New Issue
Block a user