0){ while ($bs2_rowst = mysql_fetch_object($bs2)){ // getting 7 days ahead of his order $mdbs_date = $bs2_rowst->date; $mbds_expire = $bs2_rowst->expire_date; //$post_day_dategx = new DateTime($mdbs_date); //$post_day_dategx->modify("+1 year"); //$post_day_dxt = $post_day_dategx->format("Y-m-d H:i:s"); if ($cd_date >= $mdbs_date && $cd_date <= $mbds_expire){ $auth = true; } else { //admin email $admin_ql = mysql_query("select telephone, user_email from users where user_loginid = 'admin' limit 1"); while ($admin_q_rows = mysql_fetch_object($admin_ql)){ $admin_email = $admin_q_rows->user_email; $admin_telephone = $admin_q_rows->telephone; if ($admin_telephone != ""){ $ad_te = " or call at $admin_telephone"; } } // message display... $msg1 .= "
"; $msg1 .= "Your account has expired. Please email to $admin_email". $ad_te ."."; $msg1 .= "
"; $auth = false; } } } else { $msg1 .= "
"; $msg1 .= "User details are improper. Please try again."; $msg1 .= "
"; $auth = false; } if ($auth) { $_SESSION["userworld"] = $email; if ($url != "") { $url = $url; } else { $url = "catalog.html"; } if (!isset($_COOKIE[session_name()])) { if ($url) { header("location: " . $url); } else { header("location: index.html"); } } else { header("location: ".$url); } } } if (isset($password_recover_submit)){ if ($password_recover != ""){ $emailp="^[a-zA-Z0-9_.-]*@[a-z0-9_.]+\.[a-z]{2,4}$"; if (!ereg($emailp, $password_recover)) { $errors[] = "You have typed an invalid email. Please type in a valid one."; $send = "no"; } if(is_array($errors)){ $msg2 .= "
"; while (list($key,$value) = each($errors)){ $msg2 .= "
$value
"; } $msg2 .= "
"; } else { $xka = "select * from users where user_email = '$password_recover'"; $xkb = mysql_query($xka) or die (mysql_error()); $xkc = mysql_num_rows($xkb); if ($xkc){ while ($xkd = mysql_fetch_object($xkb)){ $user_email = $xkd->user_email; $autopass = $xkd->user_pass_txt; $user_name = $xkd->user_name; $login_name = $xkd->user_loginid; //EMAIL NOTIFICATION $domain = $_SERVER['HTTP_HOST']; $xx_comment_mail_sender_name = "Webmaster"; $xx_comment_mail_sender = "webmaster@". $domain; $receiver = "$user_email"; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1" . "\r\n"; $headers .= "From: " . $xx_comment_mail_sender_name ."<". $xx_comment_mail_sender .">" . "\r\n"; $headers .= "Reply-to: " . $xx_comment_mail_sender_name ."<". $xx_comment_mail_sender .">" . "\r\n"; $subject = "Here is your password you asked for at $domain."; $message="


Hello $user_name,
The following are the details of your account at $domain.

Username: $login_name
Password: $autopass

$user_name, please keep your password safe.:


Have a nice day sir/madam!


2008 © $domain powered by Economicalhost.com. All Rights Reserved.

"; $sent = mail($receiver, $subject, $message, $headers); if ($sent){ $msg1 .= "
"; $msg1 .= "Your password has been emailed. Please get the values and login here."; $msg1 .= "
"; $dig_dong = "confirmed"; } else { $msg1 .= "
"; $msg1 .= "Connection couldn't be established."; $msg1 .= "
"; $dig_dong = "not_confirmed"; } // END EMAIL NOTIFICATION } // while ends } else { $msg2 = "There is no such email found in our database."; $dig_dong = "not_confirmed"; } //xkc ends } } else { $msg2 .= "
The email field is empty. Please fill in.
"; $dig_dong = "not_confirmed"; } } ?>

Access your account

* Marked fields are mandatory
Enter details
Forget Password? / Create Account
$msg2
"; } ?>
Provide Email ID: