assign("contact",$contact); func_send_mail($config["Company"]["support_department"], "mail/help_contactus_subj.tpl", "mail/help_contactus.tpl", $contact["email"], true); header("Location: help.php?section=contactus"); exit; } else { $userinfo = $HTTP_POST_VARS; $userinfo["login"] = $userinfo["uname"]; } } # # Recover password # if ($REQUEST_METHOD=="POST" and $action=="recover_password") { $accounts = func_query("select login, password, usertype from $sql_tbl[customers] where email='$email' and status='Y'"); # # Decrypt passwords # if($accounts) { foreach($accounts as $key=>$account) $accounts[$key]["password"]=text_decrypt($accounts[$key]["password"]); $mail_smarty->assign("accounts",$accounts); func_send_mail($email, "mail/password_recover_subj.tpl", "mail/password_recover.tpl", $config["Company"]["support_department"], false); header("Location: help.php?section=Password_Recovery_message&email=".urlencode($email)); } else header("Location: help.php?section=Password_Recovery_error&email=".urlencode($email)); } require "../include/states.php"; require "../include/countries.php"; $smarty->assign("userinfo",$userinfo); $smarty->assign("fillerror",$fillerror); $smarty->assign("main","help"); $smarty->assign("help_section",$section); ?>