<?php
/*********************/
/*                   */
/*  Version : 5.1.0  */
/*  Author  : RM     */
/*  Comment : 071223 */
/*                   */
/*********************/

echo "<html>\r\n<head>\r\n<LINK REL=\"StyleSheet\" HREF=\"style.css\" TYPE=\"text/css\">\r\n</head>\r\n     \t\t\r\n<body link=\"#096f9e\" vlink=\"#096f9e\" alink=\"#096f9e\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\r\n\t  <form name=\"form1\" method=\"post\" action=\"movedone.php\" target=\"_self\">\r\n        <div>\r\n          ";
include( "config.php" );
if ( isset( $_COOKIE['user'], $_COOKIE['pass'] ) )
{
    exit( "Only registed and logged in users can be here" );
}
if ( isset( $_COOKIE['user'], $_COOKIE['pass'] ) )
{
    $mid = $_COOKIE['user'];
    $mpw = $_COOKIE['pass'];
}
$character = $_COOKIE['char'];
$name = stripslashes( $_POST['char'] );
if ( eregi( "[^a-zA-Z0-9_-]", $mid ) || eregi( "[^a-zA-Z0-9_-]", $mpw ) || eregi( "[^a-zA-Z0-9_-]", $character ) )
{
    exit( "What are you trying to pull sucker ?!" );
}
$querychar = "Select Resets, cLevel, PkCount, Strength, Dexterity, Vitality, Energy, Money, LevelUpPoint, MapNumber, MapPosX, MapPosY From Character WHERE Name='".$character."'";
$resultchar = mssql_query( $querychar );
$rowchar = mssql_fetch_row( $resultchar );
$reset = $rowchar[0];
$level = $rowchar[1];
$pks = $rowchar[2];
$forca = $rowchar[3];
$agilidade = $rowchar[4];
$vida = $rowchar[5];
$ernegia = $rowchar[6];
$zen = $rowchar[7];
$pontos = $rowchar[8];
$map = $rowchar[9];
$coordx = $rowchar[10];
$coordy = $rowchar[11];
$guild = "Select G_Name, G_Notice, Number, G_Master From GUILD WHERE G_Master='".$character."'";
$guild2 = mssql_query( $guild );
$guild3 = mssql_fetch_row( $guild2 );
$nomeguild = $guild3[0];
$noticiaguild = $guild3[1];
$membros = $guild3[2];
$gmguild = $guild3[3];
echo "<table width=\"780\" height=\"312\" border=\"0\" align=\"left\"><tr><td width=\"458\" height=\"308\" valign=\"top\" bgcolor=\"#096f9e\"><div align=\"center\"><form name=\"form1\" method=\"post\" action=\"alterarnomeguilddone.php\"><table width=\"101%\" height=\"130\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td height=\"26\" colspan=\"3\"> <div align=\"center\"><font color=\"#FFFFFF\" size=\"1\" face=\"Arial Black\">ALTERAR NOME DA GUILD </font></div></td></tr><tr><td width=\"29%\" bgcolor=\"#EFEFEF\"><font color=\"#006699\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Login:</font></td><td bgcolor=\"#EFEFEF\"><font color=\"#006699\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\"><strong>";
echo $mid;
echo "</strong></font></td><td bgcolor=\"#EFEFEF\">&nbsp;</td></tr><tr> <td bgcolor=\"#EFEFEF\"><div align=\"center\"><font color=\"#006699\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Nome Atual </font></div></td><td width=\"36%\" bgcolor=\"#EFEFEF\"> <input type=\"hidden\" name=\"antigonome\" value=";
echo $nomeguild;
echo ">";
echo $nomeguild;
echo "</td><td width=\"35%\" bgcolor=\"#EFEFEF\">&nbsp;</td></tr><tr><td bgcolor=\"#EFEFEF\"><div align=\"center\"><font color=\"#006699\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Noticia Atual: </font></div></td><td width=\"36%\" bgcolor=\"#EFEFEF\">";
echo $noticiaguild;
echo "</td><td width=\"35%\" bgcolor=\"#EFEFEF\">&nbsp;</td></tr><tr><td bgcolor=\"#EFEFEF\"><div align=\"center\"><font color=\"#006699\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Membros Atual: </font></div></td><td width=\"36%\" bgcolor=\"#EFEFEF\">";
echo $membros;
echo "</td><td width=\"35%\" bgcolor=\"#EFEFEF\">&nbsp;</td></tr><tr> <td bgcolor=\"#EFEFEF\"><div align=\"center\"><font color=\"#006699\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Gm Atual: </font></div></td><td width=\"36%\" bgcolor=\"#EFEFEF\">";
echo $gmguild;
echo "<font color=\"#006699\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">&nbsp;</font></td><td width=\"35%\" bgcolor=\"#EFEFEF\">&nbsp;</td></tr><tr><td bgcolor=\"#EFEFEF\"><div align=\"center\"><font color=\"#006699\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Novo Nome:: </font></div></td><td width=\"36%\" bgcolor=\"#EFEFEF\"><font color=\"#006699\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\"><input name=\"nomeguildnew\" type=\"text\" id=\"nomeguildnew\" maxlength=\"10\"></font></td><td width=\"35%\" bgcolor=\"#EFEFEF\">&nbsp;</td></tr><tr> <td bgcolor=\"#EFEFEF\"><div align=\"center\"></div></td><td bgcolor=\"#EFEFEF\"><font color=\"#006699\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">&nbsp;</font></td><td bgcolor=\"#EFEFEF\"><div align=\"left\"><font color=\"#006699\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\"> <input type=\"submit\" name=\"Submit\" value=\"Alterar\"></font></div></td></tr></table></form><p>&nbsp;</p></div></td>\r\n<td width=\"188\" valign=\"top\" bgcolor=\"#096f9e\"> <table width=\"98%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#EFEFEF\"><tr> <td height=\"25\" bgcolor=\"#096f9e\"><div align=\"center\"><font size=\"1\"><label><font color=\"#FFFFFF\" face=\"Arial Black\">INFORMA&Ccedil;&Otilde;ES</font></label></font> </div></td></tr><tr><td height=\"192\" bgcolor=\"#EFEFEF\"></td></tr></table><div align=\"center\"><table width=\"75%\" border=\"0\" align=\"center\"><tr><td></td></tr><tr><td></td></tr></table></div></td><td width=\"111\" valign=\"top\" bgcolor=\"#096f9e\"> <div align=\"center\"> <table width=\"111\" height=\"280\" border=\"0\" align=\"center\"><tr><td height=\"22\" bgcolor=\"#096f9e\"> <div align=\"center\"><font color=\"#FFFFFF\" size=\"1\" face=\"Arial Black\">AREA VIP </font></div></td></tr><tr><td width=\"105\" bgcolor=\"#EFEFEF\"> <div align=\"center\"><font color=\"#006699\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Login : </font></div>\r\n<div align=\"center\"><font color=\"#006699\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">";
echo $mid;
echo "</font></div></td></tr><tr><td height=\"32\" bgcolor=\"#EFEFEF\"> <div align=\"center\"><font color=\"#006699\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Conta Liberada at&eacute;:</font></div><div align=\"center\"><font color=\"#006699\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">9/12/2005</font></div></td></tr><tr><td height=\"21\" align=\"center\" valign=\"middle\" bgcolor=\"#EFEFEF\"><div align=\"center\"><font color=\"#006699\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\"><strong><a href=\"logout.php\">Sair</a></strong></font></div></td></tr><tr><td height=\"27\" bgcolor=\"#EFEFEF\"> <div align=\"center\"><font color=\"#006699\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\"><strong><a href=\"change_pass.php\">Alterar Senha </a></strong></font></div></td></tr><tr><td height=\"18\" bgcolor=\"#096f9e\"> <div align=\"center\"><font color=\"#FFFFFF\" size=\"1\" face=\"Arial Black\">ADM</font></div></td></tr><tr> \r\n<td bgcolor=\"#EFEFEF\"><div align=\"center\"><font color=\"#006699\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Dark[ADM]</font></div></td></tr><tr><td bgcolor=\"#096f9e\"><div align=\"center\"><font color=\"#FFFFFF\" size=\"1\" face=\"Arial Black\">GMs</font></div></td></tr><tr><td height=\"16\" bgcolor=\"#EFEFEF\"><div align=\"center\"><font color=\"#006699\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Lost[GM]</font></div></td>\r\n</tr><tr><td height=\"17\" bgcolor=\"#EFEFEF\"><div align=\"center\"><font color=\"#006699\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">.</font></div></td></tr><tr><td bgcolor=\"#EFEFEF\"><div align=\"center\"><font color=\"#006699\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">.</font></div></td>\r\n</tr><tr><td bgcolor=\"#EFEFEF\"><div align=\"center\"><font color=\"#006699\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">.</font></div></td></tr></table>\r\n</div>\r\n</body>\r\n</html>";
?>
