user_reset notepad
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<div align="center"><form id='form1' name='form1' method='post' action='<?php $_SERVER['PHP_SELF']; ?>'>
<label><br />
</label>
<p>
<label><span class="b01">Click a Character You want to reset dont abuse this to avoid being BUG!<br />
<br />
<?php
mysql_connect($config['db']['host'], $config['db']['user'], $config['db']['pass']);
mysql_select_db($config['db']['name']);
$result = mysql_query("SELECT * FROM characters WHERE account_name = '".$_SESSION['account']."'ORDER BY char_name LIMIT 5");
while($row = mysql_fetch_array( $result )) {
echo "<strong><a href=?op=reset_user&char=".$row['char_name'].">".$row['char_name']."</a><BR></strong>";
}
?>
</span><br />
<br />
</label>
</p>
</form></div>
<p align="center"> </p>
</body>
</html>
reset user - notepad
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<div align="center">
<form id='form1' name='form1' method='post' action='<?php $_SERVER['PHP_SELF']; ?>'>
<label>
<select name='select'>
<option value='0'>Select level</option>
<option value='1'>Level One</option>
</select>
</label>
<p>
<label>
<input name='submit' type='submit' id="submit" value='Change' />
</label>
</p>
</form>
</div>
<div align="center"><?php
if(isset($_POST['submit'])) {
$results = mysql_query("SELECT * FROM characters WHERE account_name = '".$_SESSION['account']."' and char_name = '".$_GET['char']."'");
$rows = mysql_fetch_array($results);
if($rows['char_name'] != $_GET['char']) {
die('This is not your character!');
}
$result = mysql_query("UPDATE characters SET level = '".$_POST['select']."' WHERE char_name = '".$_GET['char']."'");
if(!$result) {
echo('<p class="b01">Cannot reset level!</p>');
} else {
echo('<p class="b01">Reset level successfull!</p>');
}
}
?></div>
</body>
</html>



Reply With Quote![[Release] fix User Reset](http://ragezone.com/hyper728.png)


