Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Release] WebEngine 1.0.9

Put Community First
Loyal Member
Joined
Oct 2, 2014
Messages
1,114
Reaction score
833
And what, have lots of users firing instantaneous requests in real-time, opposed to condensing some requests to firing periodically? No way.
 
Joined
Oct 18, 2010
Messages
558
Reaction score
45
they talk real time updates sample in ranking if player get level 400 website will be shown that player level is 400 instantly, because cron job has time before read infos. :)
 
Junior Spellweaver
Joined
Jul 29, 2007
Messages
134
Reaction score
301
they talk real time updates sample in ranking if player get level 400 website will be shown that player level is 400 instantly, because cron job has time before read infos. :)

I know, but that's not a good thing to do if one of the main aspects of the CMS is that it's fast and optimized.
You can always set the rankings cron to be updated every 5 minutes.
 
Joined
Oct 18, 2010
Messages
558
Reaction score
45
I know, but that's not a good thing to do if one of the main aspects of the CMS is that it's fast and optimized.
You can always set the rankings cron to be updated every 5 minutes.

well still good since 5 mins is not too long :)

Thanks for update, nice cms :)

hmmmm, this cms dont have webshop?
 
Joined
Nov 29, 2009
Messages
505
Reaction score
92
ohh nice that http host thing...

hey guys i am sharing here the event timer module on sidebar. Just put on legendary>inc>modules>sidebar.php

PHP:
<script type="text/javascript">
function eventstime(lasttime, repeattime, showid, opentime) {
	if (lasttime < 0) lasttime = repeattime-1;
	if (lasttime <= opentime) {
		document.getElementById(showid).innerHTML = "is Open";
		setTimeout('eventstime('+(lasttime-1)+', '+repeattime+', \''+showid+'\', '+opentime+');', 999);
	} else {
		var secs = lasttime % 60;
		if (secs < 10) secs = '0'+secs;
		var lasttime1 = (lasttime - secs) / 60;
		var mins = lasttime1 % 60;
		if (mins < 10) mins = '0'+mins;
		lasttime1 = (lasttime1 - mins) / 60;
		var hours = lasttime1 % 24;
		var days = (lasttime1 - hours) / 24;
		if (days > 1) days = days+' days ';
		else if (days > 0) days = days+' day ';
		document.getElementById(showid).innerHTML = days+hours+':'+mins+':'+secs;
		setTimeout('eventstime('+(lasttime-1)+', '+repeattime+', \''+showid+'\', '+opentime+');', 999);
	}
}
</script>

<?
echo '<div class="panel panel-sidebar">
		<div class="panel-heading"><h3 class="panel-title">EVENT TIMER - (xD)</h3></div>
		<div class="panel-body"><table class="table">';

$eventtime[1]['name']	= 'Blood Castle';
$eventtime[1]['start']		= 'Jan 01,	2011 00:19:00';
$eventtime[1]['repeattime']	= '3600';
$eventtime[1]['opentime']	= '300';

$eventtime[2]['name']	= 'Devil Square';
$eventtime[2]['start']		= 'Jan 01,	2011 01:00:00';
$eventtime[2]['repeattime']	= '7200';
$eventtime[2]['opentime']	= '300';

$eventtime[3]['name']	= 'Chaos Castle';
$eventtime[3]['start']		= 'Jan 01,	2011 01:00:00';
$eventtime[3]['repeattime']	= '7200';
$eventtime[3]['opentime']	= '300';

$eventtime[4]['name']	= 'Golden Invasion';
$eventtime[4]['start']		= 'Jan 01,	2011 01:00:00';
$eventtime[4]['repeattime']	= '7200';
$eventtime[4]['opentime']	= '300';

$eventtime[5]['name']	= 'Castle Deep';
$eventtime[5]['start']		= 'Jan 01,	2011 01:05:00';
$eventtime[5]['repeattime']	= '80000';
$eventtime[5]['opentime']	= '300';

$eventtime[6]['name']	= 'Crywolf Siege';
$eventtime[6]['start']		= 'Jan 01,	2011 01:00:00';
$eventtime[6]['repeattime']	= '604800';
$eventtime[6]['opentime']	= '300';

$eventtime[7]['name']	= 'Chaos Castle';
$eventtime[7]['start']		= 'Jan 01,	2011 01:00:00';
$eventtime[7]['repeattime']	= '7200';
$eventtime[7]['opentime']	= '300';

define('WEBSITE_REAL_TIME', time());
$i = 0;
echo '';
foreach ($eventtime as $value) {
	$i++;
	$bc_remain = $value['repeattime'] - ((WEBSITE_REAL_TIME - strtotime($value['start'])) % $value['repeattime']);
	$startevents .= 'eventstime('.$bc_remain.', '.$value['repeattime'].', \'event'.$i.'\', '.$value['opentime'].'); ';
	echo '
    <tr>
      <td height="21px"><span style="color:#9a7e46;font-size: 100%;">'.$value['name'].'</span></td>
      <td height="21px"><span id="event'.$i.'" style="color:#ffffcc;font-size: 100%;font-family:arial;"></span></td>
    </tr>';
}
echo '<script type="text/javascript">'.$startevents.'</script>
</table></div>';
?>

