", $memb_arr['RealName'], $message ); $message = str_replace( "", $memb_arr['Password'], $message ); $message = str_replace( "", $memb_arr['ID'], $message ); $message = str_replace( "", "{$site['url']}member.php", $message ); $message = str_replace( "", $site['title'], $message ); $headers = "From: {$site['title']} <{$site['email_notify']}>"; $headers2 = "-f{$site['email_notify']}"; if ('HTML' == $memb_arr['EmailFlag']) { $headers = "MIME-Version: 1.0\r\n" . "Content-type: text/html; charset=iso-8859-1\r\n" . $headers; $mail_ret = mail($recipient, $subject, $message, $headers, $headers2); } else { $mail_ret = mail($recipient, $subject, html2txt($message), $headers, $headers2); } if (!$mail_ret) { $_page['header'] = _t( "_Recognized" ); $_page['header_text'] = _t( "_RECOGNIZED", $site['title'] ); $action_result = _t( "_MEMBER_RECOGNIZED_MAIL_NOT_SENT", $site['title'] ); $show_form = false; } $_page['header'] = _t( "_Recognized" ); $_page['header_text'] = _t( "_RECOGNIZED", $site['title'] ); $action_result = _t( "_MEMBER_RECOGNIZED_MAIL_SENT", $site['url'], $site['title'] ); $show_form = false; } else { $_page['header'] = _t( "_Not Recognized" ); $_page['header_text'] = _t( "_NOT_RECOGNIZED", $site['title'] ); $action_result = _t( "_MEMBER_NOT_RECOGNIZED", $site['title'] ); } } echo " <table width=". ($content_w - 20) ." cellpadding=4 cellspacing=4> <td align=center class=text2>\n"; echo $action_result; if ( $show_form ) send_form(); echo " </td></table>\n"; $ret = ob_get_contents(); ob_end_clean(); return $ret; } /** * Prints HTML form for forgot password function */ function send_form() { ?> <br /> <center> <form action="<? echo $_SERVER['PHP_SELF']; ?>" method=post> <table cellspacing=0 cellpadding=0 class=text> <td><? echo _t( "_My Email" ); ?>: </td> <td><input class=no type=text name="Email" value="<? echo $_POST['Email']; ?>"></td> <td> </td> <td><input class=no type=submit value="<? echo _t( "_Retrieve my information" ); ?>"></td> </table> </form> </center> <? } ?>