updated startpage
This commit is contained in:
parent
126e2a10b7
commit
fc1cd2cb9a
@ -1,3 +1,4 @@
|
||||
<?php
|
||||
SYSTEM\autoload::registerFolder(dirname(__FILE__),'');
|
||||
SYSTEM\autoload::registerFolder(dirname(__FILE__).'/db','');
|
||||
SYSTEM\autoload::registerFolder(dirname(__FILE__).'/realm','');
|
||||
SYSTEM\autoload::registerFolder(dirname(__FILE__).'/world','');
|
||||
@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
class wow_db {
|
||||
public static function version(){
|
||||
|
||||
}
|
||||
}
|
||||
5
mojotrollz/api/realm/realm.php
Normal file
5
mojotrollz/api/realm/realm.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
class realm {
|
||||
public static function status(){
|
||||
return shell_exec('/home/mojotrolls/mojo_zero/realm status 2>&1');}
|
||||
}
|
||||
5
mojotrollz/api/world/world.php
Normal file
5
mojotrollz/api/world/world.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
class world {
|
||||
public static function status(){
|
||||
return shell_exec('/home/mojotrolls/mojo_zero/world status 2>&1');}
|
||||
}
|
||||
@ -4,8 +4,9 @@ namespace DBD;
|
||||
|
||||
class locale_string extends \SYSTEM\DBD\system_locale_string {
|
||||
|
||||
const VALUE_CATEGORY_MAINPAGE = 100;
|
||||
const VALUE_CATEGORY_MAINPAGE = 100;
|
||||
const VALUE_CATEGORY_WOW_INFOTEXT_RACES = 120;
|
||||
const VALUE_CATEGORY_WOW_INFOTEXT_HELP = 130;
|
||||
const VALUE_CATEGORY_WOW_INFOTEXT_HELP = 130;
|
||||
const VALUE_CATEGORY_WOW_SERVERINFO = 140;
|
||||
|
||||
}
|
||||
@ -91,7 +91,8 @@ body {
|
||||
#frame_content_right {
|
||||
float: right;
|
||||
width: 30%;
|
||||
margin: 1.5%;
|
||||
margin-left: 1.5%;
|
||||
margin-right: 1.5%;
|
||||
}
|
||||
|
||||
#frame_footer{
|
||||
|
||||
@ -24,14 +24,17 @@ class default_page extends SYSTEM\PAGE\Page {
|
||||
$vars['js'] = $this->js();
|
||||
$vars['css'] = $this->css();
|
||||
$vars['default_page_welcome'] = \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/default_page_welcome.tpl'), array());
|
||||
$vars['default_page_serverinfo'] = \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/default_page_serverinfo.tpl'),
|
||||
array('database_version' => wow_db::version()));
|
||||
$vars['default_page_serverinfo'] = \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/default_page_serverinfo.tpl'), array());
|
||||
$vars['default_page_login'] = \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/default_page_login.tpl'), array());
|
||||
$vars['default_page_toolbar'] = \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/default_page_toolbar.tpl'), array());
|
||||
$vars['PICPATH'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL).'api.php?call=files&cat=default_page&id=';
|
||||
$vars['copyright'] = '';
|
||||
$vars['inprint'] = '';
|
||||
$vars = array_merge($vars, \SYSTEM\locale::getStrings(DBD\locale_string::VALUE_CATEGORY_MAINPAGE));
|
||||
$vars['realm_status'] = realm::status();
|
||||
$vars['world_status'] = world::status();
|
||||
$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));
|
||||
return \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/default_page.tpl'), $vars);
|
||||
}
|
||||
}
|
||||
@ -20,7 +20,7 @@
|
||||
<div id="frame_content">
|
||||
<div id="frame_content_left">${default_page_welcome}</div>
|
||||
<div id="frame_content_center">
|
||||
<div class="threecol_parent" style="width: 30%;margin-top: 14px;">
|
||||
<div class="threecol_parent" style="width: 30%;">
|
||||
<div class="threecol_row" style="height: 12px;">
|
||||
<div class="threecol_col" style="background: url(${PICPATH}border_tops_l.png) no-repeat;"></div>
|
||||
<div class="threecol_col" style="background: url(${PICPATH}border_tops_m.png) repeat-x;"></div>
|
||||
|
||||
@ -6,25 +6,25 @@
|
||||
size="30"
|
||||
style="margin-bottom: 15px;"
|
||||
id="bt_login_user"
|
||||
placeholder="${login_username}"
|
||||
minlength="3" data-validation-minlength-message="${login_username_too_short}"
|
||||
maxlength="16" data-validation-maxlength-message="${login_username_too_long}"
|
||||
required data-validation-required-message="${login_username_required}"/>
|
||||
placeholder="${basic_username}"
|
||||
minlength="3" data-validation-minlength-message="${basic_username_short}"
|
||||
maxlength="16" data-validation-maxlength-message="${basic_username_long}"
|
||||
required data-validation-required-message="${basic_username_miss}"/>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<input type="password"
|
||||
size="30"
|
||||
style="margin-bottom: 15px;"
|
||||
id="bt_login_password"
|
||||
placeholder="${login_password}"
|
||||
minlength="5" data-validation-minlength-message="${login_password_too_short}"
|
||||
maxlength="16" data-validation-maxlength-message="${login_password_too_long}"
|
||||
required data-validation-required-message="${login_password_required}"/>
|
||||
placeholder="${basic_password}"
|
||||
minlength="5" data-validation-minlength-message="${basic_password_short}"
|
||||
maxlength="16" data-validation-maxlength-message="${basic_password_long}"
|
||||
required data-validation-required-message="${basic_password_miss}"/>
|
||||
</div>
|
||||
<div class="help-block"></div>
|
||||
<input type="hidden" />
|
||||
<button class="btn" style="clear: left; height: 32px; font-size: 13px;"
|
||||
type="submit"
|
||||
id="login_submit">${login_login}</button>
|
||||
id="login_submit">${basic_login}</button>
|
||||
</div>
|
||||
</form>
|
||||
@ -5,9 +5,10 @@
|
||||
<p>Database Version: ${database_version}</p>
|
||||
|
||||
<H3>Server Status</H3>
|
||||
<font color="red" size="1">This Server is currently closed for the Public. Be gone.</font>
|
||||
<p>Realm Server: ${realm_status}</p>
|
||||
<p>World Server: ${world_status}</p>
|
||||
|
||||
<H3>Server Help</H3>
|
||||
<p>Download realmlist.wtf</p>
|
||||
<p>Download WoW 1.12</p>
|
||||
<p><a href="${url_realmlistwtf}" target="_blank">Download realmlist.wtf</a></p>
|
||||
<p><a href="${url_wowclient}" target="_blank">Download WoW 1.12</a></p>
|
||||
@ -18,13 +18,13 @@ class saimod_mojotrollz_server_handling extends \SYSTEM\SAI\SaiModule {
|
||||
public static function sai_mod_saimod_mojotrollz_server_handling_action_realmstop(){
|
||||
return shell_exec('/home/mojotrolls/mojo_zero/realm stop 2>&1');}
|
||||
public static function sai_mod_saimod_mojotrollz_server_handling_action_realmstatus(){
|
||||
return shell_exec('/home/mojotrolls/mojo_zero/realm status 2>&1');}
|
||||
return realm::status();}
|
||||
public static function sai_mod_saimod_mojotrollz_server_handling_action_worldstart(){
|
||||
return shell_exec('/home/mojotrolls/mojo_zero/world start 2>&1');}
|
||||
public static function sai_mod_saimod_mojotrollz_server_handling_action_worldstop(){
|
||||
return shell_exec('/home/mojotrolls/mojo_zero/world stop 2>&1');}
|
||||
public static function sai_mod_saimod_mojotrollz_server_handling_action_worldstatus(){
|
||||
return shell_exec('/home/mojotrolls/mojo_zero/world status 2>&1');}
|
||||
return world::status();}
|
||||
public static function sai_mod_saimod_mojotrollz_server_handling_action_compile(){
|
||||
return shell_exec('/home/mojotrolls/mojo_zero/compile 2>&1');}
|
||||
public static function sai_mod_saimod_mojotrollz_server_handling_action_backup_db(){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user