Tampek
ECHO 'Zarkonia.online';
Edit this part of php to add tibia coins looking acc name and not player name :/
Thnx anyway for help
Code:
if($action == 'premium-points')
{
$player = stripslashes(ucwords(strtolower(trim($_REQUEST['character']))));
$points = $_POST['points'];
if(empty($player))
{
ECHO '<div class="well"> <h2> Add Tibia Coins </h2> <form action="" method="post"> <B> Enter Character Name: </B> <input type="text" name="character"><br>
<B> Enter Points Amount:</B> <input type="text" name="points"><br><br> <input type="submit" value="Submit">
</form></center><form action="/?subtopic=adminpanel" method="post" ><input name="submit" type="submit" value="Back" title="Back"/></form> </DIV>';
}
else
{
$player_data = $SQL->query("SELECT * FROM `players` WHERE `name` = '".$player."';")->fetch();
$SQL->query("UPDATE `accounts` SET `coins` = `coins` + '".$points."' WHERE `id` = '".$player_data['account_id']."'");
ECHO '<div class="well"> <b><center>'.$points.' Tibia Coins added to the account of <i>'.$player.'</i> ! </b></center><br>
<form action="/?subtopic=adminpanel" method="post" ><input name="submit" type="submit" value="Back" title="Back"/></form> </div>';
}
}
Thnx anyway for help