/**
* editlisting.php
*
* This page is for users to edit their account information
* such as their password, email address, etc. Their
* usernames can not be edited. When changing their
* password, they must first confirm their current password.
*
* Written by: Jpmaster77 a.k.a. The Grandmaster of C++ (GMC)
* Last Updated: August 26, 2004
*/
header("Content-type: text/html; charset=utf-8");
include ('header.php');
# if ($session->userlevel < '2') {
# echo "
username/\">Upgrade to edit this listing for review by a member of the editorial team.
return to your dashboard
";
#exit;
#}
// Dynamic secure base for portability
$secureBase = 'https://' . $_SERVER['HTTP_HOST'];
?>
/**
* User has submitted form without errors and user's
* account has been edited successfully.
*/
if(isset($_SESSION['listingedit'])){
unset($_SESSION['listingedit']);
//echo "";
//echo "
Congratulations!
";
//echo "
$session->username, your listing has been successfully updated. "
// ."Home.
"
// ."
";
//header("Location: ".$addurl_location);
}
else{
?>
/**
* If user is not logged in, then do not display anything.
* If user is logged in, then display the form to edit
* account information, with the current email address
* already in the field.
*/
if($session->logged_in){
$_POST['id'] = $_GET['id'];
//$query = "select * from livelinks where id = '" . $_POST['id'] . "' and email = '$session->email'";
$query = "select email from users where username = '" . $session->username . "'";
$result = mysql_query( $query );
$email = mysql_fetch_array($result);
?>
Use this page to send us photo's for fun and competitions previous page.
|
if (file_exists("upload/voucher-" . $_POST['id'] . ".jpg"))
{$image_file = "voucher-" . $_POST['id'] . ".jpg";}
elseif (file_exists("upload/voucher-" . $_POST['id'] . ".gif"))
{$image_file = "voucher-" . $_POST['id'] . ".gif";}
elseif (file_exists("upload/voucher-" . $_POST['id'] . ".png"))
{$image_file = "voucher-" . $_POST['id'] . ".png";}
if ($image_file ){
echo "";
?>
}
else {
echo " ";
//echo " Upload an image to appear on the members page";
echo " ";
?>
// echo " ";
}
echo " |
";
}
else { echo "
Please
login to send us your photographs.
";}
}
echo "
";
include('footer.php'); ?>