1
|
<?php/* Written by Gerben Schmidt, http://scripts.zomp.nl */include_once("config.php");include('session.php');include('header.php');include("../language/$language");if(!$_POST["submit"]){$username = $_SESSION['login'];$query = mysql_query("SELECT * FROM $table_users WHERE (login = '$username')");while($row = mysql_fetch_array($query)) {$id = $row['id'];$login = $row['login'];$text = $row['password'];$permissions = $row['permissions'];echo "<form name='input' method='post' action='password.php?id=$id'>";echo "<table width='600' border='0' cellspacing='0' class='admin'>";echo "<tr>";echo "<td> </td>";echo "</tr>";echo "<tr>";echo "<td class='admin_title'>$changepassword</td>";echo "</tr>";echo "<tr>";echo "<td> </td>";echo "</tr>";echo "<tr><td class='admin'>$lang_username $login</td></tr>";echo "<tr><td class='admin'>$lang_password <input name='password' type='password' value='$password'></td></tr>";echo "<tr>";echo "<td> </td>";echo "</tr>";echo "<tr><td class='admin'><input type='submit' name='submit' value='submit'></td></tr>";echo "<tr>";echo "<td> </td>";echo "</tr>";echo "</form></table>";}}if($_POST["submit"]){if(!$_POST[password]) {$error = "$providepassword $back $prevpage";}else {$query = mysql_query("UPDATE $table_users SET password = '$_POST[password]' WHERE (id = $_GET[id])");$error = "$data_updated $backmembersarea";}}DisplayError($error);include('footer.php');?>
|