[Release] MuWeb 0.9 + VIP Panel + New Template

Ranking Fixed
<?
if(read_module(20) == 0){ echo locked('For the moment this page is closed...Please try again latter.','370'); }else{ $db_updates_times = file("sys_/muweb_db/".statistics_updates_tDB.""); $id=1; foreach($db_updates_times as $r_c){ $r_c = explode("|", $r_c); if($r_c[0] == $id){ $time = time(); $time_count = ($r_c[1]-$time); $time_left = $time_count; if($time_left <= 0){ global $db_primary,$muweb; $g_r = $db_primary->Execute("Select top ".$muweb['top_rankings']." mu_id,name,class,clevel,resets,strength,dexterity,vitality,energy,ctlcode,leadership from character order by resets desc, clevel desc"); $no_command = 0; if(!$g_r){ $g_r = $db_primary->Execute("Select top ".$muweb['top_rankings']." mu_id,name,class,clevel,resets,strength,dexterity,vitality,energy,ctlcode from character order by resets desc, clevel desc"); $no_command = 1; } for($i=0;$i < $g_r->numrows();++$i){ $s_r = $g_r->fetchrow(); if($no_command == 1){ $new_ranking .= "$s_r[0]|".md5_encrypt($s_r[1])."|$s_r[2]|$s_r[3]|$s_r[4]|$s_r[5]|$s_r[6]|$s_r[7]|$s_r[8]|$s_r[9]|0|\n"; }else{ $new_ranking .= "$s_r[0]|".md5_encrypt($s_r[1])."|$s_r[2]|$s_r[3]|$s_r[4]|$s_r[5]|$s_r[6]|$s_r[7]|$s_r[8]|$s_r[9]|$s_r[10]|\n"; } } $new_top_ranking = "sys_/muweb_db/".top_characters_tDB.""; $open_file = fopen($new_top_ranking,'w'); fputs($open_file, $new_ranking); fclose($open_file); $g_r = $db_primary->Execute("Select top ".$muweb['top_rankings']." G_name,G_Mark,G_Score,G_Master from Guild order by G_Score desc"); for($i=0;$i < $g_r->numrows();++$i){ $s_r = $g_r->fetchrow(); $get_id = $db_primary->Execute("Select mu_id from character where name=?",array($s_r[3])); $get_id = $get_id->fetchrow(); $get_number = $db_primary->Execute("Select name from GuildMember where G_name=?",array($s_r[0])); $get_number = $get_number->numrows(); $new_guild_ranking .= "".md5_encrypt($s_r[0])."|".urlencode(bin2hex($s_r[1]))."|$s_r[2]|".md5_encrypt($s_r[3])."|$get_id[0]|$get_number|\n"; } $new_top_ranking = "sys_/muweb_db/".top_guilds_tDB.""; $open_file = fopen($new_top_ranking,'w'); fputs($open_file, $new_guild_ranking); fclose($open_file); $time_ = time()+$r_c[2]; $old_db = file("sys_/muweb_db/".statistics_updates_tDB.""); $new_db = fopen("sys_/muweb_db/".statistics_updates_tDB."", "w"); foreach($old_db as $old_db_line){ $old_db_arr = explode("|", $old_db_line); if($id != $old_db_arr[0]){ fwrite($new_db,"$old_db_line"); }else{ fwrite($new_db,"$id|$time_|$r_c[2]|$r_c[3]|$r_c[4]|$r_c[5]|".time()."|\n"); } } fclose($new_db); } break; } } !$_GET['op2'] ? $_GET['op2'] = "Characters" : clean_variable($_GET['op2']); $rankings_content = '
<table width="530" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="140"><table width="540" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" class="full_title"><em>Sub Category :: '.ucfirst($_GET['op2']).'</em></td>
</tr>
</table>
<table width="540" align="center" border="0" cellspacing="2" cellpadding="0">
<tr>
<td align="left"><ul>
<li><a href="#" onclick="sub_page(\''.$muweb['servername'].'-Rankings-Characters.html\');">Characters Rankings</a></li>
<li><a href="#" onclick="sub_page(\''.$muweb['servername'].'-Rankings-Guilds.html\');">Guild Rankings</a></li>
<li><a href="#" onclick="sub_page(\''.$muweb['servername'].'-Rankings-Toponline.html\');">Online Ranking</a></li>
<li><a href="#" onclick="sub_page(\''.$muweb['servername'].'-Rankings-Topkiller.html\');">Killer Ranking</a></li>
</ul></td>
</tr>
</table></td>
</tr>
</table>
';
echo html($rankings_content);
function CalculateStat($iStat_DWORD) // Int64
{
if ($iStat_DWORD < 0)
{
$iStat_DWORD = $iStat_DWORD + 65535 + 1; // Positive integer + zero
return $iStat_DWORD;
}
return $iStat_DWORD;
}

$s_file = file("sys_/muweb_db/".statistics_updates_tDB.""); foreach ($s_file as $t){ $t = explode("|",$t); if($t[0] == 1){ $time_r = $t[6]; } } switch ($_GET['op2']){ case "Characters": if(read_module(201) == 0){ echo locked('For the moment this page is closed...Please try again latter.','370'); }else{ $r_file = file("sys_/muweb_db/".top_characters_tDB.""); $ch_content ='<br>
<table width="530" align="center" border="0" cellspacing="0" cellpadding="0" class="rankings-table">
<thead><tr><td>#</td><td>Name</td><td>Class</td><td>LEVEL</td><td>STR</td><td>AGI</td><td>VIT</td><td>ENG</td><td>COM</td></tr></thead>'; $count=0; $tr_color_2 = "even"; $tr_color_1 = ""; foreach ($r_file as $show_ch){ $show_ch = explode("|",$show_ch); if($muweb['rankings_gm'] == 1){ if(!isset($_GET['op3'])){ if($show_ch[9] == 0 || $show_ch[9] == 32 || $show_ch[9] == 8){ $count++; $tr_color = ($count % 2) ? $tr_color_1 : $tr_color_2; switch ($show_ch[10]){ case 0: $show_ch[10] = "--"; break; }$ch_content .='<tr class="'.$tr_color.'">
<td>'.$count.'</td>
<td width="60"><span class="r_link"><a href="#" onClick="sub_page(\''.$muweb['servername'].'-Character-'.$show_ch[0].'.html\');">'.htmlentities(md5_decrypt($show_ch[1])).'</a></span></td>
<td>'.class_list($show_ch[2]).'</td>
<td>'.$show_ch[3].'[<span class="rankings_text_reset">'.$show_ch[4].'</span>]</td>
<td>'.CalculateStat($show_ch[5]).'</td>
<td>'.CalculateStat($show_ch[6]).'</td>
<td>'.CalculateStat($show_ch[7]).'</td>
<td>'.CalculateStat($show_ch[8]).'</td>
<td>'.CalculateStat($show_ch[10]).'</td>
</tr>'; } }else{ $class = clean_variable($_GET['op3']); if(($show_ch[9] == 0 || $show_ch[9] == 32 || $show_ch[9] == 8) && ($show_ch[2] == $class)){ $count++; $tr_color = ($count % 2) ? $tr_color_1 : $tr_color_2; switch ($show_ch[10]){ case 0: $show_ch[10] = "--"; break; }$ch_content .='<tr class="'.$tr_color.'">
<td>'.$count.'</td>
<td width="60"><span class="r_link"><a href="#" onClick="sub_page(\''.$muweb['servername'].'-Character-'.$show_ch[0].'.html\');">'.htmlentities(md5_decrypt($show_ch[1])).'</a></span></td>
<td>'.class_list($show_ch[2]).'</td>
<td>'.$show_ch[3].'[<span class="rankings_text_reset">'.$show_ch[4].'</span>]</td>
<td>'.CalculateStat($show_ch[5]).'</td>
<td>'.CalculateStat($show_ch[6]).'</td>
<td>'.CalculateStat($show_ch[7]).'</td>
<td>'.CalculateStat($show_ch[8]).'</td>
<td>'.CalculateStat($show_ch[10]).'</td>
</tr>'; } } }else{ if(!isset($_GET['op3'])){ if($show_ch[9] == 0){ $count++; $tr_color = ($count % 2) ? $tr_color_1 : $tr_color_2; switch ($show_ch[10]){ case 0: $show_ch[10] = "--"; break; } $ch_content .='<tr class="'.$tr_color.'">
<td>'.$count.'</td>
<td width="60"><span class="r_link"><a href="#" onClick="sub_page(\''.$muweb['servername'].'-Character-'.$show_ch[0].'.html\');">'.htmlentities(md5_decrypt($show_ch[1])).'</a></span></td>
<td>'.class_list($show_ch[2]).'</td>
<td>'.$show_ch[3].'[<span class="rankings_text_reset">'.$show_ch[4].'</span>]</td>
<td>'.CalculateStat($show_ch[5]).'</td>
<td>'.CalculateStat($show_ch[6]).'</td>
<td>'.CalculateStat($show_ch[7]).'</td>
<td>'.CalculateStat($show_ch[8]).'</td>
<td>'.CalculateStat($show_ch[10]).'</td>
</tr>'; } }else{ $class = clean_variable($_GET['op3']); if(($show_ch[9] == 0) && ($show_ch[2] == $class)){ $count++; $tr_color = ($count % 2) ? $tr_color_1 : $tr_color_2; switch ($show_ch[10]){ case 0: $show_ch[10] = "--"; break; }$ch_content .='<tr class="'.$tr_color.'">
<td>'.$count.'</td>
<td width="60"><span class="r_link"><a href="#" onClick="sub_page(\''.$muweb['servername'].'-Character-'.$show_ch[0].'.html\');">'.htmlentities(md5_decrypt($show_ch[1])).'</a></span></td>
<td>'.class_list($show_ch[2]).'</td>
<td>'.$show_ch[3].'[<span class="rankings_text_reset">'.$show_ch[4].'</span>]</td>
<td>'.CalculateStat($show_ch[5]).'</td>
<td>'.CalculateStat($show_ch[6]).'</td>
<td>'.CalculateStat($show_ch[7]).'</td>
<td>'.CalculateStat($show_ch[8]).'</td>
<td>'.CalculateStat($show_ch[10]).'</td>
</tr>'; } } } } $ch_content .='<tr><td colspan="9" align="right"><span class="full_author">Last Update '.decode_time($time_r,time(),'long','1 second').' ago</span></td></tr></table>
<table width="530" align="center" border="0" cellspacing="2" cellpadding="0">
<tr><td align="left" width="20">Class</td>
<td align="left"><form name="change_class">
<select class="field" onChange="MM_jumpMenu(\'parent\',this,0)">
<option value="'.$muweb['servername'].'-Rankings-Characters.html">-Select One-</option>'; $c = class_list('list','long'); foreach ($c as $cc => $v) { $ch_content .='<option value="'.$muweb['servername'].'-Rankings-Characters-'.$cc.'.html">'.$v.'</option>'; } $ch_content .='

</select>
</form>
</td></tr>
</table>';
echo html($ch_content); }
break;
case "Guilds": if(read_module(202) == 0){ echo locked('For the moment this page is closed...Please try again latter.','370'); }else{ $r_file = file("sys_/muweb_db/".top_guilds_tDB.""); $guild_content ='<br>
<table width="530" align="center" border="0" cellspacing="0" cellpadding="0" class="rankings-table">
<thead><tr><td>#</td><td align="left">Name</td><td align="left">Owner</td><td align="center">Score</td><td align="center">Members</td><td align="center">Logo</td></tr></thead>'; $count=0; $tr_color_2 = "even"; $tr_color_1 = ""; foreach ($r_file as $show_ch){ $count++; $tr_color = ($count % 2) ? $tr_color_1 : $tr_color_2; $show_ch = explode("|",$show_ch); $guild_content .='<tr class="'.$tr_color.'">
<td>'.$count.'</td>
<td align="left">'.md5_decrypt($show_ch[0]).'</td>
<td align="left"><span class="r_link"><a href="#" onClick="sub_page(\''.$muweb['servername'].'-Character-'.$show_ch[4].'.html\');">'.htmlentities(md5_decrypt($show_ch[3])).'</a></td>
<td align="center">'.$show_ch[2].'</td>
<td align="center">'.$show_ch[5].'</td>
<td align="center"><img src="GuildMark-'.$show_ch[1].'.png" width="20" height="20"></td>'; } $guild_content .='<tr><td colspan="9" align="right"><span class="full_author">Last Update '.decode_time($time_r,time(),'long','1 second').' ago</span></td></tr></table>'; echo html($guild_content); }
break;
case "Toponline":
$online_content ='<br>
<table width="530" align="center" border="0" cellspacing="0" cellpadding="0" class="rankings-table">
<thead>
<tr>
<td>#</td>
<td align="left">Name</td>
<td align="left">Hours Online</td>
</tr></thead>';
$count=0;
$tr_color_2 = "even";
$tr_color_1 = "";

global $db_primary,$muweb;
$online = $db_primary->Execute("SELECT memb___id, OnlineHours FROM MEMB_STAT WHERE OnlineHours > 0 ORDER BY OnlineHours DESC");
while($on = $online->fetchrow()){
$count++;
$tr_color = ($count % 2) ? $tr_color_1 : $tr_color_2;
$online_content .='<tr class="'.$tr_color.'">
<td>'.$count.'</td>
<td align="left">'.$on[0].'</td>
<td align="left">'.$on[1].'</td>
</tr>';

}
$online_content .='</table>';
echo html($online_content);
break;
case "Topkiller":
$killer_content ='<br>
<table width="530" align="center" border="0" cellspacing="0" cellpadding="0" class="rankings-table">
<thead>
<tr>
<td>#</td>
<td align="left">Name</td>
<td align="left">PK Count</td>
</tr></thead>';
$count=0;
$tr_color_2 = "even";
$tr_color_1 = "";

global $db_primary,$muweb;
$top_killers = $db_primary->Execute("SELECT name, PkCount FROM Character WHERE PkCount > 0 ORDER BY PkCount DESC");
while($killers = $top_killers->fetchrow()){
$count++;
$tr_color = ($count % 2) ? $tr_color_1 : $tr_color_2;
$killer_content .='<tr class="'.$tr_color.'">
<td>'.$count.'</td>
<td align="left">'.$killers[0].'</td>
<td align="left">'.$killers[1].'</td>
</tr>';

}
$killer_content .='</table>';
echo html($killer_content);
break;
} } ?>
 
how to fix this problem?any one?


REQUIRED APACHE MODS

Code:

Code:
1) Enable MOD REWRITE - Go to (c:\xampp\apache\conf\httpd.conf) , open it, find #LoadModule rewrite_module modules/mod_rewrite.so, delete # from the front save and restart the webserver.