I2Acl9w - [Release] WebEngine 1.0.9 - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Junior Spellweaver
Joined
May 26, 2012
Messages
170
Reaction score
17
ohh nice that http host thing...

hey guys i am sharing here the event timer module on sidebar. Just put on legendary>inc>modules>sidebar.php

PHP:
<script type="text/javascript">
function eventstime(lasttime, repeattime, showid, opentime) {
	if (lasttime < 0) lasttime = repeattime-1;
	if (lasttime <= opentime) {
		document.getElementById(showid).innerHTML = "is Open";
		setTimeout('eventstime('+(lasttime-1)+', '+repeattime+', \''+showid+'\', '+opentime+');', 999);
	} else {
		var secs = lasttime % 60;
		if (secs < 10) secs = '0'+secs;
		var lasttime1 = (lasttime - secs) / 60;
		var mins = lasttime1 % 60;
		if (mins < 10) mins = '0'+mins;
		lasttime1 = (lasttime1 - mins) / 60;
		var hours = lasttime1 % 24;
		var days = (lasttime1 - hours) / 24;
		if (days > 1) days = days+' days ';
		else if (days > 0) days = days+' day ';
		document.getElementById(showid).innerHTML = days+hours+':'+mins+':'+secs;
		setTimeout('eventstime('+(lasttime-1)+', '+repeattime+', \''+showid+'\', '+opentime+');', 999);
	}
}
</script>

<?
echo '<div class="panel panel-sidebar">
		<div class="panel-heading"><h3 class="panel-title">EVENT TIMER - (xD)</h3></div>
		<div class="panel-body"><table class="table">';

$eventtime[1]['name']	= 'Blood Castle';
$eventtime[1]['start']		= 'Jan 01,	2011 00:19:00';
$eventtime[1]['repeattime']	= '3600';
$eventtime[1]['opentime']	= '300';

$eventtime[2]['name']	= 'Devil Square';
$eventtime[2]['start']		= 'Jan 01,	2011 01:00:00';
$eventtime[2]['repeattime']	= '7200';
$eventtime[2]['opentime']	= '300';

$eventtime[3]['name']	= 'Chaos Castle';
$eventtime[3]['start']		= 'Jan 01,	2011 01:00:00';
$eventtime[3]['repeattime']	= '7200';
$eventtime[3]['opentime']	= '300';

$eventtime[4]['name']	= 'Golden Invasion';
$eventtime[4]['start']		= 'Jan 01,	2011 01:00:00';
$eventtime[4]['repeattime']	= '7200';
$eventtime[4]['opentime']	= '300';

$eventtime[5]['name']	= 'Castle Deep';
$eventtime[5]['start']		= 'Jan 01,	2011 01:05:00';
$eventtime[5]['repeattime']	= '80000';
$eventtime[5]['opentime']	= '300';

$eventtime[6]['name']	= 'Crywolf Siege';
$eventtime[6]['start']		= 'Jan 01,	2011 01:00:00';
$eventtime[6]['repeattime']	= '604800';
$eventtime[6]['opentime']	= '300';

$eventtime[7]['name']	= 'Chaos Castle';
$eventtime[7]['start']		= 'Jan 01,	2011 01:00:00';
$eventtime[7]['repeattime']	= '7200';
$eventtime[7]['opentime']	= '300';

define('WEBSITE_REAL_TIME', time());
$i = 0;
echo '';
foreach ($eventtime as $value) {
	$i++;
	$bc_remain = $value['repeattime'] - ((WEBSITE_REAL_TIME - strtotime($value['start'])) % $value['repeattime']);
	$startevents .= 'eventstime('.$bc_remain.', '.$value['repeattime'].', \'event'.$i.'\', '.$value['opentime'].'); ';
	echo '
    <tr>
      <td height="21px"><span style="color:#9a7e46;font-size: 100%;">'.$value['name'].'</span></td>
      <td height="21px"><span id="event'.$i.'" style="color:#ffffcc;font-size: 100%;font-family:arial;"></span></td>
    </tr>';
}
echo '<script type="text/javascript">'.$startevents.'</script>
</table></div>';
?>

I2Acl9w - [Release] WebEngine 1.0.9 - RaGEZONE Forums

nice event timer. Thanks
 

Attachments

You must be registered for see attachments list
Joined
Apr 22, 2013
Messages
710
Reaction score
49
ohh nice that http host thing...

hey guys i am sharing here the event timer module on sidebar. Just put on legendary>inc>modules>sidebar.php

PHP:
<script type="text/javascript">
function eventstime(lasttime, repeattime, showid, opentime) {
    if (lasttime < 0) lasttime = repeattime-1;
    if (lasttime <= opentime) {
        document.getElementById(showid).innerHTML = "is Open";
        setTimeout('eventstime('+(lasttime-1)+', '+repeattime+', \''+showid+'\', '+opentime+');', 999);
    } else {
        var secs = lasttime % 60;
        if (secs < 10) secs = '0'+secs;
        var lasttime1 = (lasttime - secs) / 60;
        var mins = lasttime1 % 60;
        if (mins < 10) mins = '0'+mins;
        lasttime1 = (lasttime1 - mins) / 60;
        var hours = lasttime1 % 24;
        var days = (lasttime1 - hours) / 24;
        if (days > 1) days = days+' days ';
        else if (days > 0) days = days+' day ';
        document.getElementById(showid).innerHTML = days+hours+':'+mins+':'+secs;
        setTimeout('eventstime('+(lasttime-1)+', '+repeattime+', \''+showid+'\', '+opentime+');', 999);
    }
}
</script>

