You are not signed in yet. Please use the form below to sign in or click here to register online. You need to be signed in to access your account.
$page_access = 0; include ("ssi/authorize.php"); $breadcrumb = "Home > Your Account"; $pagename = "Your Account"; include("ssi/logincode.php"); if ($_SESSION["uid"]) { $sql = "SELECT * FROM user WHERE WebsiteID = $wid AND ID = ".$_SESSION["uid"]; $tr = mysql_query($sql); $ur = mysql_fetch_array($tr); if ((isset($_POST["do_edit"])) && (!( ($_SESSION["ual"] == 1) && $LEVEL_1_NOTALLOWED_ACCOUNT_VIEW))) { $e_title = $_POST["e_title"]; $e_name = $_POST["e_name"]; $e_surname = $_POST["e_surname"]; $e_email = $_POST["e_email"]; $sql = "UPDATE user SET Title='$e_title', Name='$e_name', Surname='$e_surname', " ." Email='$e_email' WHERE ID = ".$_SESSION["uid"]." AND WebsiteID = $wid "; mysql_query($sql); if (mysql_affected_rows() == 1) { $updatedok = true; } else { $prob["edit"] = true; } } else if ((isset($_POST["do_pwchange"])) && (!( ($_SESSION["ual"] == 1) && $LEVEL_1_NOTALLOWED_ACCOUNT_VIEW))) { $e_newpw = $_POST["e_newpw"]; $e_newpwc = $_POST["e_newpwc"]; if (!$e_newpw) $prob["nonewpw"] = true; else { if ($e_newpw != $e_newpwc) $prob["nomatchpw"] = true; else { $sql = "UPDATE user SET Password='".md5($e_newpw)."', DecryptedPassword = '' " ." WHERE ID = ".$_SESSION["uid"]." AND WebsiteID = $wid "; mysql_query($sql); if (mysql_affected_rows() == 1) { $chpwok = true; } else { $prob["edit"] = true; } } } } if (!(isset($_POST["do_edit"]))) { $e_title = $ur["Title"]; $e_name = $ur["Name"]; $e_surname = $ur["Surname"]; $e_email = $ur["Email"]; } } ?>
You are not signed in yet. Please use the form below to sign in or click here to register online. You need to be signed in to access your account.