Code:
2) GD Image Library - Can be enabled from (c:\xampp\apache\bin\php.ini, search for ;extension=php_gd2.dll, delete ; from the front close document and save

Code:
3) Zend Optimizer - Can be enabled from php.ini (in xampp\apache\bin\php.ini), search for zend.ze1_compatibility_mode = Off, change Off to On (that means delete "Off" and write "On")

Code:
4) Search zend_optimizer.enable_loader = 0, change 0 to 1, close document and save. (Can be enabled from php.ini (in c:\xampp\apache\bin\php.ini)

Code:
5) Zlib - Can be enabled from (c:\xampp\apache\bin\php.ini), search for ;extension=php_zlib_filter.dll, delete ; from the front close document and save.

Code:
6) Mssql - Can be enabled from (c:\xampp\apache\bin\php.ini), search for ;extension=php_mssql.dll, delete ; from the front close docume

Code:
7) Mod_Rewrite - In xampp this mod is already enabled, in others webservers you can enable it from httpd.conf (If it still wont work then check: (c:\xampp\apache\conf\httpd.conf) Search for #LoadModule rewrite_module modules/mod_rewrite.so and remove # from the front.


8)

Now open your browser and go to: <example: http://yourservername/install.php>

8.1)

* Connecting To Databases

8.2)

