Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?=build_header_seo(); ?>
<title><?=build_header_title(); ?></title>
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script src="js/core_global.js" language="javascript" type="text/javascript"></script>
<link href="template/<?=$core['config']['template'] ?>/css/estilo.css" rel="stylesheet" type="text/css" />
</head>
<BODY class="body" ondragstart="return false;" onselectstart="return false;" oncontextmenu="return false;">
<center>
<table border="0" width="1187" id="table1" cellspacing="0" cellpadding="0" height="208">
<tr>
<td colspan="5" height="22">
<center>
<table border="1" width="886" id="table2" style="border-width: 0px" cellspacing="0" cellpadding="0">
<tr>
<td style="border-style: none; border-width: medium">
<img src="template/<?=$core['config']['template'] ?>/images/home.png" width="145" height="78" onMouseOver="this.src='template/<?=$core['config']['template'] ?>/images/home2.png';" onMouseOut="this.src='template/<?=$core['config']['template'] ?>/images/home.png';" /></td>
<td style="border-style: none; border-width: medium">
<img src="template/<?=$core['config']['template'] ?>/images/register.png" width="101" height="78" onMouseOver="this.src='template/<?=$core['config']['template'] ?>/images/register2.png';" onMouseOut="this.src='template/<?=$core['config']['template'] ?>/images/register.png';" /></td>
<td style="border-style: none; border-width: medium">
<img src="template/<?=$core['config']['template'] ?>/images/download.png" width="116" height="78" onMouseOver="this.src='template/<?=$core['config']['template'] ?>/images/download2.png';" onMouseOut="this.src='template/<?=$core['config']['template'] ?>/images/download.png';" /></td>
<td style="border-style: none; border-width: medium">
<img border="0" src="template/<?=$core['config']['template'] ?>/images/log_menu.png" width="195" height="78"></td>
<td style="border-style: none; border-width: medium">
<img src="template/<?=$core['config']['template'] ?>/images/ranking.png" width="102" height="78" onMouseOver="this.src='template/<?=$core['config']['template'] ?>/images/ranking2.png';" onMouseOut="this.src='template/<?=$core['config']['template'] ?>/images/ranking.png';" /></td>
<td style="border-style: none; border-width: medium">
<img src="template/<?=$core['config']['template'] ?>/images/webshop.png" width="92" height="78" onMouseOver="this.src='template/<?=$core['config']['template'] ?>/images/webshop2.png';" onMouseOut="this.src='template/<?=$core['config']['template'] ?>/images/webshop.png';" /></td>
<td style="border-style: none; border-width: medium">
<img src="template/<?=$core['config']['template'] ?>/images/forum.png" width="165" height="78" onMouseOver="this.src='template/<?=$core['config']['template'] ?>/images/forum2.png';" onMouseOut="this.src='template/<?=$core['config']['template'] ?>/images/forum.png';" /></td>
</tr>
</table></center>
</td>
</tr>
<tr>
<td colspan="5" height="280"> </td>
</tr>
<tr>
<td height="12" width="265" valign="top">
<table border="1" width="206" id="table14" style="border-width: 0px" cellspacing="0" cellpadding="0">
<tr>
<td style="border-style: none; border-width: medium" height="84"> </td>
</tr>
<tr>
<td style="border-style: none; border-width: medium">
<img border="0" src="template/<?=$core['config']['template'] ?>/images/usercp.png" width="265" height="87"></td>
</tr>
<tr>
<td style="border-style: none; border-width: medium" background="template/<?=$core['config']['template'] ?>/images/cont.png" valign="top">
<table border="0" width="100%" id="table15" cellspacing="0" cellpadding="0">
<tr>
<td width="19"> </td>
<td><div align="left"><span style="background-image:url(template/<?=$core['config']['template'] ?>/Battle/images/bg_snbmid.gif); background-repeat:repeat-y; ">
<?
if($user_login == '1'){
echo '<div class="tmp_left_menu">
<ul>';
$m_uss_row_ = get_sort('engine/cms_data/mods_uss.cms',',');
$count_m_uss = 0;
foreach ($m_uss_row_ as $tr){
explode(",",$tr);
$count_m_uss++;
if($tr[6] == '1'){
if($tr[3] != ACCOUNTSETTINGS_CMS_USER){
echo '<li><a href="'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.USER_CMS_PAGE.'&'.USER_GET_PAGE.'='.$tr[3].'">'.str_replace($menu_links_title,$menu_links_translated,$tr[2]).'</a></li>';
}
}
}
echo ' </ul>
</div>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="4">
<tr>
<td align="left" class="yellow"><a href="'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.USER_CMS_PAGE.'&'.USER_GET_PAGE.'='.ACCOUNTSETTINGS_CMS_USER.'">'.link_account_settings.'</a></td>
<td align="right" class="yellow"><a href="'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'=logout">'.link_log_out.'</a></td>
</tr>
</table>
';
}else{
echo '<form method="post" action="'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.LOGIN_CMS_PAGE.'" name="uss_login_form">
<table width="190" border="0" align="center" cellpadding="0" cellspacing="4">
<tr>
<td style="height: 25px; padding-left: 2px; " width="130"><input type="text" name="uss_id" maxlength="10" size="16" class="login" value="Usuario" OnClick="this.value=\'\'"></td>
<td rowspan="2"><input type="image" src="template/'.$core['config']['template'].'/images/ok.png" width="47" height="45" onclick="uss_login_form.submit();"></td>
</tr>
<tr>
<td style="height: 25px; padding-left: 2px;"><input type="password" name="uss_password" class="login" value="PASSWORD" maxlength="12" size="16" OnClick="this.value=\'\'"><input type="hidden" name="process_login"></td>
</tr>
<tr>
<td style="height: 25px; padding-left: 2px;" colspan="2" align="left" class="yellow"><a href="'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.LOSTPASSWORD_CMS_PAGE.'">>> Olvidaste tu Contraseña,Click Aqui?</a>
<br>
<a href="'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.REGISTER_CMS_PAGE.'">>> Registrate,¡Es Gratis!</a></td>
</tr>
</table>
</form>';
}
?>
</span></div></td>
<td width="21"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="border-style: none; border-width: medium">
<img border="0" src="template/<?=$core['config']['template'] ?>/images/cont2.png" width="265" height="100"></td>
</tr>
<tr>
<td style="border-style: none; border-width: medium"> </td>
</tr>
<tr>
<td style="border-style: none; border-width: medium">
<img border="0" src="template/<?=$core['config']['template'] ?>/images/menu.png" width="265" height="87"></td>
</tr>
<tr>
<td style="border-style: none; border-width: medium" background="template/<?=$core['config']['template'] ?>/images/cont.png" valign="top">
<table border="0" width="100%" id="table16" cellspacing="0" cellpadding="0">
<tr>
<td width="63"> </td>
<td width="181"><div align="left">
<?
$m_row_ = get_sort('engine/cms_data/pag_d.cms',',');
# echo $test[1][2][3];
foreach ($m_row_ as $li){
# explode(",",$li);
switch ($li[7]){
case '0':
if($li[8] == '1'){
if($li[6] != '0'){
echo '<a href="'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.$li[3].'">'.str_replace($menu_links_title,$menu_links_translated,$li[2]).'</a><br>';
}
}
break;
case '1':
switch ($li[11]){
case '1': $target = "_blank"; break;
case '0': $target = "_self"; break;
}
echo '<a href="'.$li[10].'" target="'.$target.'">'.str_replace($menu_links_title,$menu_links_translated,$li[2]).'</a><br> ';
break;
}
}
?>
</div></td>
<td width="21"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="border-style: none; border-width: medium" valign="top">
<img border="0" src="template/<?=$core['config']['template'] ?>/images/cont2.png" width="265" height="100"></td>
</tr>
</table>
</td>
<td width="35" valign="top">
</td>
<td width="481" valign="top">
<table border="1" width="384" id="table12" style="border-width: 0px" cellspacing="0" cellpadding="0">
<tr>
<td style="border-style: none; border-width: medium">
<img border="0" src="template/<?=$core['config']['template'] ?>/images/contenido1.png" width="621" height="184"></td>
</tr>
<tr>
<td style="border-style: none; border-width: medium" background="template/<?=$core['config']['template'] ?>/images/contenido.png" valign="top">
<table border="1" width="100%" id="table13" style="border-width: 0px">
<tr>
<td style="border-style: none; border-width: medium" width="25"> </td>
<td height="600" valign="top" style="border-style: none; border-width: medium"><span class="marco_contenido">
<?
if(CMS_NAVBAR == '1'){
if(isset($_GET[LOAD_GET_PAGE])){
$l_load = file("engine/cms_data/pag_d.cms");
foreach ($l_load as $l_name){
$l_name = explode(",",$l_name);
if($l_name[3] == $page_check_id){
$primary_l = $l_name[2];
break;
}
}
}
if(isset($_GET[USER_GET_PAGE])){
$ti2_td = xss_clean(safe_input($_GET[USER_GET_PAGE],"_"));
$l2_load = file("engine/cms_data/mods_uss.cms");
foreach ($l2_load as $l2_name){
$l2_name = explode(",",$l2_name);
if($l2_name[3] == $ti2_td){
$secondary_l = $l2_name[2];
break;
}
}
}
if(!isset($_GET[LOAD_GET_PAGE])){
#>
$title_p = '<a href="'.$core['config']['website_url'].'">'.$core['config']['websitetitle'].'</a>';
}elseif (isset($_GET[LOAD_GET_PAGE])){
if(isset($_GET[USER_GET_PAGE])){
$usercp_module_title = str_replace($modules_text_tile,$modules_text_translate,$secondary_l);
$title_p = '<a href="'.$core['config']['website_url'].'">'.$core['config']['websitetitle'].'</a> > <a href="'.$core['config']['website_url'].'/'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.$l_name[3].'">'.str_replace($menu_links_title,$menu_links_translated,$primary_l).'</a> > <a href="'.$core['config']['website_url'].'/'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.$l_name[3].'&panel='.$l2_name[3].'">'.$usercp_module_title.'</a>';
}else{ $title_p = '<a href="'.$core['config']['website_url'].'">'.$core['config']['websitetitle'].'</a> > <a href="'.$core['config']['website_url'].'/'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.$l_name[3].'">'.str_replace($menu_links_title,$menu_links_translated,$primary_l).'</a>';}
}
echo '
';
}
if($page_check_id != ANNOUNCEMENTS_CMS_PAGE){
require('engine/announcement_config.php');
if($core['ANNOUNCEMENT']['ACTIVE'] == '1'){
$ann_file = array_reverse(file('engine/variables_mods/announcements.tDB'));
$count_ann = '0';
foreach ($ann_file as $ann){
$ann = explode(",",$ann);
if($ann[3] > time()){
$ann_found = '1';
$ann_title = $ann[1];
$ann_id = $ann[0];
; break;
}
}
}
if($ann_found == '1'){
echo '
<div class="tmp_m_content">
<div class="tmp_right_title">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="1%" > </td>
<td width="47"> </td>
<td>'.text_announcement.'</td>
</tr>
<tr>
<td colspan="3" class="line-menu"></td>
</tr>
</table>
</div>
<div class="tmp_page_content">
<table cellpadding="0" cellspacing="0" border="0" width="95%">
<tr>
<td rowspan="3" align="left" width="60"><img src="template/'.$core['config']['template'].'/images/announcement.gif" width="38" height="38"></td>
<td align="left" style="padding-top: 2px; padding-bottom: 2px;"><a href="'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.ANNOUNCEMENTS_CMS_PAGE.'#announcement-'.$ann_id.'"><div class="iN_news_content">'.$ann_title.'</div></a></td>
<td align="right" class="ann_date">'.date('F j, Y ').'</td>
</tr>
<tr>
<td colspan="2" align="left" style="background-image:url(template/'.$core['config']['template'].'/images/inner_line.jpg); height: 2px;"></td>
</tr>
';
if($core['ANNOUNCEMENT']['AUTHOR'] == '1'){
echo '<tr>
<td colspan="2" align="right"><b>'.$core['config']['admin_nick'].'</b> (Administrator)</td>
</tr>';
}
echo '</table></div>
</div>
';
}
}
$load_pages = file('engine/cms_data/pag_d.cms');
foreach ($load_pages as $pages_loaded){
$pages_loaded = explode(",",$pages_loaded);
if($pages_loaded[3] == $page_check_id){
$p_loaded_array = preg_split( "/\ /", $pages_loaded[5]);
$p_l = '1';
break;
}
}
if($p_l == '1'){
$load_mods = file('engine/cms_data/mods.cms');
foreach ($load_mods as $mods_loaded){
$mods_loaded = explode(",",$mods_loaded);
if(in_array($mods_loaded[0],$p_loaded_array)){
$_c_id_m[] = $mods_loaded[0];
}else {
$_c_id_m[] = 'NULL';
}
}
$co=0;
foreach ($p_loaded_array as $give){
#echo $give;
if(in_array($give,$_c_id_m)){
foreach ($load_mods as $give_me_out){
$give_me_out = explode(",",$give_me_out);
if($give_me_out[0] == $give){
if($give_me_out[4] == '1'){
if($_GET[LOAD_GET_PAGE] == USER_CMS_PAGE && isset($_GET[USER_GET_PAGE])){
$construct_title = $secondary_l;
}else{
$construct_title = $give_me_out[3];
}
echo '<div class="tmp_m_content">
<div class="tmp_right_title">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="1%" > </td>
<td width="47"> </td>
<td>'.htmlspecialchars(str_replace($modules_text_tile,$modules_text_translate,$give_me_out[3])).'</td>
</tr>
<tr>
<td colspan="3" class="line-menu"></td>
</tr>
</table>
</div></div>
<div class="tmp_page_content">';
if($give_me_out[1] == '1'){
if(is_file("pages_modules/".$give_me_out[2]."")){
include('pages_modules/'.$give_me_out[2].'');
}else{
echo 'Unable to load module file, reason: not found.';
}
}elseif ($give_me_out[1] == '0'){
if(is_file('engine/cms_data/cms_co/'.$give_me_out[0].'_cms.cms')){
include('engine/cms_data/cms_co/'.$give_me_out[0].'_cms.cms');
}else{
echo 'Unable to load module content, reason: not found.';
}
}
echo '</div> </div>';
}
}
}
}
}
}
?>
</span></td>
<td style="border-style: none; border-width: medium" width="30"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="border-style: none; border-width: medium">
<img border="0" src="template/<?=$core['config']['template'] ?>/images/contenido2.png" width="621" height="179"></td>
</tr>
<tr>
<td style="border-style: none; border-width: medium" align="center"><span class="footer_font" style="border-style: none; border-width: medium">
<?=build_footer(),$XX= base64_decode('VGVtcGxhdGUgYnkgaHR0cDovL2thcy1kZXNpZ24ubmV0');?>
</span></td>
</tr>
</table>
</td>
<td width="35" valign="top">
</td>
<td width="265" valign="top">
<table border="1" width="265" id="table17" style="border-width: 0px" cellspacing="0" cellpadding="0">
<tr>
<td style="border-style: none; border-width: medium" height="84" width="265"> </td>
</tr>
<tr>
<td style="border-style: none; border-width: medium" width="265">
<img border="0" src="template/<?=$core['config']['template'] ?>/images/reset.png" width="265" height="87"></td>
</tr>
<tr>
<td style="border-style: none; border-width: medium" background="template/<?=$core['config']['template'] ?>/images/cont.png" valign="top" width="265">
<table border="0" width="100%" id="table18" cellspacing="0" cellpadding="0">
<tr>
<td width="19"> </td>
<td><table width="160" align="center">
<tr>
<td width="23"><div align="center"><strong>#</strong></div></td><td>l</td>
<td width="78"><div align="center"><strong>Nombre</strong></div></td><td>l</td>
<td width="78"><div align="center"><strong>Level</strong></div></td><td>l</td>
<td width="43"><div align="center"><strong>Resets</strong></div></td>
</tr>
<tr>
<?
$query=mssql_query("select TOP 10 * from MuOnline.dbo.Character Where ctlcode !='32' and ctlcode !='8' order by Resets desc, cLevel desc");
while($row=mssql_fetch_assoc($query)){
$namez=$row['Name'];
$levelz=$row['cLevel'];
$resetsz=$row['Resets'];
?>
<td style="color: rgb(196, 37, 0); font-weight: bold;"><div align="center"> <strong>
<?=++$count2;?>
</strong></div></td><td>l</td>
<td><div align="center">
<?=$namez;?>
</div></td><td>l</td>
<td><div align="center">
<?=$levelz;?>
</div></td><td>l</td>
<td><div align="center"> <strong>
<?=$resetsz;?>
</strong></div></td>
</tr>
<?
}
?>
</table></td>
<td width="21"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="border-style: none; border-width: medium" width="265">
<img border="0" src="template/<?=$core['config']['template'] ?>/images/cont2.png" width="265" height="100"></td>
</tr>
<tr>
<td style="border-style: none; border-width: medium" width="265"> </td>
</tr>
<tr>
<td style="border-style: none; border-width: medium" width="265">
<img border="0" src="template/<?=$core['config']['template'] ?>/images/guild.png" width="265" height="87"></td>
</tr>
<tr>
<td style="border-style: none; border-width: medium" background="template/<?=$core['config']['template'] ?>/images/cont.png" valign="top" width="265">
<table border="0" width="100%" id="table19" cellspacing="0" cellpadding="0">
<tr>
<td width="19"> </td>
<td><table width="160" align="center">
<tr>
<td><div align="center"><strong>#</strong></div></td><td>l</td>
<td><div align="center"><strong>Nombre</strong></div></td><td>l</td>
<td><div align="center"><strong>Score</strong></div></td><td>l</td>
<td><div align="center"><strong>Logo</strong></div></td>
</tr>
<?
$Guild=mssql_query("select TOP 10 * from MuOnline.dbo.guild order by G_Score desc");
while($row=mssql_fetch_assoc($Guild)){
$G_Namez=$row['G_Name'];
$G_Markz=$row['G_Mark'];
$G_Scorez=$row['G_Score'];
$Resetsz=$row['Resets'];
$logo=urlencode(bin2hex($G_Markz));
?>
<td style="color: rgb(196, 37, 0); font-weight: bold;"><div align="center"> <strong>
<?=++$count1;?>
</strong></div></td><td>l</td>
<td><div align="center">
<?=$G_Namez;?>
</div></td><td>l</td>
<td><div align="center"> <strong>
<?=$G_Scorez;?>
</strong></div></td><td>l</td>
<td><div align="center"><img src="get.php?aL=<?=$logo;?>.png" alt="" width="20" height="20"></div></td>
</tr>
<?
}
?>
</table></td>
<td width="21"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="border-style: none; border-width: medium" valign="top" width="265">
<img border="0" src="template/<?=$core['config']['template'] ?>/images/cont2.png" width="265" height="100"></td>
</tr>
</table>
</td>
</tr>
</table></center>
</body>
</html>