I know every server has a status box, I wonder if there is any module available for MuCore, for free ?
Something like this one :
http://img542.imageshack.us/img542/2158/oqi.png
Thank you in advance
Printable View
I know every server has a status box, I wonder if there is any module available for MuCore, for free ?
Something like this one :
http://img542.imageshack.us/img542/2158/oqi.png
Thank you in advance
Up up up
check for my release in mucore template default template redesign. SynergyX free i think is the name.. and search for the code
Got your template but I don't really know where that code is :
http://img198.imageshack.us/img198/9295/ibwz.pngCode:<?php
/**
* @+===========================================================================+
* @¦ MuCore 1.0.8 English. ¦
* @¦ Credits: Isumeru & MaryJo ¦
* @¦ +=======================================================================+ ¦
* @¦ ¦ "He who Copy/Pastes Shall Inherit My Mistakes But Not My Knowledge" ¦ ¦
* @¦ +=======================================================================+ ¦
* @¦ Official Site: http://bizarre-networks.com ¦
* @+===========================================================================+
* @¦ Our Allied Site: http://chileplanet.org ¦
* @+===========================================================================+
*/
function build_header_seo( )
{
require( "engine/seo_config.php" );
global $core;
global $core_run_script;
global $head_keywords;
global $head_description;
if ( empty( $head_keywords ) )
{
$meta_keywords = $core_seo['meta_keywords'];
}
else
{
$meta_keywords = $head_keywords.",".$core_seo['meta_keywords'];
}
if ( empty( $head_description ) )
{
$meta_description = $core_seo['meta_description'];
}
else
{
$meta_description = $head_description;
}
if ( !isset( $_GET[LOAD_GET_PAGE] ) )
{
echo "<!-- no cache headers -->\n<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n<meta http-equiv=\"Expires\" content=\"-1\" />\n<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />\n<!-- end no cache headers -->\n<link rel=\"canonical\" href=\"".$core['config']['website_url']."/\" />\n";
}
else
{
echo "<base href=\"".$core['config']['website_url']."/\" /><!--[if IE]></base><![endif]-->\n<link rel=\"canonical\" href=\"".$core['config']['website_url']."/".$core_run_script."\" />\n";
}
echo "<meta name=\"author\" content=\"PHPCore\" />\n<meta name=\"generator\" content=\"MUCore ".$core['version']."\" />\n<meta name=\"keywords\" content=\"".$meta_keywords."\" />\n<meta name=\"description\" content=\"".$meta_description."\" />\n";
}
function build_header_title( )
{
global $core;
global $page_title;
global $menu_links_title;
global $menu_links_translated;
if ( isset( $page_title ) )
{
echo "".str_replace( $menu_links_title, $menu_links_translated, $page_title )." - ".$core['config']['websitetitle']."";
}
else
{
echo "".$core['config']['websitetitle']."";
}
}
function build_footer( )
{
global $core;
echo "<div align=\"center\" class=\"footer_font\">\n<!-- Do not remove MMORPG Core copyright notice -->\n<a href=\"http://mmorpgcore.com\" target=\"_blank\">MUCore™</a> Engine Version ".$core['version']."<br>\n<b>Powered by <a href=\"http://synergy-x.uni.me\" target=\"_blank\">Synergy-X MU Core Template </a></b><br>©";
if ( date( "Y" ) == "2009" )
{
echo "2009";
}
else
{
echo "2009 - ".date( "Y" )."";
}
echo ", MU Core. All rights reserved.\n<!-- Do not remove MMORPG Core copyright notice -->";
if ( !empty( $core['config']['copyright'] ) )
{
echo "\n<br>".stripslashes( $core['config']['copyright'] )."";
}
echo "\n</div>\n";
}
session_start( );
ob_start( );
if ( function_exists( "ini_set" ) )
{
@ini_set( "magic_quotes_runtime", "Off" );
}
include( "logger.php" );
require( "config.php" );
require( "engine/core.php" );
require( "engine/global_config.php" );
require( "engine/filter_ip.php" );
if ( $core['config']['filter_ip'] == "1" && in_array( $_SERVER['REMOTE_ADDR'], $core['config']['filter_ip_list'] ) )
{
include( "error_templates/ban_ip.php" );
exit( );
}
if ( ( $core['config']['on_off'] == "0" || $core['debug'] == "1" ) && !isset( $_SESSION['admin_login_auth'] ) )
{
include( "error_templates/website_offline.php" );
exit( );
}
require( "engine/custom_variables.php" );
require( "engine/global_cms.php" );
require( "engine/global_functions.php" );
require( "engine/adodb/adodb.inc.php" );
if ( $core['debug'] == "1" )
{
ini_set( "display_errors", "On" );
error_reporting( E_ERROR | E_WARNING | E_PARSE );
}
else
{
ini_set( "display_errors", "Off" );
error_reporting( E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_WARNING );
}
require( "language_config.php" );
if ( $core['language_switch'] == "1" )
{
if ( isset( $_GET['change_language'] ) )
{
$get_langauge = safe_input( $_GET['change_language'], "\\_" );
if ( array_key_exists( $get_langauge, $languages ) && setcookie( "mucore_language", $get_langauge, time( ) + 604800 ) )
{
if ( isset( $_SERVER['HTTP_REFERER'] ) )
{
header( "Location: ".$_SERVER['HTTP_REFERER']."" );
}
else
{
header( "Location: ".ROOT_INDEX."" );
}
}
}
if ( !isset( $_COOKIE['mucore_language'] ) )
{
require( "languages/".$core['language_set'].".php" );
}
else if ( isset( $_COOKIE['mucore_language'] ) )
{
$core['language_set'] = safe_input( $_COOKIE['mucore_language'], "\\_" );
require( "languages/".$core['language_set'].".php" );
}
}
else
{
require( "languages/".$core['language_set'].".php" );
}
if ( isset( $_GET[LOAD_GET_PAGE] ) )
{
$page_check_id = xss_clean( safe_input( $_GET[LOAD_GET_PAGE], "_" ) );
}
else
{
$page_check_id = HOME_CMS_PAGE;
}
$load_pages_check = file( "engine/cms_data/pag_d.cms" );
foreach ( $load_pages_check as $page_check )
{
$page_check = explode( "\xA6", $page_check );
if ( !( $page_check[3] == $page_check_id ) )
{
continue;
}
$found_page_mw = "1";
$page_title = $page_check[2];
$head_keywords = $page_check[13];
$head_description = $page_check[14];
if ( $page_check[8] == "0" )
{
header( "Location: ".ROOT_INDEX."" );
exit( );
}
if ( $page_check[9] == "1" )
{
$req_log = "1";
}
else
{
$req_log = "0";
}
if ( $page_check[12] == "1" )
{
$req_sql = "1";
}
else
{
$req_sql = "0";
}
break;
break;
}
if ( $found_page_mw != "1" )
{
header( "Location: ".ROOT_INDEX."" );
exit( );
}
if ( $req_sql == "1" )
{
include( "engine/connect_core.php" );
include( "engine/secure_login.php" );
}
if ( $_SESSION['user_auth'] == "1" )
{
$user_login = "1";
$user_auth_id = safe_input( $_SESSION['user_auth_id'], "\\_" );
}
else
{
$user_login = "0";
$user_auth_id = "";
}
if ( $req_log == "1" && $user_login != "1" )
{
$_SESSION['last_url'] = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
header( "Location: ".ROOT_INDEX."?".LOAD_GET_PAGE."=".LOGIN_CMS_PAGE."" );
exit( );
}
if ( isset( $_GET[USER_GET_PAGE] ) )
{
$core_run_script = ROOT_INDEX."?".LOAD_GET_PAGE."=".$page_check_id."&".USER_GET_PAGE."=".xss_clean( safe_input( $_GET[USER_GET_PAGE], "_" ) );
}
else
{
$core_run_script = ROOT_INDEX."?".LOAD_GET_PAGE."=".$page_check_id."";
}
require( "engine/style_cms.php" );
$core['version'] = crypt_it( $engine, "", "1" );
include( "template/".$core['config']['template']."/index.php" );
ob_end_flush( );
/**
* @+===========================================================================+
* @¦ MuCore 1.0.8 English. ¦
* @¦ Credits: Isumeru & MaryJo ¦
* @¦ +=======================================================================+ ¦
* @¦ ¦ "He who Copy/Pastes Shall Inherit My Mistakes But Not My Knowledge" ¦ ¦
* @¦ +=======================================================================+ ¦
* @¦ Official Site: http://bizarre-networks.com ¦
* @+===========================================================================+
* @¦ Our Allied Site: http://chileplanet.org ¦
* @+===========================================================================+
*/
?>
Help ?
EDIT : Ooops, got the status.php in SynergyX folder.
EDIT 2 ======= Shows very bad :
http://img823.imageshack.us/img823/1254/cyxy.png
What do I do wrong ?
you need to make the include PHP code :)
More info ? How do I do that ?
Let me put it this way : I use the Resita Mu Template for MuCore and I want to display the Server Status BOX ( your script ) like this :
http://img809.imageshack.us/img809/1790/nmms.png
Where do I need to put your script ? In index.php of my template or in the index.php of MuCore ? Give me more details or a guide if you can ... Very appreciate your help and thank you in advance !
Any help ?
That's the raw PHP I use for my server without any alternations:
Screenshot:
http://puu.sh/3sJKa.jpg
status.php, include anywhere you want the status to be displayed:
You can freely delete the Chinese and play with the formatting.PHP Code:<?PHP
$cs_port = 44405;
$gs_port = 55901;
$gscs_port = 55909;
$host = '127.0.0.1';
$fp=@fsockopen($host,$cs_port,$ERROR_NO,$ERROR_STR,(float)0.5);
if ($fp) {
print '<li><b>Connect Server |主干服务器: <FONT color="Green">Online|在线</FONT></b> - </br>';
}
else {
print '<li><b>Connect Server |主干服务器: <FONT color="Red">Offline|离线</FONT></b> - </br>';
}
fclose($fp);
$fp=@fsockopen($host,$gs_port,$ERROR_NO,$ERROR_STR, (float)0.5);
if ($fp) {
print '<b>GameServer |游戏服务器: <FONT color="Green">Online|在线</FONT></b> - </br>';
}
else {
print '<b>GameServer |游戏服务器: <FONT color="Red">Offline|离线</FONT></b> - </br>';
}
fclose($fp);
$fp=@fsockopen($host,$gscs_port,$ERROR_NO,$ERROR_STR, (float)0.5);
if ($fp) {
print '<b>GameServer CS |攻城服务器: <FONT color="Green">Online|在线</FONT></b>';
}
else {
print '<b>GameServer CS |攻城服务器: <FONT color="Red">Offline|离线</FONT></b>';
}
fclose($fp);
?>
Also, this thread: http://forum.ragezone.com/f197/mu-co...ounter-848002/
As of the server info like "How many BKs are there on our server", I got the files, however it's written using the outdated mssql, so I need to rewrite it, give me 3 days to do that. (I also got something else to do so yeah, people who focus on it can probably finish it in 1 hour, I know I could do that.)
$fp on status check ^^ /lol2 copy-pasted
Upload template/Your Template/index.php
+ template/Your Template/images/style.css
& show me where you want me to display box
or maybe like this
http://oi42.tinypic.com/rw5aw7.jpg
also tell me what you want to display,
example from my test sv^^
http://oi43.tinypic.com/5yc0hg.jpg
or give me code you want to use
That looks amazing, 4FUNer , I want it like that, here are my files : Download indexandstyle_epocal.rar from Sendspace.com - send big files the easy way
And I would like it to show me this options :
http://img542.imageshack.us/img542/2158/oqi.png
( but not the server time , because i already have it on template )
BIG thanks in advance
here is the code
<? include("synergy-x/status.php"); ?>
(If your are using my status code use that)
then put it on your template index
Well Today & Record Online require WZ_ConnectMember db mod, i would do it, but don't really care.
Online Status if you want display by image, then give me 0-X image bars ^^
other way it's coded Server Online / Offline
You can enable/disable in serverbox_config
up to 5 servers + cs (Name/Port configurable for each server IP for all)
Exp, Colors by serverbox_config too.
4funer.php & serverbox_config.php paste to /engine directory
index.php & style.css you know where
If you want to change background/position of ServerBox
play with #ServerBox settings in style.css
Download
http://www.sendspace.com/file/hfolo9
If anyone going to use it for own server (will work only with MuCore $core_db & $core_db2 connections)
Support 2 dbs ofc.
If i fked somth, just tell me - HF GLCode:
Copy 4funer.php & serverbox_config.php to .../Engine/ Dir
Display like
<div id="ServerBox">
<? include("engine/4funer.php"); ?>
</div>
CSS
#ServerBox
{
anything you want
}
That was quick 4FUNer!
Honestly your scripts will save me some trouble rewriting my Server Stats module (tons of mssqls in the original, I might as well rewrite it)
However, I must point out your choice of names on some.... variables is..... well, let's just say if it's ASP and you work in Visual Studio 2010 you'll get an achievement for that (no I'm serious lol)
Its kind of messed up, 4FUNer, tested today and waiting for your help ...
http://img805.imageshack.us/img805/6595/hpz5.png
Like this would be perfect :
http://img845.imageshack.us/img845/8014/kl9a.png
You didn't REPLACED F....... STYLE.CSS it is in f.... /images dir
With old style it looks like your, with new one
It looks like this on firefox/opera/chrome :|
http://oi39.tinypic.com/34fyvyo.jpg
Files in /engine are ok
Paste it... Download xxx.rar from Sendspace.com - send big files the easy way
About top position edit 110px in style.css (160 px it is like login box top)