* Checking,Altering Tables

8.3)

* Password Encryption Type

8.4)

* + NO MD5

* + MD5 ENCRYPTION - Make sure you have complete Step 1. from the top of INSTALL NOTES

8.5)

* Create Administrator Account

8.6)

* Install Finished


NOW DELETE INSTALL.PHP FROM: <c:\xampp\htdocs\install.php>
ALSO DELETE THE FOLDER NAMED "PhpMyAdmin" You can find this folder at: <c:\xampp>

PS: YOU CAN ACCESS THE ADMIN CONTROL PANEL IF YOU LOGIN LIKE A USER (BUT LOGIN WITH THE USERNAME & PASSWORD YOU DID INPUT. LOOK AT 8.5)

example1pc4.jpg
 
When players Select Server Characters Stay online in web. whY? can be fixed?​
 
Is it safe to use? Cuz whenever I use muweb, i get hacked ^^
 
Is it safe to use? Cuz whenever I use muweb, i get hacked ^^

with xampp is easy to hacked. trust me. only luckies cannot hacked. then hackers not find yet. Xampp not safely.
 
  • Like
Reactions: netzo
Well, I've been using MUCORE website, didn't get hacked ;)
 
How to remove Vote pop up?
even i disable already but still pop up

Thank you
 
Last edited: