Ir para conteúdo

Pedindo ajuda nesse sistema com stagios


alienbear

Posts Recomendados

Sobre a senha estar incorreta:


Acho que isso resolverá a senha estar errada:

Em

 

if ($save == 1){
$reset_name = stripslashes(ucwords(strtolower(trim($_POST['reset_name']))));
if(check_name($reset_name)) {
$player = $ots->createObject('Player');
$player->find($reset_name);
if($player->isLoaded()) {
$account = $player->getAccount();
if($player->getResets() <= 4) {
$reset_level = 500;
}
if(($player->getResets() >= 5) && ($player->getResets() <= 9)) {
$reset_level = 550;
}
if(($player->getResets() >= 10) && ($player->getResets() <= 15)) {
$reset_level = 650;
}
if($player->getResets() > 15) {
$reset_level = 700;
}
$faltam = $reset_level - $player->getLevel();
if ($player->getLevel() >= $reset_level){
$SQL->query("UPDATE `players` SET
`level` =  '8',
`experience` =  '4200',
`resets` = `resets` + '1' WHERE  `players`.`id` = ".$player->getCustomField('id')." LIMIT 1;");
$main_content .= '
<div class="titles">Personagem '.$player->getName().' foi resetado com sucesso</div>
<br />
<center>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="border: 0px none;">
<div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);">
<div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div>
<form action="?subtopic=resets" method="post">
<input class="ButtonText" name="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" type="image">
</form>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</center>
';
}
else
{
$main_content .='
<div class="titles">Personagem '.$player->getName().' não tem level o suficiente para resetar.<br />Faltam '.$faltam.' levels.</div>
<br />
<center>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="border: 0px none;">
<div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);">
<div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div>
<form action="?subtopic=resets" method="post">
<input class="ButtonText" name="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" type="image">
</form>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</center>
';
}






deixe:

 

 
else {
if ($save == 1){
$reset_name = stripslashes(ucwords(strtolower(trim($_POST['reset_name']))));
if(check_name($reset_name)) {
$player = $ots->createObject('Player');
$player->find($reset_name);
if($player->isLoaded()) {
$account = $player->getAccount();
if($player->getResets() <= 4) {
$reset_level = 500;
}
if(($player->getResets() >= 5) && ($player->getResets() <= 9)) {
$reset_level = 550;
}
if(($player->getResets() >= 10) && ($player->getResets() <= 15)) {
$reset_level = 650;
}
if($player->getResets() > 15) {
$reset_level = 700;
}
$faltam = $reset_level - $player->getLevel();
if ($player->getLevel() >= $reset_level){
$SQL->query("UPDATE `players` SET
`level` =  '8',
`experience` =  '4200',
`resets` = `resets` + '1' WHERE  `players`.`id` = ".$player->getCustomField('id')." LIMIT 1;");
$main_content .= '
<div class="titles">Personagem '.$player->getName().' foi resetado com sucesso</div>
<br />
<center>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="border: 0px none;">
<div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);">
<div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div>
<form action="?subtopic=resets" method="post">
<input class="ButtonText" name="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" type="image">
</form>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</center>
';
}
else
{
$main_content .='
<div class="titles">Personagem '.$player->getName().' não tem level o suficiente para resetar.<br />Faltam '.$faltam.' levels.</div>
<br />
<center>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="border: 0px none;">
<div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);">
<div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div>
<form action="?subtopic=resets" method="post">
<input class="ButtonText" name="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" type="image">
</form>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</center>
';
}
}

 




Para parar de deslogar


Para ele parar de deslogar ache o seguinte

$main_content .='<meta http-equiv="refresh" content="0;url=index.php?subtopic=accountmanagement&action=logout">';

e coloque alguma coisa dentro do $main_content .=' ******* ' como quiser

 

Exemplo:

 

$main_content .='Voltar';

 

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...