<?
echo '<div class="panel panel-sidebar">
        <div class="panel-heading"><h3 class="panel-title">EVENT TIMER - (xD)</h3></div>
        <div class="panel-body"><table class="table">';

$eventtime[1]['name']    = 'Blood Castle';
$eventtime[1]['start']        = 'Jan 01,    2011 00:19:00';
$eventtime[1]['repeattime']    = '3600';
$eventtime[1]['opentime']    = '300';

$eventtime[2]['name']    = 'Devil Square';
$eventtime[2]['start']        = 'Jan 01,    2011 01:00:00';
$eventtime[2]['repeattime']    = '7200';
$eventtime[2]['opentime']    = '300';

$eventtime[3]['name']    = 'Chaos Castle';
$eventtime[3]['start']        = 'Jan 01,    2011 01:00:00';
$eventtime[3]['repeattime']    = '7200';
$eventtime[3]['opentime']    = '300';

$eventtime[4]['name']    = 'Golden Invasion';
$eventtime[4]['start']        = 'Jan 01,    2011 01:00:00';
$eventtime[4]['repeattime']    = '7200';
$eventtime[4]['opentime']    = '300';

$eventtime[5]['name']    = 'Castle Deep';
$eventtime[5]['start']        = 'Jan 01,    2011 01:05:00';
$eventtime[5]['repeattime']    = '80000';
$eventtime[5]['opentime']    = '300';

$eventtime[6]['name']    = 'Crywolf Siege';
$eventtime[6]['start']        = 'Jan 01,    2011 01:00:00';
$eventtime[6]['repeattime']    = '604800';
$eventtime[6]['opentime']    = '300';

$eventtime[7]['name']    = 'Chaos Castle';
$eventtime[7]['start']        = 'Jan 01,    2011 01:00:00';
$eventtime[7]['repeattime']    = '7200';
$eventtime[7]['opentime']    = '300';

define('WEBSITE_REAL_TIME', time());
$i = 0;
echo '';
foreach ($eventtime as $value) {
    $i++;
    $bc_remain = $value['repeattime'] - ((WEBSITE_REAL_TIME - strtotime($value['start'])) % $value['repeattime']);
    $startevents .= 'eventstime('.$bc_remain.', '.$value['repeattime'].', \'event'.$i.'\', '.$value['opentime'].'); ';
    echo '
    <tr>
      <td height="21px"><span style="color:#9a7e46;font-size: 100%;">'.$value['name'].'</span></td>
      <td height="21px"><span id="event'.$i.'" style="color:#ffffcc;font-size: 100%;font-family:arial;"></span></td>
    </tr>';
}
echo '<script type="text/javascript">'.$startevents.'</script>
</table></div>';
?>

I2Acl9w - [Release] WebEngine 1.0.9 - RaGEZONE Forums

Nice share, will this be compatible with the 1.0.8 version of WebEngine?
 

Attachments

You must be registered for see attachments list
Joined
Mar 25, 2010
Messages
527
Reaction score
43
ohh nice that http host thing...

hey guys i am sharing here the event timer module on sidebar. Just put on legendary>inc>modules>sidebar.php

PHP:
<script type="text/javascript">
function eventstime(lasttime, repeattime, showid, opentime) {
	if (lasttime < 0) lasttime = repeattime-1;
	if (lasttime <= opentime) {
		document.getElementById(showid).innerHTML = "is Open";
		setTimeout('eventstime('+(lasttime-1)+', '+repeattime+', \''+showid+'\', '+opentime+');', 999);
	} else {
		var secs = lasttime % 60;
		if (secs < 10) secs = '0'+secs;
		var lasttime1 = (lasttime - secs) / 60;
		var mins = lasttime1 % 60;
		if (mins < 10) mins = '0'+mins;
		lasttime1 = (lasttime1 - mins) / 60;
		var hours = lasttime1 % 24;
		var days = (lasttime1 - hours) / 24;
		if (days > 1) days = days+' days ';
		else if (days > 0) days = days+' day ';
		document.getElementById(showid).innerHTML = days+hours+':'+mins+':'+secs;
		setTimeout('eventstime('+(lasttime-1)+', '+repeattime+', \''+showid+'\', '+opentime+');', 999);
	}
}
</script>

<?
echo '<div class="panel panel-sidebar">
		<div class="panel-heading"><h3 class="panel-title">EVENT TIMER - (xD)</h3></div>
		<div class="panel-body"><table class="table">';

$eventtime[1]['name']	= 'Blood Castle';
$eventtime[1]['start']		= 'Jan 01,	2011 00:19:00';
$eventtime[1]['repeattime']	= '3600';
$eventtime[1]['opentime']	= '300';

$eventtime[2]['name']	= 'Devil Square';
$eventtime[2]['start']		= 'Jan 01,	2011 01:00:00';
$eventtime[2]['repeattime']	= '7200';
$eventtime[2]['opentime']	= '300';

$eventtime[3]['name']	= 'Chaos Castle';
$eventtime[3]['start']		= 'Jan 01,	2011 01:00:00';
$eventtime[3]['repeattime']	= '7200';
$eventtime[3]['opentime']	= '300';

