????
| Current Path : /home2/morganrand/www/ecommerce/os/catalog/ |
| Current File : /home2/morganrand/www/ecommerce/os/catalog/password_forgotten.php |
<?php
/*
$Id: password_forgotten.php,v 1.2 2004/08/25 22:39:52 akhan Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
require('includes/application_top.php');
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PASSWORD_FORGOTTEN);
if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'process')) {
$email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']);
$check_customer_query = tep_db_query("select customers_firstname, customers_lastname, customers_password, customers_id from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'");
if (tep_db_num_rows($check_customer_query)) {
$check_customer = tep_db_fetch_array($check_customer_query);
$new_password = tep_create_random_value(ENTRY_PASSWORD_MIN_LENGTH);
$crypted_password = tep_encrypt_password($new_password);
tep_db_query("update " . TABLE_CUSTOMERS . " set customers_password = '" . tep_db_input($crypted_password) . "' where customers_id = '" . (int)$check_customer['customers_id'] . "'");
tep_mail($check_customer['customers_firstname'] . ' ' . $check_customer['customers_lastname'], $email_address, EMAIL_PASSWORD_REMINDER_SUBJECT, sprintf(EMAIL_PASSWORD_REMINDER_BODY, $new_password), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
$messageStack->add_session('login', SUCCESS_PASSWORD_SENT, 'success');
tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
} else {
$messageStack->add('password_forgotten', TEXT_NO_EMAIL_ADDRESS_FOUND);
}
}
$breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_LOGIN, '', 'SSL'));
$breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL'));
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head><script src="//cdn.optimizely.com/js/1865631164.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<style type="text/css">
#mainNav
{
background-color: #c36;
text-align: center;
clear: both;
padding: 0px;
height: 30px;
margin-top: 2px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
}
#mainNav p
{
margin-top: 5px;
font-size:18px;
}
#mainNav a, #footerInfo a
{
color:#FFFFFF;
}
#mainNav li {
font-style: normal;
font-weight: bold;
font-size: 14px;
margin-top: 10px;
margin-right: 10px;
margin-bottom: 10;
margin-left: 15px;
padding-top: 10px;
padding-right: 0px;
padding-bottom: 10px;
padding-left: 0px;
line-height: 29px;
display: inline;
margin-left: 10px;
list-style-type: none;
font-family: Arial, Helvetica, sans-serif;
}
#mainNav li a {
text-decoration:none;
}
#mainNav li a:hover {
text-decoration:underline;
}
</style>
<div id="supercontainer" style="width:888px; margin:auto;">
<!--<script>
if (screen.width <= 667) {
document.location = "http://wanderfuls.com/indexmobile.html";
}
</script> -->
<div id="page">
<!--START HEADER CONTENT-->
<table border="0" width="888" cellspacing="0" cellpadding="0">
<tr>
<td width="193">
<a href="http://www.wanderfuls.com"><img border="0" src="http://wanderfuls.com/images/wandlogo.gif" width="193" height="41"></a>
</td>
<td width="473" valign="bottom" align="left">
<i><font color="#8A1B5F" size="5">All-In-One... Centerpieces and Favors</font></i>
</td>
<td width="222"> <h1 style="font-size:30px; color:#cc3366; font-style:normal; font-weight:bold; text-align:right; font-family:Arial, Helvetica, sans-serif; float:right;">1-888-837-5021</h1><br />
<!--<div style="float:right; width:200px; font-family:Arial, Helvetica, sans-serif; font-size:12px">Open until 9PM EST Weekdays</div> -->
</td>
</tr>
</table>
<script type="text/javascript"> var vv_account_id = 'yJCjgdTEQR'; var vv_BaseURL = (("https:" == document.location.protocol) ? "https://frontend.id-visitors.com/FrontEndWeb/" : "http://frontend.id-visitors.com/FrontEndWeb/");document.write(unescape("%3Cscript src='" + vv_BaseURL + "Scripts/liveVisit.js' type='text/javascript'%3E%3C/script%3E"));</script><script type="text/javascript"> try {document.write(unescape("%3Cscript src='" + new_url +"' type='text/javascript'%3E%3C/script%3E"));} catch( err ) {}</script>
<!-- OPENTRACKER JAVASCRIPT START -->
<script src="https://script.opentracker.net/?site=wanderfuls.com"></script>
<!-- OPENTRACKER JAVASCRIPT END -->
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script> <div id="mainNav"> <ul> <li><a href="http://wanderfuls.com/index.html">Home</a></li>
<li><a href="http://wanderfuls.com/pompoms.html">Colors</a></li><!--<li><a href="makebouquet.html">Sizes</a></li>--> <li><a href="http://wanderfuls.com/candypage.html">Candies</a></li><li><a href="http://wanderfuls.com/howtoorder.html">Next Steps</a></li><li><a href="http://wanderfuls.com/centerpieces.html">Gallery</a></li><li> <a href="http://wanderfuls.com/color-design4.html">Design Your Bouquet</a></li><!-- <li><a href="questions.html">Questions</a></li> -->
<li><a href="http://wanderfuls.com/testimonials2.html">Why people love them</a></li><li><a href="http://wanderfuls.com/catalog2.html">Free Catalog</a></li>
</ul>
</div>
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->
<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
<tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td width="100%" valign="top"><?php echo tep_draw_form('password_forgotten', tep_href_link(FILENAME_PASSWORD_FORGOTTEN, 'action=process', 'SSL')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_password_forgotten.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<?php
if ($messageStack->size('password_forgotten') > 0) {
?>
<tr>
<td><?php echo $messageStack->output('password_forgotten'); ?></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<?php
}
?>
<tr>
<td><table border="0" width="100%" height="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2">
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td class="main" colspan="2"><?php echo TEXT_MAIN; ?></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td class="main"><?php echo '<b>' . ENTRY_EMAIL_ADDRESS . '</b> ' . tep_draw_input_field('email_address'); ?></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td><?php echo '<a href="' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td>
<td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></form></td>
<!-- body_text_eof //-->
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
</tr>
</table>
<!-- body_eof //-->
<!-- footer //-->
<!-- footer_eof //-->
<br>
<style type="text/css">
#footerLinks
{
background-color: #DDDBDC;
padding: 0px;
height: 30px;
width: 900px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
clear: left;
}
#footerInfo
{
background-color: #c36;
padding: 0px;
height: 30px;
margin-top: 0px;
margin-bottom: 0px;
width: 900px;
margin-right: auto;
margin-left: auto;
}
#copyright {
padding: 0px;
width: 900px;
margin-top: 10px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
font-size: 12px;
font-style: normal;
text-align: center;
}
#footerLinks li, #footerInfo li
{
display: inline;
margin-left:20px;
font-size:16px;
list-style-type:none;
}
#footerLinks li, #footerInfo li
{
font-weight: bold;
line-height: 30px;
font-family: Arial, Helvetica, sans-serif;
font-style: normal;
text-decoration: none;
}
#mainNav a, #footerInfo a
{
color:#FFFFFF;
}
</style>
<div id="footerLinks">
<ul>
<li><a href="http://wanderfuls.com/bridal2.html">Bridal Colors</a></li>
<li><a href="http://wanderfuls.com/holiday2.html">Holidays Colors</a></li>
<li><a href="http://wanderfuls.com/festival2.html">Festival Colors</a></li>
<li><a href="http://wanderfuls.com/room-view2.html">Room View</a></li>
<li><a href="http://wanderfuls.com/testimonials2.html">Why people love them</a></li><li><a href="http://wanderfuls.com/catalog2.html">Free Catalog</a></li>
</ul>
</div>
<div id="footerInfo">
<ul>
<li><a href="http://www.wanderfuls.com/drooms.html">Design Rooms</a></li>
<li><a href="http://wanderfuls.com/whatarewanderfuls.html">What Are Wanderfuls?</a></li> <li><a href="http://wanderfuls.com/whatarewanderfuls.html#candyoptions">Special Fillings</a></li><li><a href="http://wanderfuls.com/order2.html">Order Tips</a></li> <li><a href="http://wanderfuls.com/discounts.php">Discounts</a></li> <li><a href="http://wanderfuls.com/testimonials2.html">Why people love them</a></li>
</ul>
</div>
<!-- Google Code for Remarketing tag -->
<!-- Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. For instructions on adding this tag and more information on the above requirements, read the setup guide: google.com/ads/remarketingsetup -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 1072474348;
var google_conversion_label = "v7WbCJGT1AMQ7NGy_wM";
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="wanderfuls" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/1072474348/?value=0&label=v7WbCJGT1AMQ7NGy_wM&guid=ON&script=0"/>
</div>
</noscript><div id="copyright">
Copyright © 2002-2014 Wanderfuls. All rights reserved<a href="images/obama.jpg">.</a> </div>
</div>
<!-- Hotjar Tracking Code for wanderfuls.com -->
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:78806,hjsv:5};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'//static.hotjar.com/c/hotjar-','.js?sv=');
</script></body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>