<?
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); } } ?>