$eventtime[4]['name']	= 'Golden Invasion';
$eventtime[4]['start']		= 'Jan 01,	2011 01:00:00';
$eventtime[4]['repeattime']	= '7200';
$eventtime[4]['opentime']	= '300';

$eventtime[5]['name']	= 'Castle Deep';
$eventtime[5]['start']		= 'Jan 01,	2011 01:05:00';
$eventtime[5]['repeattime']	= '80000';
$eventtime[5]['opentime']	= '300';

$eventtime[6]['name']	= 'Crywolf Siege';
$eventtime[6]['start']		= 'Jan 01,	2011 01:00:00';
$eventtime[6]['repeattime']	= '604800';
$eventtime[6]['opentime']	= '300';

$eventtime[7]['name']	= 'Chaos Castle';
$eventtime[7]['start']		= 'Jan 01,	2011 01:00:00';
$eventtime[7]['repeattime']	= '7200';
$eventtime[7]['opentime']	= '300';

define('WEBSITE_REAL_TIME', time());
$i = 0;
echo '';
foreach ($eventtime as $value) {
	$i++;
	$bc_remain = $value['repeattime'] - ((WEBSITE_REAL_TIME - strtotime($value['start'])) % $value['repeattime']);
	$startevents .= 'eventstime('.$bc_remain.', '.$value['repeattime'].', \'event'.$i.'\', '.$value['opentime'].'); ';
	echo '
    <tr>
      <td height="21px"><span style="color:#9a7e46;font-size: 100%;">'.$value['name'].'</span></td>
      <td height="21px"><span id="event'.$i.'" style="color:#ffffcc;font-size: 100%;font-family:arial;"></span></td>
    </tr>';
}
echo '<script type="text/javascript">'.$startevents.'</script>
</table></div>';
?>

I2Acl9w - [Release] WebEngine 1.0.9 - RaGEZONE Forums

after i paste this.
my sidebar.php remove
 

Attachments

You must be registered for see attachments list
Junior Spellweaver
Joined
May 26, 2012
Messages
170
Reaction score
17
after i paste this.
my sidebar.php remove

you can try this one:
Code:
<script type="text/javascript">
function eventstime(lasttime, repeattime, showid, opentime) {
    if (lasttime < 0) lasttime = repeattime-1;
    if (lasttime <= opentime) {
        document.getElementById(showid).innerHTML = "is Open";
        setTimeout('eventstime('+(lasttime-1)+', '+repeattime+', \''+showid+'\', '+opentime+');', 999);
    } else {
        var secs = lasttime % 60;
        if (secs < 10) secs = '0'+secs;
        var lasttime1 = (lasttime - secs) / 60;
        var mins = lasttime1 % 60;
        if (mins < 10) mins = '0'+mins;
        lasttime1 = (lasttime1 - mins) / 60;
        var hours = lasttime1 % 24;
        var days = (lasttime1 - hours) / 24;
        if (days > 1) days = days+' days ';
        else if (days > 0) days = days+' day ';
        document.getElementById(showid).innerHTML = days+hours+':'+mins+':'+secs;
        setTimeout('eventstime('+(lasttime-1)+', '+repeattime+', \''+showid+'\', '+opentime+');', 999);
    }
}
</script>
<?php
/**
 * WebEngine
 * [url=http://muengine.net/]WebEngine | Open-Source CMS for Mu Online[/url]
 * 
 *  [USER=316612]Version[/USER] 1.0.9
 * @author Lautaro Angelico <http://lautaroangelico.com/>
 *  [USER=822345]Copyright[/USER] (c) 2013-2017 Lautaro Angelico, All Rights Reserved
 * 
 * Licensed under the MIT license
 * [url=http://opensource.org/licenses/MIT]The MIT License | Open Source Initiative[/url]
 */

# Login block
if(!isLoggedIn()) {
echo '<div class="panel panel-sidebar">';
	echo '<div class="panel-heading">';
		echo '<h3 class="panel-title">'.lang('module_titles_txt_2',true).'</h3>';
	echo '</div>';
	echo '<div class="panel-body">';
		echo '<form action="'.__BASE_URL__.'login" method="post">';
			echo '<div class="form-group">';
				echo '<label for="loginBox1">'.lang('login_txt_1',true).'</label>';
				echo '<input type="text" class="form-control" id="loginBox1" name="webengineLogin_user" required>';
			echo '</div>';
			echo '<div class="form-group">';
				echo '<label for="loginBox2">'.lang('login_txt_2',true).'</label>';
				echo '<input type="password" class="form-control" id="loginBox2" name="webengineLogin_pwd" required>';
				echo '<span id="helpBlock" class="help-block"><a href="'.__BASE_URL__.'forgotpassword">'.lang('login_txt_4',true).'</a></span>';
			echo '</div>';
			echo '<button type="submit" name="webengineLogin_submit" value="submit" class="btn btn-primary">'.lang('login_txt_3',true).'</button>';
		echo '</form>';
	echo '</div>';
echo '</div>';

# join now banner
echo '<div class="sidebar-banner"><a href="'.__BASE_URL__.'register"><img src="'.__PATH_TEMPLATE_IMG__.'register_sidebar_banner.jpg"/></a></div>';
}



