5tarl0rd

Current Path : /home/tiporg/public_html/manage/
Upload File :
Current File : /home/tiporg/public_html/manage/update_user.php

<?php 

include("classes/access_user_class.php"); 



$update_member = new Access_user;

// $new_member->language = "de"; // use this selector to get messages in other languages



$update_member->access_page(); // protect this page too.

$update_member->get_user_info(); // call this method to get all other information



if (isset($_POST['Submit'])) {

	$update_member->update_user($_POST['password'], $_POST['confir'], $_POST['name'], $_POST['info'], $_POST['email']); // the update method

} 

$error = $update_member->the_msg; // error message



?>

<html>

<head>



<title>Update User</title>

<link href="css/style.css" rel="stylesheet" type="text/css" />

<link href="css/main.css" rel="stylesheet" type="text/css">

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script language="javascript" type="text/javascript">

function Validate(){



	var password=document.form1.password

	var confir=document.form1.confir

	

	if((password.value==null)||(password.value=="")){

		alert("Please enter your password")

		password.focus()

		return false

	}

	if((confir.value==null)||(confir.value=="")){

		alert("Please enter your password again to confirm")

		confir.focus()

		return false

	}

	

}	

</script>





</head>

<body  topmargin="0">

<?php include("includes/header.php");?>



<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">



   <tr>

    <td rowspan="3" align="left" background="images/white_left_bar.gif"></td>

    <td align="center"></td>

    <td width="1%" rowspan="3" align="right" background="images/white_right_bar.gif">&nbsp;</td>

  </tr>

  <tr>

  	<td>&nbsp;</td>

  	</tr>

  <tr>

    <td width="99%"><table width="98%" border="0" align="center" cellpadding="2" cellspacing="2">

      <tr>

        <td width="20%" valign="top"><?php require_once("includes/left_column.php");?></td>

        <td width="80%" valign="top" class="bodyTableBorderGray">

		  <table width="100%" border="0" cellspacing="0" cellpadding="0">

            <tr>

               <td height="22" align="center" bgcolor="#EFEFEF" class="boldText">Account Settings </td>

            </tr>

            <tr>

              <td>

			 

	

		

		

			  <form name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" onSubmit="return Validate();">

  		  <table width="100%" height="168" border="0" cellpadding="2" cellspacing="2">

          <tr>

            <td colspan="3" class="message"> <?php echo (isset($error)) ? $error : "&nbsp;"; ?>&nbsp;</td>

            </tr>

          <tr>

            <td width="6%">&nbsp;</td>

            <td width="28%" class="boldBodyText">Login</td>

            <td width="66%"><b><?php echo $update_member->user; ?></b></td>

          </tr>

          

          <tr>

            <td class="mainText">&nbsp;</td>

            <td class="boldBodyText">Password</td>

            <td><input name="password" type="password" value="<?php echo (isset($_POST['password'])) ? $_POST['password'] : ""; ?>" size="30">

              <span class="boldBodyText">* </span></td>

          </tr>

          <tr>

            <td class="mainText">&nbsp;</td>

            <td class="boldBodyText">Confirm password</td>

            <td><input name="confir" type="password" value="<?php echo (isset($_POST['confirm'])) ? $_POST['confirm'] : ""; ?>" size="30">

              <span class="boldBodyText">* </span></td>

          </tr>

          <tr>

            <td>&nbsp;</td>

            <td class="boldBodyText">Real name</td>

            <td><input name="name" type="text" value="<?php echo (isset($_POST['name'])) ? $_POST['name'] : $update_member->user_full_name; ?>" size="30"></td>

          </tr>

          

          <tr>

            <td>&nbsp;</td>

            <td class="boldBodyText"><label for="email">E-mail:</label></td>

            <td><input name="email" type="text" value="<?php echo (isset($_POST['email'])) ? $_POST['email'] : $update_member->user_email; ?>" size="30">

              <span class="boldBodyText">*</span></td>

          </tr>

         <tr>

            <td>&nbsp;</td>

            <td class="boldBodyText">Extra info</td>

            <td><input name="info" type="text" value="<?php echo (isset($_POST['info'])) ? $_POST['info'] : $update_member->user_info; ?>" size="30"></td>

          </tr>

          <tr>

            <td>&nbsp;</td>

            <td colspan="2" class="boldBodyText">&nbsp;</td>

            </tr>

          <tr>

            <td colspan="3" align="center"><input type="submit" name="Submit" value="Update"></td>

            </tr>

        </table>

	  </form>





<!-- Notice! you have to change this links here, if the files are not in the same folder -->

</td>

            </tr>

          </table>		</td>

      </tr>

    </table>    </td>

  </tr>

  <tr>

    <td><img src="images/white_left_bottom_corner.gif" width="9" height="9" /></td>

    <td width="99%" background="images/white_bottom_bar.gif"><img src="images/white_bottom_bar.gif" width="4" height="9" /></td>

    <td width="1%"><img src="images/white_right_bottom_corner.gif" width="9" height="9" /></td>

  </tr>

</table>



</body>

</html>


5tarL0rd By 5tarl0rd Being Anonymous