[Release] MuWeb 0.9 Decoded

Някой може ли да обясни по подробно тази стъпка:
+ Run the next code in SQL QUERY ANALYZER using master database:
---------------------------------------------------------------
exec sp_addextendedproc 'XP_MD5_EncodeKeyVal', 'WZ_MD5_MOD.dll'
---------------------------------------------------------------
Аз включвам SQL QUERY ANALYZER, въвеждам паролата на SQL сървъра, и ми излиза един прозорец(автоматично), в който въвеждам кода "exec sp_addextendedproc 'XP_MD5_EncodeKeyVal', 'WZ_MD5_MOD.dll'" и натискам "чавката" отгоре, след което ми връща "The command(s) completed successfully.", след това натискам стрелката до "чавката" и ми връща "Server: Msg 2714, Level 16, State 7, Procedure sp_addextendedproc, Line 26
There is already an object named 'XP_MD5_EncodeKeyVal' in the database.".
Та, въпроса ми е, изобщо така ли се прави или грешката ми е от някаде другаде, защото стигам до инсталацията на сайта, и ето какво излиза, а мисля, че съм направил всичко както трябва:
 
hello,i have one problem with this web..When dark lord make reset all his stats reset to 25(as i set in formula) but command remains same..Someone knows how i can fix this problem?
 
ОТ КАДЕ СЕ ЕДИТВА МЕНЮТО ?
 
Last edited:
Error 500, ми дава като стартирам инсталл.пхп :/
 
stats add не бачка ....
Кирилизирано от Protect
Нарушение от точка 1 от правилата на форума,втори път води до Infraction.
 
Last edited by a moderator:
хора при инсталла дето се прави админ акаунт ми дава There was a problem with creating administrator account.
 
хора при инсталла дето се прави админ акаунт ми дава There was a problem with creating administrator account.

md5?
 
Enable MOD REWRITE - Go to apache\conf\httpd.conf , open it, find #LoadModule rewrite_module modules/mod_rewrite.so, delete # from the front save and restart webserver

Wait for Thanks :)
 
Шефе ( DarkMaster ) xD, би ли направил stats add да работи и с internet explorer ?
 
Шефе ( DarkMaster ) xD, би ли направил stats add да работи и с internet explorer ?

по-скоро трябва да си направиш интернет екслорера да работи със сайта, явно има някакви секюрити-та включени..
 
как да настроя статс адд на 65535?
Едит: и как да оправя ГеймМастърс да го ъпдейтва секи път като се отвори табличката?
 
Last edited:
мастер айде помогни, нали ти си го декодирал xD
 
Някой може ли да обясни по подробно тази стъпка:

Аз включвам SQL QUERY ANALYZER, въвеждам паролата на SQL сървъра, и ми излиза един прозорец(автоматично), в който въвеждам кода "exec sp_addextendedproc 'XP_MD5_EncodeKeyVal', 'WZ_MD5_MOD.dll'" и натискам "чавката" отгоре, след което ми връща "The command(s) completed successfully.", след това натискам стрелката до "чавката" и ми връща "Server: Msg 2714, Level 16, State 7, Procedure sp_addextendedproc, Line 26
There is already an object named 'XP_MD5_EncodeKeyVal' in the database.".
Та, въпроса ми е, изобщо така ли се прави или грешката ми е от някаде другаде, защото стигам до инсталацията на сайта, и ето какво излиза, а мисля, че съм направил всичко както трябва:
сменяй версията на хампа;)
 
как да настроя статс адд на 65535?
Едит: и как да оправя ГеймМастърс да го ъпдейтва секи път като се отвори табличката?
65k support:
Rankings.php
PHP:
<?
function Show65k($stat_value){if ($stat_value <  0){$stat_value = $stat_value  + 65536;}return $stat_value;}
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,leader
ship  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>
             </ul></td></tr></table></td>
             </table>'; echo html($rankings_content); $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>'.$show_ch[5].'</td>

                     <td>'.$show_ch[6].'</td>
                     <td>'.$show_ch[7].'</td>
                     <td>'.$show_ch[8].'</td>
                     <td>'.$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>'.$show_ch[5].'</td>

                     <td>'.$show_ch[6].'</td>
                     <td>'.$show_ch[7].'</td>
                     <td>'.$show_ch[8].'</td>
                     <td>'.$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>'.Show65k($show_ch[5]).'</td>
                     <td>'.Show65k($show_ch[6]).'</td>

                     <td>'.Show65k($show_ch[7]).'</td>
                     <td>'.Show65k($show_ch[8]).'</td>
                     <td>'.Show65k($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>'.$show_ch[5].'</td>
                     <td>'.$show_ch[6].'</td>

                     <td>'.$show_ch[7].'</td>
                     <td>'.$show_ch[8].'</td>
                     <td>'.$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; } } ?>