# Usercp block
if(isLoggedIn()) {
echo '<div class="panel panel-sidebar panel-usercp">';
	echo '<div class="panel-heading">';
		echo '<h3 class="panel-title">'.lang('usercp_menu_title',true).'</h3>';
	echo '</div>';
	echo '<div class="panel-body">';
			templateBuildUsercp();
	echo '</div>';
echo '</div>';
}



# Server info block
$srvInfoCache = LoadCacheData('server_info.cache');
if(is_array($srvInfoCache)) {
	$srvInfo = explode("|", $srvInfoCache[1][0]);
	
	echo '<div class="panel panel-sidebar">';
		echo '<div class="panel-heading">';
			echo '<h3 class="panel-title">'.lang('sidebar_srvinfo_txt_1',true).'</h3>';
		echo '</div>';
		echo '<div class="panel-body">';
			echo '<table class="table">';
				
				//echo '<tr><td>Version:</td><td>S12EP1</td></tr>';
				//echo '<tr><td>Experience:</td><td>10x</td></tr>';
				//echo '<tr><td>Drop:</td><td>20%</td></tr>';
				
				echo '<tr><td>'.lang('sidebar_srvinfo_txt_2',true).'</td><td>'.number_format($srvInfo[0]).'</td></tr>';
				echo '<tr><td>'.lang('sidebar_srvinfo_txt_3',true).'</td><td>'.number_format($srvInfo[1]).'</td></tr>';
				echo '<tr><td>'.lang('sidebar_srvinfo_txt_4',true).'</td><td>'.number_format($srvInfo[2]).'</td></tr>';
				echo '<tr><td>'.lang('sidebar_srvinfo_txt_5',true).'</td><td style="color:#00ff00;">'.number_format($srvInfo[3]).'</td></tr>';
			echo '</table>';
		echo '</div>';
	echo '</div>';
}

# Event info block
echo '<div class="panel panel-sidebar">
        <div class="panel-heading"><h3 class="panel-title">EVENT TIMER - (xD)</h3></div>
        <div class="panel-body"><table class="table">';

$eventtime[1]['name']    = 'Blood Castle';
$eventtime[1]['start']        = 'Jan 01,    2011 00:19:00';
$eventtime[1]['repeattime']    = '3600';
$eventtime[1]['opentime']    = '300';

$eventtime[2]['name']    = 'Devil Square';
$eventtime[2]['start']        = 'Jan 01,    2011 01:00:00';
$eventtime[2]['repeattime']    = '7200';
$eventtime[2]['opentime']    = '300';

$eventtime[3]['name']    = 'Chaos Castle';
$eventtime[3]['start']        = 'Jan 01,    2011 01:00:00';
$eventtime[3]['repeattime']    = '7200';
$eventtime[3]['opentime']    = '300';

$eventtime[4]['name']    = 'Golden Invasion';
$eventtime[4]['start']        = 'Jan 01,    2011 01:00:00';
$eventtime[4]['repeattime']    = '7200';
$eventtime[4]['opentime']    = '300';

$eventtime[5]['name']    = 'Castle Deep';
$eventtime[5]['start']        = 'Jan 01,    2011 01:05:00';
$eventtime[5]['repeattime']    = '80000';
$eventtime[5]['opentime']    = '300';

$eventtime[6]['name']    = 'Crywolf Siege';
$eventtime[6]['start']        = 'Jan 01,    2011 01:00:00';
$eventtime[6]['repeattime']    = '604800';
$eventtime[6]['opentime']    = '300';

$eventtime[7]['name']    = 'Chaos Castle';
$eventtime[7]['start']        = 'Jan 01,    2011 01:00:00';
$eventtime[7]['repeattime']    = '7200';
$eventtime[7]['opentime']    = '300';

define('WEBSITE_REAL_TIME', time());
$i = 0;
echo '';
foreach ($eventtime as $value) {
    $i++;
    $bc_remain = $value['repeattime'] - ((WEBSITE_REAL_TIME - strtotime($value['start'])) % $value['repeattime']);
    $startevents .= 'eventstime('.$bc_remain.', '.$value['repeattime'].', \'event'.$i.'\', '.$value['opentime'].'); ';
    echo '
    <tr>
      <td height="21px"><span style="color:#9a7e46;font-size: 100%;">'.$value['name'].'</span></td>
      <td height="21px"><span id="event'.$i.'" style="color:#ffffcc;font-size: 100%;font-family:arial;"></span></td>
    </tr>';
}
echo '<script type="text/javascript">'.$startevents.'</script>
</table></div>';
echo '</div>';

# Video block
echo '<div class="panel panel-sidebar">';
	echo '<div class="panel-body">';
		echo '<iframe width="271" height="152" src="https://www.youtube.com/embed/H5QQDvgU-hE" frameborder="0" allowfullscreen></iframe>';
	echo '</div>';
echo '</div>';



# FB block
$facebookPage = 'MUE.WebEngine';
echo '<div class="panel panel-sidebar">';
	echo '<div class="panel-body">';
		echo '<iframe src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2F'.$facebookPage.'&tabs=timeline&width=271&height=300&small_header=true&adapt_container_width=true&hide_cover=false&show_facepile=false" width="271" height="300" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>';
	echo '</div>';
echo '</div>';


