Upload files to "website"
This commit is contained in:
parent
e3246d93ed
commit
7480285825
5 changed files with 164 additions and 0 deletions
59
website/edituser.php
Normal file
59
website/edituser.php
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
<HTML><HEAD>
|
||||
<TITLE>Frontier II - Edit Settings</TITLE>
|
||||
</HEAD><BODY BGCOLOR="#000000" TEXT="#f0f0f0">
|
||||
<H2 ALIGN="CENTER">Frontier II</H2>
|
||||
<H3 ALIGN="CENTER">Edit Player Settings</H3>
|
||||
|
||||
<?php
|
||||
|
||||
session_start();
|
||||
require($_SERVER['DOCUMENT_ROOT'].'/include.php');
|
||||
|
||||
if ($_SESSION['id'] != '')
|
||||
{ // Logged in
|
||||
|
||||
$player_id = $_SESSION['id'];
|
||||
|
||||
$sql = "SELECT * FROM player WHERE id = '$player_id'";
|
||||
$result = mysqli_query($mysqli, $sql) or die($gameerror . "EU-Q01");
|
||||
$row = mysqli_fetch_assoc($result);
|
||||
|
||||
$player_name = $row['name'];
|
||||
$player_nick = $row['nick'];
|
||||
$player_create_date = $row['create_date'];
|
||||
$player_safe_email = $row['safe_email'];
|
||||
$player_pub_email = $row['pub_email'];
|
||||
$player_country_id = $row['country_id'];
|
||||
$player_tz_id = $row['tz_id'];
|
||||
$player_note = $row['note'];
|
||||
|
||||
echo "<P>Real Name: $player_name<BR>
|
||||
Username: $player_nick<BR>
|
||||
Created: $player_create_date
|
||||
|
||||
<P><FORM ACTION=\"password.php\" METHOD=\"POST\">
|
||||
To change your password, enter your current password, and then
|
||||
your new password twice.<BR>
|
||||
Old Password: <INPUT TYPE=\"PASSWORD\" NAME=\"oldpass\"><BR>
|
||||
New Password: <INPUT TYPE=\"PASSWORD\" NAME=\"newpass1\"><BR>
|
||||
Confirm New: <INPUT TYPE=\"PASSWORD\" NAME=\"newpass2\"><BR>
|
||||
<INPUT TYPE=\"SUBMIT\" VALUE=\"Change Password\"></FORM>
|
||||
|
||||
<P><FORM ACTION=\"saveuser.php\" METHOD=\"POST\">
|
||||
Registered Email: <INPUT TYPE=\"TEXTBOX\" NAME=\"safe_email\" VALUE=\"$player_safe_email\"><BR>
|
||||
Public Email: <INPUT TYPE=\"TEXTBOX\" NAME=\"pub_email\" VALUE=\"$player_pub_email\"> (optional)<BR>
|
||||
Country: $player_country_id (not available)<BR>
|
||||
Timezone: $player_tz_id (not available)<BR>
|
||||
Comments: <INPUT TYPE=\"TEXTAREA\" NAME=\"note\" VALUE=\"$player_note\"><BR>
|
||||
<INPUT TYPE=\"SUBMIT\" VALUE=\"Save Changes\"></FORM>
|
||||
";
|
||||
|
||||
} else { echo $gameseserr; } // Not logged in
|
||||
|
||||
mysqli_close($mysqli);
|
||||
|
||||
echo $footer;
|
||||
|
||||
?>
|
||||
|
||||
</BODY></HTML>
|
||||
Loading…
Add table
Add a link
Reference in a new issue