updated startpage

This commit is contained in:
Ulf Gebhardt 2014-06-20 01:51:33 +02:00
parent 126e2a10b7
commit fc1cd2cb9a
11 changed files with 38 additions and 28 deletions

View File

@ -1,3 +1,4 @@
<?php <?php
SYSTEM\autoload::registerFolder(dirname(__FILE__),''); SYSTEM\autoload::registerFolder(dirname(__FILE__),'');
SYSTEM\autoload::registerFolder(dirname(__FILE__).'/db',''); SYSTEM\autoload::registerFolder(dirname(__FILE__).'/realm','');
SYSTEM\autoload::registerFolder(dirname(__FILE__).'/world','');

View File

@ -1,7 +0,0 @@
<?php
class wow_db {
public static function version(){
}
}

View File

@ -0,0 +1,5 @@
<?php
class realm {
public static function status(){
return shell_exec('/home/mojotrolls/mojo_zero/realm status 2>&1');}
}

View File

@ -0,0 +1,5 @@
<?php
class world {
public static function status(){
return shell_exec('/home/mojotrolls/mojo_zero/world status 2>&1');}
}

View File

@ -4,8 +4,9 @@ namespace DBD;
class locale_string extends \SYSTEM\DBD\system_locale_string { 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_RACES = 120;
const VALUE_CATEGORY_WOW_INFOTEXT_HELP = 130; const VALUE_CATEGORY_WOW_INFOTEXT_HELP = 130;
const VALUE_CATEGORY_WOW_SERVERINFO = 140;
} }

View File

@ -91,7 +91,8 @@ body {
#frame_content_right { #frame_content_right {
float: right; float: right;
width: 30%; width: 30%;
margin: 1.5%; margin-left: 1.5%;
margin-right: 1.5%;
} }
#frame_footer{ #frame_footer{

View File

@ -24,14 +24,17 @@ class default_page extends SYSTEM\PAGE\Page {
$vars['js'] = $this->js(); $vars['js'] = $this->js();
$vars['css'] = $this->css(); $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_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'), $vars['default_page_serverinfo'] = \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/default_page_serverinfo.tpl'), array());
array('database_version' => wow_db::version()));
$vars['default_page_login'] = \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/default_page_login.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['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['PICPATH'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL).'api.php?call=files&cat=default_page&id=';
$vars['copyright'] = ''; $vars['copyright'] = '';
$vars['inprint'] = ''; $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); return \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/default_page.tpl'), $vars);
} }
} }

View File

@ -20,7 +20,7 @@
<div id="frame_content"> <div id="frame_content">
<div id="frame_content_left">${default_page_welcome}</div> <div id="frame_content_left">${default_page_welcome}</div>
<div id="frame_content_center"> <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_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_l.png) no-repeat;"></div>
<div class="threecol_col" style="background: url(${PICPATH}border_tops_m.png) repeat-x;"></div> <div class="threecol_col" style="background: url(${PICPATH}border_tops_m.png) repeat-x;"></div>

View File

@ -6,25 +6,25 @@
size="30" size="30"
style="margin-bottom: 15px;" style="margin-bottom: 15px;"
id="bt_login_user" id="bt_login_user"
placeholder="${login_username}" placeholder="${basic_username}"
minlength="3" data-validation-minlength-message="${login_username_too_short}" minlength="3" data-validation-minlength-message="${basic_username_short}"
maxlength="16" data-validation-maxlength-message="${login_username_too_long}" maxlength="16" data-validation-maxlength-message="${basic_username_long}"
required data-validation-required-message="${login_username_required}"/> required data-validation-required-message="${basic_username_miss}"/>
</div> </div>
<div class="controls"> <div class="controls">
<input type="password" <input type="password"
size="30" size="30"
style="margin-bottom: 15px;" style="margin-bottom: 15px;"
id="bt_login_password" id="bt_login_password"
placeholder="${login_password}" placeholder="${basic_password}"
minlength="5" data-validation-minlength-message="${login_password_too_short}" minlength="5" data-validation-minlength-message="${basic_password_short}"
maxlength="16" data-validation-maxlength-message="${login_password_too_long}" maxlength="16" data-validation-maxlength-message="${basic_password_long}"
required data-validation-required-message="${login_password_required}"/> required data-validation-required-message="${basic_password_miss}"/>
</div> </div>
<div class="help-block"></div> <div class="help-block"></div>
<input type="hidden" /> <input type="hidden" />
<button class="btn" style="clear: left; height: 32px; font-size: 13px;" <button class="btn" style="clear: left; height: 32px; font-size: 13px;"
type="submit" type="submit"
id="login_submit">${login_login}</button> id="login_submit">${basic_login}</button>
</div> </div>
</form> </form>

View File

@ -5,9 +5,10 @@
<p>Database Version: ${database_version}</p> <p>Database Version: ${database_version}</p>
<H3>Server Status</H3> <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>Realm Server: ${realm_status}</p>
<p>World Server: ${world_status}</p> <p>World Server: ${world_status}</p>
<H3>Server Help</H3> <H3>Server Help</H3>
<p>Download realmlist.wtf</p> <p><a href="${url_realmlistwtf}" target="_blank">Download realmlist.wtf</a></p>
<p>Download WoW 1.12</p> <p><a href="${url_wowclient}" target="_blank">Download WoW 1.12</a></p>

View File

@ -18,13 +18,13 @@ class saimod_mojotrollz_server_handling extends \SYSTEM\SAI\SaiModule {
public static function sai_mod_saimod_mojotrollz_server_handling_action_realmstop(){ public static function sai_mod_saimod_mojotrollz_server_handling_action_realmstop(){
return shell_exec('/home/mojotrolls/mojo_zero/realm stop 2>&1');} return shell_exec('/home/mojotrolls/mojo_zero/realm stop 2>&1');}
public static function sai_mod_saimod_mojotrollz_server_handling_action_realmstatus(){ 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(){ public static function sai_mod_saimod_mojotrollz_server_handling_action_worldstart(){
return shell_exec('/home/mojotrolls/mojo_zero/world start 2>&1');} return shell_exec('/home/mojotrolls/mojo_zero/world start 2>&1');}
public static function sai_mod_saimod_mojotrollz_server_handling_action_worldstop(){ public static function sai_mod_saimod_mojotrollz_server_handling_action_worldstop(){
return shell_exec('/home/mojotrolls/mojo_zero/world stop 2>&1');} return shell_exec('/home/mojotrolls/mojo_zero/world stop 2>&1');}
public static function sai_mod_saimod_mojotrollz_server_handling_action_worldstatus(){ 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(){ public static function sai_mod_saimod_mojotrollz_server_handling_action_compile(){
return shell_exec('/home/mojotrolls/mojo_zero/compile 2>&1');} return shell_exec('/home/mojotrolls/mojo_zero/compile 2>&1');}
public static function sai_mod_saimod_mojotrollz_server_handling_action_backup_db(){ public static function sai_mod_saimod_mojotrollz_server_handling_action_backup_db(){