/*
# Default block
echo '<div class="panel panel-sidebar">';
	echo '<div class="panel-heading">';
		echo '<h3 class="panel-title">Title</h3>';
	echo '</div>';
	echo '<div class="panel-body">';
		
	echo '</div>';
echo '</div>';
*/
 
Last edited:
Joined
Mar 25, 2010
Messages
527
Reaction score
43
you can try this one:
Code:
<script type="text/javascript">
function eventstime(lasttime, repeattime, showid, opentime) {
    if (lasttime < 0) lasttime = repeattime-1;
    if (lasttime <= opentime) {
        document.getElementById(showid).innerHTML = "is Open";
        setTimeout('eventstime('+(lasttime-1)+', '+repeattime+', \''+showid+'\', '+opentime+');', 999);
    } else {
        var secs = lasttime % 60;
        if (secs < 10) secs = '0'+secs;
        var lasttime1 = (lasttime - secs) / 60;
        var mins = lasttime1 % 60;
        if (mins < 10) mins = '0'+mins;
        lasttime1 = (lasttime1 - mins) / 60;
        var hours = lasttime1 % 24;
        var days = (lasttime1 - hours) / 24;
        if (days > 1) days = days+' days ';
        else if (days > 0) days = days+' day ';
        document.getElementById(showid).innerHTML = days+hours+':'+mins+':'+secs;
        setTimeout('eventstime('+(lasttime-1)+', '+repeattime+', \''+showid+'\', '+opentime+');', 999);
    }
}
</script>
<?php
/**
 * WebEngine
 * [url=http://muengine.net/]WebEngine | Open-Source CMS for Mu Online[/url]
 * 
 *  [USER=316612]Version[/USER] 1.0.9
 * @author Lautaro Angelico <http://lautaroangelico.com/>
 *  [USER=822345]Copyright[/USER] (c) 2013-2017 Lautaro Angelico, All Rights Reserved
 * 
 * Licensed under the MIT license
 * [url=http://opensource.org/licenses/MIT]The MIT License | Open Source Initiative[/url]
 */

# Login block
if(!isLoggedIn()) {
echo '<div class="panel panel-sidebar">';
	echo '<div class="panel-heading">';
		echo '<h3 class="panel-title">'.lang('module_titles_txt_2',true).'</h3>';
	echo '</div>';
	echo '<div class="panel-body">';
		echo '<form action="'.__BASE_URL__.'login" method="post">';
			echo '<div class="form-group">';
				echo '<label for="loginBox1">'.lang('login_txt_1',true).'</label>';
				echo '<input type="text" class="form-control" id="loginBox1" name="webengineLogin_user" required>';
			echo '</div>';
			echo '<div class="form-group">';
				echo '<label for="loginBox2">'.lang('login_txt_2',true).'</label>';
				echo '<input type="password" class="form-control" id="loginBox2" name="webengineLogin_pwd" required>';
				echo '<span id="helpBlock" class="help-block"><a href="'.__BASE_URL__.'forgotpassword">'.lang('login_txt_4',true).'</a></span>';
			echo '</div>';
			echo '<button type="submit" name="webengineLogin_submit" value="submit" class="btn btn-primary">'.lang('login_txt_3',true).'</button>';
		echo '</form>';
	echo '</div>';
echo '</div>';

# join now banner
echo '<div class="sidebar-banner"><a href="'.__BASE_URL__.'register"><img src="'.__PATH_TEMPLATE_IMG__.'register_sidebar_banner.jpg"/></a></div>';
}



# Usercp block
if(isLoggedIn()) {
echo '<div class="panel panel-sidebar panel-usercp">';
	echo '<div class="panel-heading">';
		echo '<h3 class="panel-title">'.lang('usercp_menu_title',true).'</h3>';
	echo '</div>';
	echo '<div class="panel-body">';
			templateBuildUsercp();
	echo '</div>';
echo '</div>';
}



# Server info block
$srvInfoCache = LoadCacheData('server_info.cache');
if(is_array($srvInfoCache)) {
	$srvInfo = explode("|", $srvInfoCache[1][0]);
	
	echo '<div class="panel panel-sidebar">';
		echo '<div class="panel-heading">';
			echo '<h3 class="panel-title">'.lang('sidebar_srvinfo_txt_1',true).'</h3>';
		echo '</div>';
		echo '<div class="panel-body">';
			echo '<table class="table">';
				
				//echo '<tr><td>Version:</td><td>S12EP1</td></tr>';
				//echo '<tr><td>Experience:</td><td>10x</td></tr>';
				//echo '<tr><td>Drop:</td><td>20%</td></tr>';
				
				echo '<tr><td>'.lang('sidebar_srvinfo_txt_2',true).'</td><td>'.number_format($srvInfo[0]).'</td></tr>';
				echo '<tr><td>'.lang('sidebar_srvinfo_txt_3',true).'</td><td>'.number_format($srvInfo[1]).'</td></tr>';
				echo '<tr><td>'.lang('sidebar_srvinfo_txt_4',true).'</td><td>'.number_format($srvInfo[2]).'</td></tr>';
				echo '<tr><td>'.lang('sidebar_srvinfo_txt_5',true).'</td><td style="color:#00ff00;">'.number_format($srvInfo[3]).'</td></tr>';
			echo '</table>';
		echo '</div>';
	echo '</div>';
}