Character.php
PHP:
<?
function Show65k($stat_value){if ($stat_value <  0){$stat_value = $stat_value  + 65536;}return $stat_value;}
if(read_module(18)  == 0){ echo locked('For the moment this page is closed...Please try  again latter.','370'); }else{ if($_GET['op2'] == NULL){  header('Location: index.html'); } $c_file =  file("sys_/muweb_db/".character_tDB.""); foreach ($c_file as $c_info){  $id = clean_variable($_GET['op2']); $c_info =  explode("|(*./)|",$c_info); if($c_info[0] == $id){ $found=1; break; } }  $req = 5; if($found == 1){ if($c_info[11] < $req){ $new_req =  $c_info[11]+1; $new_ranking =  "$c_info[0]|(*./)|$c_info[1]|(*./)|$c_info[2]|(*./)|$c_info[3]|(*./)|$c_info[4]|(*./)|$c_info[5]|(*./)|$c_info[6]|(*./)|$c_info[7]|(*./)|$c_info[8]|(*./)|$c_info[9]|(*./)|$c_info[10]|(*./)|$new_req|(*./)|$c_info[12]|(*./)|$c_info[13]|(*./)|$c_info[14]|(*./)|$c_info[15]|(*./)|$c_info[16]|(*./)|$c_info[17]|(*./)|$c_info[18]|(*./)|\n";  $old_db = file("sys_/muweb_db/".character_tDB.""); $new_db =  fopen("sys_/muweb_db/".character_tDB."", "w"); foreach($old_db as  $old_db_line){ $old_db_arr = explode("|(*./)|", $old_db_line);  if($c_info[0] != $old_db_arr[0]){ fwrite($new_db,"$old_db_line"); }else{  fwrite($new_db,$new_ranking); } } fclose($new_db); switch ($c_info[2]){  case 0: case 1: case 2: $cls='01'; break; case 16: case 17: case 18:  $cls='02'; break; case 32: case 33: case 34: $cls='03'; break; case 48:  case 49: $cls='04'; break; case 64: case 65: $cls='05'; break; case 80:  case 81: case 82: $cls='06'; break; } switch ($c_info[10]){ case 0:  $c_info[10] = "N/A"; break; } $character_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>Character ::  '.htmlentities(md5_decrypt($c_info[1])).'</em></td></tr>
            </table></td></tr></table>
             <table width="530" align="center" border="0" cellspacing="0"  cellpadding="0">
            <tr><td width="150"  rowspan="11" valign="top"><br><img  src="'.$muweb['images'].'/'.$cls.'.jpg" width="155"  height"147"></td>
            <td width="50"  rowspan="11"> </td>
            <td  class="full_title_2">Class ::  '.class_list($c_info[2],'long').'</td>
            </tr>

            <tr>
              <td  class="full_title_2">Level :: <font  color="#ff9900">'.$c_info[3].'</font> with <font  color="#ff0000">'.$c_info[4].'</font> resets</td>
             </tr>
            <tr>
               <td> </td>

            </tr>
             <tr>
              <td>
              <table  width="330" align="center" border="0" cellspacing="0" cellpadding="0"  class="rankings-table">
              <tr><thead>
               <td>Strength</td>
               <td>Agility</td>
               <td>Vitality</td>

               <td>Energy</td
              <td>Command</td
               </thead></tr>
              <tr  class="even"><td>'.Show65k($c_info[5]).'</td>
               <td>'.Show65k($c_info[6]).'</td>
               <td>'.Show65k($c_info[7]).'</td>
               <td>'.Show65k($c_info[8]).'</td>
               <td>'.Show65k($c_info[10]).'</td></tr>

               </table>
              </td>
             </tr>
            <tr>
               <td> </td>
            </tr>
             <tr>
              <td class="full_title_3">Life <img  src="'.$muweb['images'].'/bar_life.gif" height="8" width="'.(substr(100 *  $c_info[14] / $c_info[13], 0, 5)*1).'">  '.$c_info[14].'/'.$c_info[13].'</td>

             </tr>
            <tr>
              <td  class="full_title_3">Mana <img  src="'.$muweb['images'].'/bar_mana.gif" height="8" width="'.(substr(100 *  $c_info[16] / $c_info[15], 0, 5)*1).'">  '.$c_info[16].'/'.$c_info[15].'</td>
            </tr>
            <tr>
              <td> </td>
             </tr>

            <tr>
               <td><em>Last seen in  <b>'.decode_map($c_info[18]).'</b>, about  '.decode_time($c_info[12],time(),'long','1 second').'  ago...</em></td>
            </tr>
             <tr>
              <td> </td>
             </tr>
            <tr>

               <td><span class="r_link"><a href="#"  onClick="sub_page(\''.$muweb['servername'].'-Profile-'.$c_info[17].'.html\');">Click  here to view his real life profile</a></span></td>
            </tr>
            <tr>
               <td> </td>
            </tr>
             <tr><td colspan="3" align="right"><span  class="full_author">Last Update  '.decode_time($c_info[12],time(),'long','1 second').'  ago</span></td></tr>
            </table>';  }else{ global $db_primary; $g_r = $db_primary->Execute("Select  mu_id,name,class,clevel,resets,strength,dexterity,vitality,energy,ctlcode,leader
ship,life,maxlife,mana,maxmana,accountid,mapnumber  from character where mu_id=?",array($id)); if(!$g_r){ $g_r =  $db_primary->Execute("Select  mu_id,name,class,clevel,resets,strength,dexterity,vitality,energy,ctlcode,life,m
axlife,mana,maxmana,accountid,mapnumber  from character where mu_id=?",array($id)); $no_command = 1; } $s_r =  $g_r->fetchrow(); if($s_r[0] == NULL){ header('Location:  index.html'); die('redirecting...'); } 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|(*./)|$new_req|(*./)|".time()."|(*./)|$s_r[10]|(*./)|$s_r[11]|(*./)|$s_r[12]|(*./)|$s_r[13]|(*./)|".md5($s_r[14])."|(*./)|$s_r[15]|(*./)|\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]|(*./)|$new_req|(*./)|".time()."|(*./)|$s_r[11]|(*./)|$s_r[12]|(*./)|$s_r[13]|(*./)|$s_r[14]|(*./)|".md5($s_r[15])."|(*./)|$s_r[16]|(*./)|\n";  } $new_req = 0; $old_db = file("sys_/muweb_db/".character_tDB."");  $new_db = fopen("sys_/muweb_db/".character_tDB."", "w"); foreach($old_db  as $old_db_line){ $old_db_arr = explode("|(*./)|", $old_db_line);  if($c_info[0] != $old_db_arr[0]){ fwrite($new_db,"$old_db_line"); }else{  fwrite($new_db,$new_ranking); } } fclose($new_db); $character_content =  'Updating info about this character...Please Wait<meta  http-equiv="refresh" content="2;URL=">'; } }else{ global $db_primary;  $g_r = $db_primary->Execute("Select  mu_id,name,class,clevel,resets,strength,dexterity,vitality,energy,ctlcode,leader
ship,life,maxlife,mana,maxmana,accountid,mapnumber  from character where mu_id=?",array($id)); if(!$g_r){ $g_r =  $db_primary->Execute("Select  mu_id,name,class,clevel,resets,strength,dexterity,vitality,energy,ctlcode,life,m
axlife,mana,maxmana,accountid,mapnumber  from character where mu_id=?",array($id)); $no_command = 1; } $s_r =  $g_r->fetchrow(); if($s_r[0] == NULL){ header('Location:  index.html'); die('redirecting...'); } 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|(*./)|0|(*./)|".time()."|(*./)|$s_r[10]|(*./)|$s_r[11]|(*./)|$s_r[12]|(*./)|$s_r[13]|(*./)|".md5($s_r[14])."|(*./)|$s_r[15]|(*./)|\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]|(*./)|0|(*./)|".time()."|(*./)|$s_r[11]|(*./)|$s_r[12]|(*./)|$s_r[13]|(*./)|$s_r[14]|(*./)|".md5($s_r[15])."|(*./)|$s_r[16]|(*./)|\n";  } $new_db = fopen("sys_/muweb_db/".character_tDB."", a);  fwrite($new_db,$new_ranking); fclose($new_db); $character_content =  'Collecting info about this character...Please Wait<meta  http-equiv="refresh" content="2;URL=">'; } echo  html($character_content); } ?>
Characters.php
PHP:
<?
function Show65k($stat_value){if ($stat_value <  0){$stat_value = $stat_value  + 65536;}return $stat_value;}
if($_SESSION['user_login']  != 'ok'){ header('Location: index.html'); exit(); }else{  if(read_module(3) == 0){ echo locked('For the moment this page is  closed...Please try again latter.','370'); }else{ global  $db_primary,$db_secondary; $char = '
        <table width="530"  align="center" border="0" cellspacing="0" cellpadding="0">
         <tr><td width="200">
        <table width="200"  align="center" border="0" cellspacing="0" cellpadding="0">
             <tr><td align="left"  class="full_title"><em>Character  Options</em></td></tr>
            </table>
            <table width="200" align="center" border="0"  cellspacing="2" cellpadding="0">
            <tr><td  align="left"><ul>
             <li><a  href="'.$muweb['servername'].'-Characters-Reset.html">'._Reset_Character.'</a></li>
             <li><a  href="'.$muweb['servername'].'-Characters-AddStats.html">'._Add_Stats.'</a></li>
             <li><a  href="'.$muweb['servername'].'-Characters-Clear.html">'._Clear_PK_Status.'</a></li>
             <li><a  href="'.$muweb['servername'].'-Characters-Warp.html">'._Warp_Maps.'</a></li>
             <li><a  href="'.$muweb['servername'].'-Characters-Info.html">'._Characters_Info.'</a></li>
             </td></tr>
             </table></td>
            <td align="center"  valign="top"  width="390"><em>'.htmlentities(display_m_c(2)).'</em></td></tr>
            </table>'; echo html($char); $sub_page = $_GET['op2'];  $sub_page = clean_variable($sub_page); switch (@$_GET['op2']){ case  "Reset": if(read_module(31) == 0){ echo locked('For the moment this page  is closed...Please try again latter.','370'); }else{ $t__R =  file("sys_/muweb_db/".cpanel_tDB.""); foreach ($t__R as $TR){ $TR =  explode("|",$TR); if($TR[0] == 14464){ break; } } if(isset($_GET['op3'])  && check_c($_GET['op3'],$_SESSION['user_login_name']) == true){   $ss = $db_secondary->Execute("Select connectstat from memb_stat  where memb___id=?",array(clean_variable($_SESSION['user_login_name'])));  if($ss){ $ss = $ss->fetchrow(); $ss[0] == 1 ? $ss_s = true : $ss_s =  false; }else{ $error=1; } $get_v = $db_primary->Execute("Select  clevel,resets,money,leveluppoint from character where accountid=? and  mu_id=?",array(clean_variable($_SESSION['user_login_name']),clean_variable($_GET['op3'])));  if($get_v){ $dat = $get_v->fetchrow(); $dat[0] >= $TR[1] ? $h_l =  true : $h_l=false; $dat[1] >= $TR[8] ? $e_l = true : $e_l=false;  $dat[2] >= $TR[2] ? $h_z = true : $h_z=false; }else{ $error=1; }  if($ss_s == true || $h_l == false || $e_l == true || $h_z == false){  echo alert('Some requirements are not respected','warning'); $error=1; }  if($error!=1){ $ex_l = $TR[3] * ($dat[1]+1); $nr_l = ($TR[3] +  $dat[3]); if($TR[5] == 1 && $TR[4] == 1){ $j_43_k = "Update  character set  [strength]='25',[dexterity]='25',[vitality]='25',[energy]='25',[clevel]='1',[experience]='0',[money]=?,[LevelUpPoint]='$ex_l',[resets]=?  where mu_id=?"; } elseif ($TR[5] == 0 && $TR[4] == 1){ $j_43_k =  "Update character set  [clevel]='1',[experience]='0',[money]=?,[LevelUpPoint]='$ex_l',[resets]=?  where mu_id=?"; } elseif ($TR[5] == 0 && $TR[4] == 0){ $j_43_k =  "Update character set  [clevel]='1',[experience]='0',[money]=?,[LevelUpPoint]='$nr_l',[resets]=?  where mu_id=?"; } elseif ($TR[5] == 1 && $TR[4] == 0){ $j_43_k =  "Update character set  [strength]='25',[dexterity]='25',[vitality]='25',[energy]='25',[clevel]='1',[experience]='0',[money]=?,[LevelUpPoint]='$nr_l',[resets]=?  where mu_id=?"; } $rr_t_f_s =  $db_primary->Execute($j_43_k,array(($dat[2]-$TR[2]),($dat[1]+1),clean_variable($_GET['op3'])));  if($TR[6] == 1){ $rr_t_f_s = $db_primary->Execute("UPDATE character  Set [inventory]=CONVERT(varbinary(1080), null) Where  mu_id=?",array(clean_variable($_GET['op3']))); } if($TR[7] == 1){  $rr_t_f_s = $db_primary->Execute("UPDATE character Set  [magiclist]=CONVERT(varbinary(180), null) Where  mu_id=?",array(clean_variable($_GET['op3']))); } echo alert('Character  have been successfully reseted'); } }else{ if(isset($_GET['op3'])){ echo  alert('There was a problem with your request','warning'); } } $res_con  .= '<br><br><table class="sort-table" id="table-1"  width="500" border="0" cellspacing="0" cellpadding="0"  align="center">
                           <thead>
                              <tr>
                               <td align="left">#</td>
                               <td align="left">Name</td>
                               <td align="center">Level '.$TR[1].'</td>
                               <td align="center">'.number_format($TR[2]).'  Zen</td>
                              <td  align="center">Reset Limit '.$TR[8].'</td>
                               <td align="center">Offline</td>
                               <td align="center">RESET</td>
                              </tr>
                            </thead>'; $count = 0; $tr_color_2 = "even"; $tr_color_1 = "";  $take_my_chr = $db_primary->Execute("Select  name,resets,clevel,money,mu_id from character where  AccountID=?",array(clean_variable($_SESSION['user_login_name'])));  $take_my_offline = $db_secondary->Execute("Select connectstat from  memb_stat where  memb___id=?",array(clean_variable($_SESSION['user_login_name'])));  $take_my_offline = $take_my_offline->fetchrow();  foreach  ($take_my_chr->GetArray() as $HHFW => $chr_zz) { $count++;  $tr_color = ($count % 2) ? $tr_color_1 : $tr_color_2;  $take_my_offline[0] == 0 ? $o="<img  src=\"".$muweb['images']."/allow.gif\">" : $o = "<img  src=\"".$muweb['images']."/deny.gif\">"; $chr_zz[2] >= $TR[1] ? $r  = "<img src=\"".$muweb['images']."/allow.gif\">" : $r="<img  src=\"".$muweb['images']."/deny.gif\">"; $chr_zz[3] >= $TR[2] ? $z  = "<img src=\"".$muweb['images']."/allow.gif\">" : $z="<img  src=\"".$muweb['images']."/deny.gif\">"; $chr_zz[1] < $TR[8] ? $rl  = "<img src=\"".$muweb['images']."/allow.gif\">" : $rl="<img  src=\"".$muweb['images']."/deny.gif\">"; $take_my_offline[0] == 0 ?  $on=1 : $on=0; $chr_zz[2] >= $TR[1] ? $level=1 : $level=0; $chr_zz[3]  >= $TR[2] ? $zen=1 : $zen=0; $chr_zz[1] < $TR[8] ? $limit=1 :  $limit=0; if($on==1 && $level==1 && $zen==1 &&  $limit==1){ $reset = '<span class="medium_link"><a href="java  script:void(0)" OnClick="ask_url(\'Are you sure?\n - Reset character  '.htmlentities($chr_zz[0]).'\',\''.$muweb['servername'].'-Characters-Reset-'.$chr_zz[4].'.html\')">'._RESET_NOW.'</a></span>';  }else{ $reset = "N/A"; } $res_con .='<tbody><tr  class="'.$tr_color.'">
                    <td  width="3">'.$count.'</td>
                    <td align="left"  width="50">'.htmlentities($chr_zz[0]).'</td>
                    <td  align="center" width="50">'.$r.'</td>
                    <td  align="center" width="100">'.$z.'</td>
                    <td  align="center" width="100">'.$rl.'</td>
                    <td  align="center" width="40">'.$o.'</td>
                    <td  align="center" width="80">'.$reset.'</td>
                     </tr></tbody>'; } $res_con .='</table><br>'; }  break; case "AddStats": if(read_module(32) == 0){ echo locked('For the  moment this page is closed...Please try again latter.','370'); }else{  if(isset($_GET['op3']) &&  check_c($_GET['op3'],$_SESSION['user_login_name']) == true){  if(isset($_POST['add'])){ $lvlup = clean_variable($_POST['str']) +  clean_variable($_POST['agi']) + clean_variable($_POST['vit']) +  clean_variable($_POST['eng']); if (isset($_POST['cmd'])){ $lvlup +=  clean_variable($_POST['cmd']); } $ss = $db_secondary->Execute("Select  connectstat from memb_stat where  memb___id=?",array(clean_variable($_SESSION['user_login_name'])));  if($ss){ $ss = $ss->fetchrow(); $ss[0] == 1 ? $ss_s = true : $ss_s =  false; }else{ $error=1; } $get_v = $db_primary->Execute("Select  leveluppoint,strength,dexterity,vitality,energy,leadership from  character where accountid=? and  mu_id=?",array(clean_variable($_SESSION['user_login_name']),clean_variable($_GET['op3'])));  if($get_v){ $dat = $get_v->fetchrow(); $total_left = $dat[0]-$lvlup;  $dat[0] <= 0 ? $no_p = true : $no_p=false; $total_left < 0 ?  $no_p = true : $no_p=false; }else{ $error=1; } if(isset($_POST['cmd'])){  if ($_POST['str'] < 0 || $_POST['dex'] < 0 || $_POST['ener'] <  0 || $_POST['vit'] < 0 || $_POST['cmd'] < 0) { $null_points =  true; } }else{ if ($_POST['str'] < 0 || $_POST['dex'] < 0 ||  $_POST['ener'] < 0 || $_POST['vit'] < 0 ) { $null_points = true; }  } if($ss_s == true || $no_p == true || $null_points == true){ echo  alert('Some requirements are not respected','warning'); $error=1; }  if($error!=1){ if(isset($_POST['cmd'])){ $update_stats =  $db_primary->Execute("Update character set  strength=?,dexterity=?,vitality=?,energy=?,leadership=?,leveluppoint=?  where mu_id=?"  ,array(clean_variable(Show65k($dat[1])+$_POST['str']),clean_variable(Show65k($dat[2])+$_POST['agi']),clean_variable(Show65k($dat[3])+$_POST['vit']),clean_variable(Show65k($dat[4])+$_POST['eng']),clean_variable(Show65k($dat[5])+$_POST['cmd']),$total_left,clean_variable($_GET['op3'])));  }else{ $update_stats = $db_primary->Execute("Update character set  strength=?,dexterity=?,vitality=?,energy=?,leveluppoint=? where mu_id=?"   ,array(clean_variable(Show65k($dat[1])+$_POST['str']),clean_variable(Show65k($dat[2])+$_POST['agi']),clean_variable(Show65k($dat[3])+$_POST['vit']),clean_variable(Show65k($dat[4])+$_POST['eng']),$total_left,clean_variable($_GET['op3'])));  } if($update_stats){ echo alert('Points successfully added','success');  }else{ echo alert('Some requirements are not respected','warning'); } }  } $no_command = 0; $take_my_pp = $db_primary->Execute("Select  class,strength,dexterity,vitality,energy,leadership,leveluppoint,name  from character where mu_id=?",array(clean_variable($_GET['op3'])));  if(!$take_my_pp){ $take_my_pp = $db_primary->Execute("Select  class,strength,dexterity,vitality,energy,clevel,leveluppoint,name from  character where mu_id=?",array(clean_variable($_GET['op3'])));  $no_command = 1; } if($take_my_pp){ $some_pp =  $take_my_pp->fetchrow(); } $res_con .='<br><table  class="sort-table" id="table-1" width="250" border="0" cellspacing="0"  cellpadding="0" align="center">
                          <thead><tr><td align="center" colspan="2">Add Stats ::  '.htmlentities($some_pp[7]).'</td></tr></thead>
                          <tbody><tr><td class="even"><form action=""  name="add_stats" method="POST">
                         <table width="250"  border="0" cellspacing="0" cellpadding="0" align="center">
                          <tr><td width="125" align="center" colspan="2">Level up  points '.number_format($some_pp[6]).'<input type="hidden"  name="add"></td></tr>
                         <tr><td  width="125" align="right">Strength  ['.number_format(Show65k($some_pp[1])).']</td><td  width="125"><input type="text" class="field" name="str"  size="10"></td></tr>
                         <tr><td  width="125" align="right">Agility  ['.number_format(Show65k($some_pp[2])).']</td><td  width="125"><input type="text" class="field" name="agi"  size="10"></td></tr>
                         <tr><td  width="125" align="right">Vitality  ['.number_format(Show65k($some_pp[3])).']</td><td  width="125"><input type="text" class="field" name="vit"  size="10"></td></tr>
                         <tr><td  width="125" align="right">Energy  ['.number_format(Show65k($some_pp[4])).']</td><td  width="125"><input type="text" class="field" name="eng"  size="10"></td></tr>'; if($some_pp[0] == 64 ||  $some_pp[0] == 65){ if($no_command != 1){ $res_con .='<tr><td  width="125" align="right">Command  ['.number_format(Show65k($some_pp[5])).']</td><td  width="125"><input type="text" class="field" name="cmd"  size="10"></td></tr>'; } } $res_con  .='</td></tr></table></form><table  align="center" border="0" cellspacing="0"  cellpadding="0"><tr><td align="right"><br><div  id="add_content"><input type="button" class="button"  value="'._Add_Points.'"  onclick="send_data(\'add_stats\',\'add_content\',\'Please  wait...\',\'130\')"></div><br></td></tr></table></tbody></table>';  }else{ if(isset($_GET['op3'])){ echo alert('There was a problem with  your request','warning'); } } $t__R =  file("sys_/muweb_db/".cpanel_tDB.""); foreach ($t__R as $TR){ $TR =  explode("|",$TR); if($TR[0] == 14464){ break; } } $res_con .=  '<br><br><table class="sort-table" id="table-1"  width="500" border="0" cellspacing="0" cellpadding="0"  align="center">
                           <thead>
                              <tr>
                               <td align="left">#</td>
                               <td align="left">Name</td>
                               <td align="center">Level up points to add</td>
                               <td align="center">Offline</td>
                               <td align="center">ADD POINTS</td>
                             </tr>
                            </thead>'; $count = 0; $tr_color_2 = "even"; $tr_color_1 = "";  $take_my_chr = $db_primary->Execute("Select mu_id,leveluppoint,name  from character where  AccountID=?",array(clean_variable($_SESSION['user_login_name'])));  $take_my_offline = $db_secondary->Execute("Select connectstat from  memb_stat where  memb___id=?",array(clean_variable($_SESSION['user_login_name'])));  $take_my_offline = $take_my_offline->fetchrow();  foreach  ($take_my_chr->GetArray() as $HHFW => $chr_zz) { $count++;  $tr_color = ($count % 2) ? $tr_color_1 : $tr_color_2;  $take_my_offline[0] == 1 ? $o="<img  src=\"".$muweb['images']."/deny.gif\">" : $o = "<img  src=\"".$muweb['images']."/allow.gif\">"; $chr_zz[1] > 0 ? $p =  number_format($chr_zz[1]) : $p="<img  src=\"".$muweb['images']."/deny.gif\">"; $chr_zz[1] > 0 ? $error=0  : $error=1 ; $take_my_offline[0] == 0 ? $on=1 : $on=0; if($error!=1  && $on==1){ $a2d = '<span class="medium_link"><a  href="'.$muweb['servername'].'-Characters-AddStats-'.$chr_zz[0].'.html")">'._ADD_POINTS.'</a></span>';  }else{ $a2d = "N/A"; } $res_con .='<tbody><tr  class="'.$tr_color.'">
                    <td  width="3">'.$count.'</td>
                    <td align="left"  width="50">'.htmlentities($chr_zz[2]).'</td>
                    <td  align="center" >'.$p.'</td>
                    <td align="center"  width="40">'.$o.'</td>
                    <td align="center"  width="80">'.$a2d.'</td>
                    </tr></tbody>'; }  $res_con .='</table><br>'; } break; case "Clear":  if(read_module(33) == 0){ echo locked('For the moment this page is  closed...Please try again latter.','370'); }else{ $t__R =  file("sys_/muweb_db/".cpanel_tDB.""); foreach ($t__R as $TR){ $TR =  explode("|",$TR); if($TR[0] == 16240){ break; } } if(isset($_GET['op3'])  && check_c($_GET['op3'],$_SESSION['user_login_name']) == true){  $ss = $db_secondary->Execute("Select connectstat from memb_stat  where memb___id=?",array(clean_variable($_SESSION['user_login_name'])));  if($ss){ $ss = $ss->fetchrow(); $ss[0] == 1 ? $ss_s = true : $ss_s =  false; }else{ $error=1; } $get_v = $db_primary->Execute("Select  pklevel,money from character where accountid=? and  mu_id=?",array(clean_variable($_SESSION['user_login_name']),clean_variable($_GET['op3'])));  if($get_v){ $dat = $get_v->fetchrow(); $total_left_z =  $dat[1]-$TR[1]; $dat[0] <= 3 ? $no_p = true : $no_p=false;  $total_left_z < 0 ? $no_z = true : $no_z=false; }else{ $error=1; }  if($ss_s == true || $no_p == true || $no_z == true){ echo alert('Some  requirements are not respected','warning'); $error=1; } if($error!=1){  $s_p = $db_primary->Execute("Update character set  [pklevel]='3',[pkcount]='0',[pktime]='0',[money]=$total_left_z where  mu_id=?",array(clean_variable($_GET['op3']))); if($s_p){ echo alert('PK  Status successfully cleared','success'); }else{ echo alert('There was a  problem with execution','warning'); } } }else{ if(isset($_GET['op3'])){  echo alert('There was a problem with your request','warning'); } }  $res_con .= '<br><br><table class="sort-table"  id="table-1" width="500" border="0" cellspacing="0" cellpadding="0"  align="center">
                           <thead>
                              <tr>
                               <td align="left">#</td>
                               <td align="left">Name</td>
                               <td align="center">PK Status</td>
                               <td align="center">'.number_format($TR[1]).' Zen</td>
                              <td  align="center">Offline</td>
                               <td align="center">CLEAR PK</td>
                              </tr>
                           </thead>'; $count =  0; $tr_color_2 = "even"; $tr_color_1 = ""; $take_my_chr =  $db_primary->Execute("Select mu_id,name,pklevel,money from character  where AccountID=?",array(clean_variable($_SESSION['user_login_name'])));  $take_my_offline = $db_secondary->Execute("Select connectstat from  memb_stat where  memb___id=?",array(clean_variable($_SESSION['user_login_name'])));  $take_my_offline = $take_my_offline->fetchrow();  foreach  ($take_my_chr->GetArray() as $HHFW => $chr_zz) { $count++;  $tr_color = ($count % 2) ? $tr_color_1 : $tr_color_2;  $take_my_offline[0] == 1 ? $error=1 && $o="<img  src=\"".$muweb['images']."/deny.gif\">" : $o = "<img  src=\"".$muweb['images']."/allow.gif\">"; $chr_zz[2] > 3 ?  $p="<img src=\"".$muweb['images']."/allow.gif\">" : $p="<img  src=\"".$muweb['images']."/deny.gif\">"; $chr_zz[3] >= $TR[1] ?  $z="<img src=\"".$muweb['images']."/allow.gif\">" : $z="<img  src=\"".$muweb['images']."/deny.gif\">"; $take_my_offline[0] == 0 ?  $on=1 : $on=0; $chr_zz[2] > 3 ? $p_level=1 : $p_level=0; $chr_zz[3]  >= $TR[1] ? $zen=1 : $zen=0; if($on == 1 && $zen == 1  && $p_level == 1){ $a2d = '<span class="medium_link"><a  href="java script:void(0)" OnClick="ask_url(\'Are you  sure?\',\''.$muweb['servername'].'-Characters-Clear-'.$chr_zz[0].'.html\')">'._CLEAR_PK.'</a></span>';  }else{ $a2d = "N/A"; } $res_con .='<tbody><tr  class="'.$tr_color.'">
                    <td  width="3">'.$count.'</td>
                    <td align="left"  width="50">'.htmlentities($chr_zz[1]).'</td>
                    <td  align="center" width="80">'.$p.'</td>
                    <td  align="center">'.$z.'</td>
                    <td align="center"  width="40">'.$o.'</td>
                    <td align="center"  width="80">'.$a2d.'</td>
                    </tr></tbody>'; }  $res_con .='</table><br>'; } break; case "Warp":  if(read_module(34) == 0){ echo locked('For the moment this page is  closed...Please try again latter.','370'); }else{ $t__R =  file("sys_/muweb_db/".warpmaps_tDB.""); if(isset($_GET['op3'])  && check_c($_GET['op3'],$_SESSION['user_login_name']) == true){  if(isset($_POST['map_id'])){ $map_id = clean_variable($_POST['map_id']);  $map_count = 0; foreach ($t__R as $map_info){ $map_info =  explode("|",$map_info); if($map_info[0] == $map_id){ $map_count++;  break; } } $ss = $db_secondary->Execute("Select connectstat from  memb_stat where  memb___id=?",array(clean_variable($_SESSION['user_login_name'])));  if($ss){ $ss = $ss->fetchrow(); $ss[0] == 1 ? $ss_s = true : $ss_s =  false; }else{ $error=1; } $get_v = $db_primary->Execute("Select money  from character where accountid=? and  mu_id=?",array(clean_variable($_SESSION['user_login_name']),clean_variable($_GET['op3'])));  if($get_v){ $dat = $get_v->fetchrow(); $total_left_z =  $dat[0]-$map_info[5]; $total_left_z < 0 ? $no_z = true : $no_z=false;  }else{ $error=1; } if($no_z == true){ echo alert('Not enough zen to  warp','warning'); $error=1; } elseif($ss_s == true || $map_count <=  0){ echo alert('Some requirements are not respected','warning');  $error=1; } if($error != 1){ $up = $db_primary->Execute("Update  character set [Mapnumber]=?,[MapPosX]=?,[MapPosY]=?,[Money]=? where  [mu_id]=?",array($map_info[1],$map_info[3],$map_info[4],$total_left_z,clean_variable($_GET['op3'])));  if($up){ echo alert('Character successfully warped','success'); }else{  echo alert('There was a problem with execution','warning'); } } }  $get_name = $db_primary->Execute("Select name,mapnumber,money from  character where mu_id=?",array(clean_variable($_GET['op3']))); $get_name  = $get_name->fetchrow(); $c_warp = '<br><table  class="sort-table" id="table-1" width="250" border="0" cellspacing="0"  cellpadding="0" align="center">
                          <thead><tr><td align="center" colspan="2">Warp ::  '.htmlentities($get_name[0]).'</td></tr></thead>
                          <tbody><tr><td class="even"><form action=""  name="warp" method="POST">
                         <table width="250"  border="0" cellspacing="0" cellpadding="0" align="center">
                          <tr><td width="125" align="right"> </td><td  width="125"> </td></tr>
                         <tr><td  width="125" align="right">Curent Map</td><td  width="125">'.decode_map($get_name[1]).'</td></tr>
                          <tr><td width="125" align="right">Your  Zen</td><td  width="125">'.number_format($get_name[2]).'</td></tr>
                         <tr><td width="125" align="right">Warp  To</td><td width="125"><select name="map_id"  class="field">'; foreach ($t__R as $map){ $map = explode("|",$map);  $c_warp .='<option  value="'.$map[0].'">'.$map[2].'</option>'; } $c_warp  .='</select></td></tr>'; $c_warp  .='</td></tr></table></form><table  align="center" border="0" cellspacing="0"  cellpadding="0"><tr><td align="right"><br><div  id="warp_content"><input type="button" class="button"  value="'._Warp.'" onclick="send_data(\'warp\',\'warp_content\',\'Please  wait...\',\'130\')"></div><br></td></tr></table>
                     <table width="250" border="0" cellspacing="0"  cellpadding="0" align="center">
                     <tr><td  colspan="2" align="center"><b><em>Warp  Prices</em></b></td></tr>'; $count_m = 0;  $tr_color_2 = "even2"; $tr_color_1 = ""; foreach ($t__R as $map){ $map =  explode("|",$map); $count_m++; $tr_color_m = ($count_m % 2) ?  $tr_color_1 : $tr_color_2; $c_warp .='<tr  class="'.$tr_color_m.'"><td width="125"  align="right">'.$map[2].'</td><td  width="125">'.number_format($map[5]).' zen</td></tr>'; }  $c_warp .='</table></tbody></table>'; echo  html($c_warp); }else{ if(isset($_GET['op3'])){ echo alert('There was a  problem with your request','warning'); } } $res_con .=  '<br><br><table class="sort-table" id="table-1"  width="500" border="0" cellspacing="0" cellpadding="0"  align="center">
                           <thead>
                              <tr>
                               <td align="left">#</td>
                               <td align="left">Name</td>
                               <td align="center">Offline</td>
                               <td align="center">MAP</td>
                              </tr>
                           </thead>';  $count =  0; $tr_color_2 = "even"; $tr_color_1 = ""; $take_my_chr =  $db_primary->Execute("Select mu_id,name,pklevel,money from character  where AccountID=?",array(clean_variable($_SESSION['user_login_name'])));  $take_my_offline = $db_secondary->Execute("Select connectstat from  memb_stat where  memb___id=?",array(clean_variable($_SESSION['user_login_name'])));  $take_my_offline = $take_my_offline->fetchrow();  foreach  ($take_my_chr->GetArray() as $HHFW => $chr_zz) { $count++;  $tr_color = ($count % 2) ? $tr_color_1 : $tr_color_2;  $take_my_offline[0] == 1 ? $error=1 && $o="<img  src=\"".$muweb['images']."/deny.gif\">" : $o = "<img  src=\"".$muweb['images']."/allow.gif\">"; $take_my_offline[0] == 0 ?  $on=1 : $on=0; if($on == 1){ $a2d = '<span  class="medium_link"><a  href="'.$muweb['servername'].'-Characters-Warp-'.$chr_zz[0].'.html">'._SELECT_MAP.'</a></span>';  }else{ $a2d = "N/A"; } $res_con .='<tbody><tr  class="'.$tr_color.'">
                    <td  width="3">'.$count.'</td>
                    <td align="left"  width="50">'.htmlentities($chr_zz[1]).'</td>
                    <td  align="center" >'.$o.'</td>
                    <td align="center"  width="80">'.$a2d.'</td>
                    </tr></tbody>'; }  $res_con .='</table><br>'; } break; case "Info":  if(read_module(35) == 0){ echo locked('For the moment this page is  closed...Please try again latter.','370'); }else{ $res_con .=  '<br><br><table class="sort-table" id="table-1"  width="500" border="0" cellspacing="0" cellpadding="0"  align="center">
                           <thead>
                              <tr>
                               <td align="left">#</td>
                               <td align="left">Name</td>
                               <td align="left">Class</td>
                               <td align="left">Level</td>
                               <td align="left">Map</td>
                               <td align="center">STR</td>
                               <td align="center">AGI</td>
                               <td align="center">VIT</td>
                               <td align="center">ENG</td>
                               <td align="center">COM</td>
                               
                             </tr>
                            </thead>';  $count = 0; $tr_color_2 = "even"; $tr_color_1  = ""; $take_my_chr = $db_primary->Execute("Select  mu_id,name,class,clevel,resets,mapnumber,strength,dexterity,vitality,energy,lead
ership  from character where  AccountID=?",array(clean_variable($_SESSION['user_login_name'])));  if(!$take_my_chr){ $take_my_chr = $db_primary->Execute("Select  mu_id,name,class,clevel,resets,mapnumber,strength,dexterity,vitality,energy  from character where  AccountID=?",array(clean_variable($_SESSION['user_login_name']))); }   foreach ($take_my_chr->GetArray() as $HHFW => $chr_zz) { $count++;  switch ($chr_zz[10]){ case 0: $chr_zz[10] = "--"; break; } $tr_color =  ($count % 2) ? $tr_color_1 : $tr_color_2; $res_con  .='<tbody><tr class="'.$tr_color.'">
                    <td  width="3">'.$count.'</td>
                    <td align="left"  width="50">'.htmlentities($chr_zz[1]).'</td>
                    <td  align="left">'.class_list($chr_zz[2],'short').'</td>
                     <td align="left">'.($chr_zz[3]).'[<span  class="rankings_text_reset">'.$chr_zz[4].'</span>]</td>
                    <td align="left">'.decode_map($chr_zz[5]).'</td>
                     <td align="center">'.$chr_zz[6].'</td>
                    <td  align="center">'.$chr_zz[7].'</td>
                    <td  align="center">'.$chr_zz[8].'</td>
                    <td  align="center">'.$chr_zz[9].'</td>
                    <td  align="center">'.$chr_zz[10].'</td>
                     </tr></tbody>'; } $res_con .='</table><br>'; }  break; } echo html($res_con); } } ?>

Credits: SkyLinE27
 
  • Like
Reactions: KR373N and hamlet
Мастъре, ранкингс модула работи, но немогат да се адват точки , никакви. Излиза ми менюто за адване пиша точките давам адд и си остават по 25..
 
Мастъре, ранкингс модула работи, но немогат да се адват точки , никакви. Излиза ми менюто за адване пиша точките давам адд и си остават по 25..
Opera or Mozila "про"
 
  • Like
Reactions: KR373N
Game Master List not work

Last Update 14717 days 13 hours 46 minutes 33 seconds ago