session_start();
include_once "../main.php";
//echo 'register_globals = ' . ini_get('register_globals') . "\n";
if(isset($fu))
{
$q1 = "select upass, job_seeker_email from job_seeker_info where uname = \"$_POST[uname]\"";
//$q1 = "SELECT * FROM `job_seeker_info` WHERE `job_seeker_email` = '" . $_POST["SEmail"]. "'";
$r1 = mysql_query($q1) or die(mysql_error());
$a1 = mysql_fetch_array($r1);
if(empty($a1))
{
echo "
";
// Write new password in the database
$EPass = md5($NewPassword);
$strSQL = "UPDATE job_seeker_info SET
upass ='$EPass'
WHERE `job_seeker_email` = '" . $_POST['SEmail'] . "'; ";
$Result = mysql_query($strSQL);
//echo "u r at $domain
";
//===============================================================================================================
if ($domain == "yourmilitary")
$strDomain = $_SERVER[HTTP_HOST] . "/spouse";
else
$strDomain = $_SERVER[HTTP_HOST];
$strDomain = "yourmilitaryjobs.com";
$Msg = '
Your username/password for ' . $site_name . '
Hello,
Here is your NEW login information for ' . $site_name . '
Username: ' . $a2[uname] . '
Password: ' . $NewPassword . '
You may click here to log in with this information and change your password as you wish.
If clicking the above link does not work, you may copy and paste the following link on your browser\'s address bar.
http://' . $strDomain . '/jobseekers/editinfo.php'; /* $to = $_POST[SEmail]; $subject = "Your username/password for $site_name"; $message = "Hello,\nhere is your NEW login information for $site_name\n\nUsername: $a2[uname]\nPassword: $NewPassword\n "; $message .= "You may log in with this information using the link below, and change your password as you wish.\n"; */ $to = $_POST[SEmail]; $subject = "Your username/password for $site_name"; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: $_SERVER[HTTP_HOST] <$aset[ContactEmail]>\r\n" . "Reply-To: $_SERVER[HTTP_HOST] <$aset[ContactEmail]>\r\n"; @mail($to , $subject , $Msg, $headers); echo "