"") { $bValidEmail = FALSE; // Setup variables $sEmail = ew_StripSlashes($_POST["email"]); // Set up filter (Sql Where Clause) and get Return Sql // Sql constructor in members class, membersinfo.php $sFilter = "`email` = '" . ew_AdjustSql($sEmail) . "'"; $members->CurrentFilter = $sFilter; $sSql = $members->SQL(); if ($rs = $conn->Execute($sSql)) { if (!$rs->EOF) { $sUserName = $rs->fields('username'); $sPassword = $rs->fields('password'); if (EW_MD5_PASSWORD) { $rsnew = array('password' => $sPassword); // Reset the password $conn->Execute($members->UpdateSQL($rsnew)); } $bValidEmail = TRUE; } $rs->Close(); } if ($bValidEmail) { $Email = new cEmail(); $Email->Load("txt/forgetpwd.txt"); $Email->ReplaceSender(EW_SENDER_EMAIL); // Replace Sender $Email->ReplaceRecipient($sEmail); // Replace Recipient $Email->ReplaceContent('', $sUserName); $Email->ReplaceContent('', $sPassword); if ($Email->Send()) { $_SESSION[EW_SESSION_MESSAGE] = "رمز عبور به آدرس ايميل شما ارسال شد"; // Set success message Page_Terminate("login.php"); // Return to login page } else { $_SESSION[EW_SESSION_MESSAGE] = "ارسال ايميل با خطا مواجه شد"; // set up error message } } } else { $bValidEmail = TRUE; } ?> block(EW_PAGE_ID, "general", 3); echo $block; } ?>

تقاضاي رمز عبور


بازگشت به صفحه ورود به سيستم

"") { ?>

اخطار

آدرس ايميل معتبر نيست

آدرس ايميل كاربر
 

block(EW_PAGE_ID, "general", 4); echo $block; } ?> Close(); // Go to url if specified if ($url <> "") { ob_end_clean(); header("Location: $url"); } exit(); } ?>