# Event info block
echo '<div class="panel panel-sidebar">
        <div class="panel-heading"><h3 class="panel-title">EVENT TIMER - (xD)</h3></div>
        <div class="panel-body"><table class="table">';

$eventtime[1]['name']    = 'Blood Castle';
$eventtime[1]['start']        = 'Jan 01,    2011 00:19:00';
$eventtime[1]['repeattime']    = '3600';
$eventtime[1]['opentime']    = '300';

$eventtime[2]['name']    = 'Devil Square';
$eventtime[2]['start']        = 'Jan 01,    2011 01:00:00';
$eventtime[2]['repeattime']    = '7200';
$eventtime[2]['opentime']    = '300';

$eventtime[3]['name']    = 'Chaos Castle';
$eventtime[3]['start']        = 'Jan 01,    2011 01:00:00';
$eventtime[3]['repeattime']    = '7200';
$eventtime[3]['opentime']    = '300';

$eventtime[4]['name']    = 'Golden Invasion';
$eventtime[4]['start']        = 'Jan 01,    2011 01:00:00';
$eventtime[4]['repeattime']    = '7200';
$eventtime[4]['opentime']    = '300';

$eventtime[5]['name']    = 'Castle Deep';
$eventtime[5]['start']        = 'Jan 01,    2011 01:05:00';
$eventtime[5]['repeattime']    = '80000';
$eventtime[5]['opentime']    = '300';

$eventtime[6]['name']    = 'Crywolf Siege';
$eventtime[6]['start']        = 'Jan 01,    2011 01:00:00';
$eventtime[6]['repeattime']    = '604800';
$eventtime[6]['opentime']    = '300';

$eventtime[7]['name']    = 'Chaos Castle';
$eventtime[7]['start']        = 'Jan 01,    2011 01:00:00';
$eventtime[7]['repeattime']    = '7200';
$eventtime[7]['opentime']    = '300';

define('WEBSITE_REAL_TIME', time());
$i = 0;
echo '';
foreach ($eventtime as $value) {
    $i++;
    $bc_remain = $value['repeattime'] - ((WEBSITE_REAL_TIME - strtotime($value['start'])) % $value['repeattime']);
    $startevents .= 'eventstime('.$bc_remain.', '.$value['repeattime'].', \'event'.$i.'\', '.$value['opentime'].'); ';
    echo '
    <tr>
      <td height="21px"><span style="color:#9a7e46;font-size: 100%;">'.$value['name'].'</span></td>
      <td height="21px"><span id="event'.$i.'" style="color:#ffffcc;font-size: 100%;font-family:arial;"></span></td>
    </tr>';
}
echo '<script type="text/javascript">'.$startevents.'</script>
</table></div>';
echo '</div>';

# Video block
echo '<div class="panel panel-sidebar">';
	echo '<div class="panel-body">';
		echo '<iframe width="271" height="152" src="https://www.youtube.com/embed/H5QQDvgU-hE" frameborder="0" allowfullscreen></iframe>';
	echo '</div>';
echo '</div>';



# FB block
$facebookPage = 'MUE.WebEngine';
echo '<div class="panel panel-sidebar">';
	echo '<div class="panel-body">';
		echo '<iframe src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2F'.$facebookPage.'&tabs=timeline&width=271&height=300&small_header=true&adapt_container_width=true&hide_cover=false&show_facepile=false" width="271" height="300" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>';
	echo '</div>';
echo '</div>';


/*
# Default block
echo '<div class="panel panel-sidebar">';
	echo '<div class="panel-heading">';
		echo '<h3 class="panel-title">Title</h3>';
	echo '</div>';
	echo '<div class="panel-body">';
		
	echo '</div>';
echo '</div>';
*/

thanks work now :D
 
Newbie Spellweaver
Joined
Mar 9, 2017
Messages
64
Reaction score
7
ohh nice that http host thing...

hey guys i am sharing here the event timer module on sidebar. Just put on legendary>inc>modules>sidebar.php

PHP:
<script type="text/javascript">
function eventstime(lasttime, repeattime, showid, opentime) {
    if (lasttime < 0) lasttime = repeattime-1;
    if (lasttime <= opentime) {
        document.getElementById(showid).innerHTML = "is Open";
        setTimeout('eventstime('+(lasttime-1)+', '+repeattime+', \''+showid+'\', '+opentime+');', 999);
    } else {
        var secs = lasttime % 60;
        if (secs < 10) secs = '0'+secs;
        var lasttime1 = (lasttime - secs) / 60;
        var mins = lasttime1 % 60;
        if (mins < 10) mins = '0'+mins;
        lasttime1 = (lasttime1 - mins) / 60;
        var hours = lasttime1 % 24;
        var days = (lasttime1 - hours) / 24;
        if (days > 1) days = days+' days ';
        else if (days > 0) days = days+' day ';
        document.getElementById(showid).innerHTML = days+hours+':'+mins+':'+secs;
        setTimeout('eventstime('+(lasttime-1)+', '+repeattime+', \''+showid+'\', '+opentime+');', 999);
    }
}
</script>

<?
echo '<div class="panel panel-sidebar">
        <div class="panel-heading"><h3 class="panel-title">EVENT TIMER - (xD)</h3></div>
        <div class="panel-body"><table class="table">';

