<section id="left_menu_container">
    		<section class="left_cat">
            	<ul>
                	<li><a href="trades.php">Your Trades</a></li>
                	<li><a href="account.php">Password &amp; Email</a></li>
                	<li><a href="addresses.php">Stored Addresses</a></li>
                    </ul></section></section>
                    <section id="right_side_container">
                    	<section class="products_heading">Account Summary</section>
                        <section class="account-pages">
                        <form action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" method="post">
                        <h2>Welcome <?php 
echo $userObj->getUserDetail($_SESSION['user_email'])->first_name . " " . $userObj->getUserDetail($_SESSION['user_email'])->last_name;
?>
</h2>
                        <p style="color:#008040; font-weight:bold;"><?php 
echo $msg;
?>
</p>
                        <strong>Your Email</strong>
                        <p>
						<input type="email" name="user_email" value="<?php 
echo $_SESSION['user_email'];
?>
"  readonly>
                        </p>
                        <strong>Your First Name</strong>
                        <p><input type="text" name="first_name" value="<?php 
Beispiel #2
0
<?php

require_once "_admin/includes/config.php";
require_once "_admin/includes/class.php";
require_once "inc/security.php";
$userObj = new users();
$msg = NULL;
if (isset($_POST['logins'])) {
    $useremail = mysql_real_escape_string($_POST['user_email']);
    $pass = md5($_POST['user_pass']);
    if ($userObj->validateLogin($useremail, $pass)) {
        $_SESSION['login_status'] = 1;
        $_SESSION['username'] = $userObj->getUserDetail($useremail)->first_name . " " . $userObj->getUserDetail($useremail)->last_name;
        $_SESSION['user_email'] = $userObj->getUserDetail($useremail)->user_email;
        header("location:index.php");
    } else {
        if ($userObj->getUserDetail($useremail)) {
            $msg = "Invalid Password";
        } else {
            $msg = "No account associated with this email";
        }
    }
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="icon" href="images/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
<title>Welcome To Bumblebee</title>
Beispiel #3
0
<?php

require_once "_admin/includes/config.php";
require_once "_admin/includes/class.php";
include_once "inc/security.php";
$msg = NULL;
$userObj = new users();
$userid = $userObj->getUserDetail($_SESSION['user_email'])->user_id;
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="icon" href="images/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
<title>Welcome To Bumblebee</title>
<link href="style.css" rel="stylesheet" type="text/css">
<style type="text/css">
.account-pages {padding:10px 15px; box-sizing:border-box; font:13px arial;}
.account-pages h2 {margin-bottom:10px;}
.account-pages p, .account-pages strong {margin-bottom:5px;}
.account-pages input[type="submit"] {clear:both; display:block; margin:10px 0; border-radius:7px; font:bold 14px calibri; line-height:22px; height:22px; padding:0 10px; background:-webkit-linear-gradient(top,#fffc62,#ffca00); background:-moz-linear-gradient(top,#fffc62,#ffca00); background:-ms-linear-gradient(top,#fffc62,#ffca00); background:-o-linear-gradient(top,#fffc62,#ffca00); border:1px solid #ffcc00;}
</style>
</head>

<body>
<?php 
include_once "inc/header.php";
?>
        <section id="center_main_container">
        <section id="center_container">
<span class="clear"></span>
<section id="center_mid_container">
	<section id="left_menu_container">
    		<section class="left_cat">
            	<ul>
                	<li><a href="trades.php">Your Trades</a></li>
                	<li><a href="account.php">Password &amp; Email</a></li>
                	<li><a href="addresses.php">Stored Addresses</a></li>
                    </ul></section></section>
                    <section id="right_side_container">
                    	<section class="products_heading">Account Summary</section>
                        <section class="account-pages">
                        <h2>Your Addresses 
						<?php 
if ($userObj->getAddress($_SESSION['user_email'])) {
    $name = $userObj->getUserDetail($_SESSION['user_email'])->first_name;
    $lname = $userObj->getUserDetail($_SESSION['user_email'])->last_name;
    //print_r($userObj);
    ?>
                        <?php 
    foreach ($userObj->getAddress($_SESSION['user_email']) as $address) {
        ?>
                        <?php 
        //print_r($address);
        if ($address->address_status == 0) {
            ?>
                        <?php 
            $mstat = '<p style="color:blue;">Pending</p>';
            ?>
                        <?php 
        } elseif ($address->address_status == 1) {
						<?php 
    if ($ms == 7) {
        echo '<strong>Address has been updated successfully</strong>';
    }
    ?>
                        </p>
                        <form action="<?php 
    $_SERVER['PHP_SELF'];
    ?>
?act=1&id=<?php 
    echo $id;
    ?>
" method="post" id="editForm">
                        <label>Name</label>
                        <input type="text" name="add_name" value="<?php 
    echo $userObj->getUserDetail($_SESSION['user_email'])->first_name;
    ?>
" required  readonly >
                        <label>Address</label>
                        <input type="text" name="add" value="<?php 
    echo $addData['address1'];
    ?>
" required>
                        <label>Address 2</label>
                        <input type="text" name="add2" value="<?php 
    echo $addData['address2'];
    ?>
"  >
                        <label>City</label>
                        <input type="text" name="city" value="<?php 
    echo $addData['city'];
<?php

require_once "_admin/includes/config.php";
require_once "_admin/includes/class.php";
$userObj = new users();
$msg = NULL;
if (isset($_POST['submit'])) {
    $useremail = mysql_real_escape_string($_POST['user_email']);
    if ($userObj->getUserDetail($useremail)) {
        $newpass = $userObj->randomPassword();
        if ($userObj->resetPassword($useremail, $newpass)) {
            //$headers = "From: <*****@*****.**>";
            //$subject = "Password for Bumblebee Wireless Sell It Account";
            $mlmsg = '<table cellspacing="0" cellpadding="0" border="0" height="100%" width="100%">
    <tr>
        <td align="center" valign="top" style="padding:30px 0 20px 0">
            <table bgcolor="FFFFFF" cellspacing="0" cellpadding="10" border="0" width="800" style="border-top:5px solid #ffe115; border-bottom:5px solid #ffe115;">
                <tr>
                    <td valign="top">
                        <a href="http://bumblebeewireless.com/" style="color:#1E7EC8;"><img src="http://bumblebeewireless.com/sell-it/images/email.jpg"  alt="Bumblebee Wireless" border="0"/></a>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <h1 style="font-size:22px; font-weight:normal; line-height:22px; margin:0 0 11px 0;">Reset Password,</h1>
                        <p style="font-size:12px; line-height:16px; margin:0 0 8px 0;">You have indicated that you have forgotten your password for the member profile associative with ' . $useremail . '<strong><br><br>Your new password is:</strong> ' . $newpass . '</p>
                     </td>
                </tr>
				 <tr>
                    <td valign="top">
                        <a href="http://bumblebeewireless.com/sell-it/login.php"  style="background:#3b91cf; border: 1px solid #3b91cf; border-radius: 5px; clear: both; color: #fff; display: inline-block; font: bold 18px/32px calibri; height: 32px; margin: 10px 0px; width:200px; text-decoration:none; text-align:center; padding: 0px;">login To Your Account</a>
<?php

require_once "../_admin/includes/config.php";
require_once "../_admin/includes/class.php";
$objUser = new users();
if (isset($_GET['register_email'])) {
    $emailadd = $_POST['email'];
    if (filter_var($emailadd, FILTER_VALIDATE_EMAIL)) {
        if ($objUser->getUserDetail($emailadd)) {
            echo "Already Registered";
        } else {
            echo "Valid Email";
        }
    } else {
        echo "Invalid Email address";
    }
}
if (isset($_GET['address'])) {
    $adresid = $_POST['addressid'];
    //echo $adresid;
    $qry = "select * from address where add_id = " . $adresid;
    $res = mysql_query($qry);
    $data = mysql_fetch_array($res);
    echo "<strong>" . $data['address_name'] . "</strong>\n\t<p>" . $data['address1'] . "</p>\n\t<p>" . $data['address2'] . "</p>\n\t<p>" . $data['city'] . ", " . $data['state'] . ", " . $data['zip_code'] . ", " . $data['country'] . "</p>\n\t<p>" . $data['phone'] . "</p>";
}
Beispiel #8
0
<?php

require_once "../_admin/includes/config.php";
require_once "../_admin/includes/class.php";
$objUser = new users();
if (isset($_GET['register_email'])) {
    $emailadd = $_POST['email'];
    if (filter_var($emailadd, FILTER_VALIDATE_EMAIL)) {
        if ($objUser->getUserDetail($emailadd)) {
            echo "Already Registered";
        } else {
            echo "Valid Email";
        }
    } else {
        echo "Invalid Email address";
    }
}
if (isset($_GET['address'])) {
    $adresid = $_POST['addressid'];
    //echo $adresid;
    $qry = "select * from address where add_id = " . $adresid;
    $res = mysql_query($qry);
    $data = mysql_fetch_array($res);
    echo "<strong>" . ($name = $objUser->getUserDetail($_SESSION['user_email'])->first_name . ' ' . ($lname = $objUser->getUserDetail($_SESSION['user_email'])->last_name . "</strong>\n\t<p>" . $data['address1'] . "</p>\n\t<p>" . $data['address2'] . "</p>\n\t<p>" . $data['city'] . ", " . $data['state'] . ", " . $data['zip_code'] . ", " . $data['country'] . "</p>\n\t<p>" . $data['phone'] . "</p>"));
}