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

echo "<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\r\n";
$classe = new td_class( );
$mid = $classe->checkcookie( );
$character = $classe->checkcookiechar( );
$mudarnick = $_POST['mudarnickok'];
if ( $mudarnick )
{
    $novonome = stripslashes( $_POST['novonick'] );
    $classe->checacaracteres( $novonome );
    $classe->verificanicktrocarnick( $novonome );
    $classe->verificaultlogado( $mid, $character, "mudar nick" );
    $classe->executatrocanick( $character, $novonome );
}
$qChar = mssql_query( "Select * From Character WHERE Name='".$character."'" );
$Char = mssql_fetch_array( $qChar );
echo "<table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"0\" class=\"paineltitulo\">\r\n<tr><td>\r\n<table width=\"100%\" border=\"0\" align=\"center\">\r\n<form name=\"form1\" method=\"post\" action=\"\" target=\"_self\">\r\n<tr valign=\"top\">\r\n<td colspan=\"3\">\r\n<table width=\"100%\" height=\"65\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"> \r\n<tr bgcolor=\"#096f9e\">\r\n<td height=\"22\" colspan=\"10\" align=\"center\" class=\"paineltitulo\">MUDAR NICK PERSONAGEM</td>\r\n</tr>\r\n<tr>\r\n<td width=\"16%\" height=\"24\" class=\"paineltextoescuro\">Personagens</td>\r\n<td width=\"8%\" align=\"center\" class=\"paineltextoescuro\">Reset&atilde;o</td>\r\n<td width=\"7%\" align=\"center\" class=\"paineltextoescuro\">Reset</td>\r\n<td width=\"7%\" align=\"center\" class=\"paineltextoescuro\">Level</td>\r\n<td width=\"4%\" align=\"center\" class=\"paineltextoescuro\">Pks</td>\r\n<td width=\"7%\" align=\"center\" class=\"paineltextoescuro\">For&ccedil;a</td>\r\n<td width=\"7%\" align=\"center\" class=\"paineltextoescuro\">Agilid.</td>\r\n<td width=\"7%\" align=\"center\" class=\"paineltextoescuro\">Vida</td>\r\n<td width=\"7%\" align=\"center\" class=\"paineltextoescuro\">Energ.</td>\r\n<td width=\"14%\" align=\"center\" class=\"paineltextoescuro\">Zen</td>\r\n</tr>\r\n<input name=\"character\" type=\"hidden\" value='";
echo $character;
echo "'>\r\n<tr>";
echo "\r\n<td height='19' align='center' class=\"painelchar\">".$character."</td>\r\n<td align='center' class=\"painelchar\">0</td>\r\n<td align='center' class=\"painelchar\">".$Char['Resets']."</td>\r\n<td align='center' class=\"painelchar\">".$Char['cLevel']."</td>\r\n<td align='center' class=\"painelchar\">".$Char['PkCount']."</td>\r\n<td align='center' class=\"painelchar\">".$Char['Strength']."</td>\r\n<td align='center' class=\"painelchar\">".$Char['Dexterity']."</td>\r\n<td align='center' class=\"painelchar\">".$Char['Vitality']."</td>\r\n<td align='center' class=\"painelchar\">".$Char['Energy']."</td>\r\n<td align='center' class=\"painelchar\">".$Char['Money']."</td>";
echo "</tr></table></td></tr>\r\n\r\n<tr bgcolor=\"#EFEFEF\"> \r\n<td width=\"26%\" align=\"center\" class=\"painelchar\">Novo Nick </td>\r\n<td width=\"42%\" class=\"painelchar\"><input name=\"novonick\" type=\"text\" id=\"novonick\" size='15' maxlength=\"10\"></td>\r\n<td width=\"32%\" class=\"paineltextoescuro\"><input name=\"mudarnickok\" id=\"mudarnickok\" type=\"submit\" value=\"Mudar Nick\"></td>\r\n</tr></form>\r\n</table>\r\n</td>\r\n</tr>\r\n</table>\r\n</body>\r\n</html>";
?>