$eventtime[1]['name']    = 'Blood Castle';
$eventtime[1]['start']        = 'Jan 01,    2011 00:19:00';
$eventtime[1]['repeattime']    = '3600';
$eventtime[1]['opentime']    = '300';

$eventtime[2]['name']    = 'Devil Square';
$eventtime[2]['start']        = 'Jan 01,    2011 01:00:00';
$eventtime[2]['repeattime']    = '7200';
$eventtime[2]['opentime']    = '300';

$eventtime[3]['name']    = 'Chaos Castle';
$eventtime[3]['start']        = 'Jan 01,    2011 01:00:00';
$eventtime[3]['repeattime']    = '7200';
$eventtime[3]['opentime']    = '300';

$eventtime[4]['name']    = 'Golden Invasion';
$eventtime[4]['start']        = 'Jan 01,    2011 01:00:00';
$eventtime[4]['repeattime']    = '7200';
$eventtime[4]['opentime']    = '300';

$eventtime[5]['name']    = 'Castle Deep';
$eventtime[5]['start']        = 'Jan 01,    2011 01:05:00';
$eventtime[5]['repeattime']    = '80000';
$eventtime[5]['opentime']    = '300';

$eventtime[6]['name']    = 'Crywolf Siege';
$eventtime[6]['start']        = 'Jan 01,    2011 01:00:00';
$eventtime[6]['repeattime']    = '604800';
$eventtime[6]['opentime']    = '300';

$eventtime[7]['name']    = 'Chaos Castle';
$eventtime[7]['start']        = 'Jan 01,    2011 01:00:00';
$eventtime[7]['repeattime']    = '7200';
$eventtime[7]['opentime']    = '300';

define('WEBSITE_REAL_TIME', time());
$i = 0;
echo '';
foreach ($eventtime as $value) {
    $i++;
    $bc_remain = $value['repeattime'] - ((WEBSITE_REAL_TIME - strtotime($value['start'])) % $value['repeattime']);
    $startevents .= 'eventstime('.$bc_remain.', '.$value['repeattime'].', \'event'.$i.'\', '.$value['opentime'].'); ';
    echo '
    <tr>
      <td height="21px"><span style="color:#9a7e46;font-size: 100%;">'.$value['name'].'</span></td>
      <td height="21px"><span id="event'.$i.'" style="color:#ffffcc;font-size: 100%;font-family:arial;"></span></td>
    </tr>';
}
echo '<script type="text/javascript">'.$startevents.'</script>
</table></div>';
?>

I2Acl9w - [Release] WebEngine 1.0.9 - RaGEZONE Forums

Thank for this bro :D looks so good now ^_^
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Feb 1, 2012
Messages
14
Reaction score
0
okay, about MD5, its not working :/ maybe my server files, i dont can change the database... and number two, the
Column MuOnline.dbo.MEMB_CREDITS dont Update after insert credits, Only if I manually add the name of the player to the table, does the site function normally.Is there any query or way to do this already automatically? "google translate :X"
--------------Edit
I tried modifying the source code to also add but it did not work either.
"We could not create your account, please contact the support team."

Code:

Class account:
# insert data
$data = array(
'username' => $username,
'password' => $password,
'name' => 'webengine',
'serial' => '111111111111',
'email' => $email,
'credits' => 0,
'used' => 0
-------------
In $query
$query = "INSERT INTO "._TBL_MI_." ("._CLMN_USERNM_.", "._CLMN_PASSWD_.", "._CLMN_MEMBNAME_.", "._CLMN_SNONUMBER_.", "._CLMN_EMAIL_.", "._CLMN_BLOCCODE_.", "._CLMN_CTLCODE_.") VALUES :)username, :password, :name, :serial, :email, 0, 0), INSERT INTO "._TBL_MC_." ("._CLMN_MC_ID_.", "._CLMN_MC_CREDITS_.", "._CLMN_MC_USED_.") VALUES :)username, :credits, :used) ";
 
Last edited:
Joined
Nov 29, 2009
Messages
505
Reaction score
92
I love the castle siege part. :thumbup1:

its really ugly in the middle, ruins the entire style of the web. I will be adapting it in 1.09 as well with the legendary design similar to the event timer. Although i got a problem with the guild logos, they produce freaking barcodes. xD

oh btw for s9 igcn users or maybe for others, i modified the level rankings showing combined normal level and master level using a simple modifications in includes>class>classrankings.php in lines starting 76:

PHP:
case "IGCN":
				$result = $this->mu->query_fetch("SELECT TOP ".$this->_results." "._CLMN_CHR_NAME_.","._CLMN_CHR_CLASS_.",("._CLMN_CHR_LVL_."+"._CLMN_CHR_MLVL_.") as chlevel FROM "._TBL_CHR_." WHERE "._CLMN_CHR_NAME_." NOT IN(".$this->_rankingsExcludeChars().") ORDER BY chlevel DESC");
				break;

in that case you won't need to show masterlevel rankings cause it will be reflected in the level rankings. Sample:
 
Last edited:
Junior Spellweaver
Joined
May 26, 2012
Messages
170
Reaction score
17
There are no ranking results to display.

someone help im using muemu files
and my problem the ranking not show
i already run the cronjob

Do you able to login to admincp? I also have this problem on my localhost
 
Back
Top