'', 'add_or_edit' => 'lostpassword', 'ID_Pengguna' => $ID_Pengguna, 'Email' => $Email, 'Password' => $Password, 'submit_button_text' => 'Submit', ); if (isset($submit_submit)) { if (!htmlentities($Email)) { $fv['error'] = "Maaf, silahkan masukan alamat email anda."; }elseif (!$ID_Pengguna) { $fv['error'] = "Maaf, silahkan masukan nama login anda."; }elseif (!eregi( "^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$", $Email)) { $fv['error'] = "Wrong Email !!!"; } else { $res = mysql_query("SELECT * FROM pengguna WHERE Email='$Email' AND ID_Pengguna='$ID_Pengguna'"); if ($data=mysql_fetch_assoc($res)) { #$encpass = md5($data['Password']); $from = $Email; $to = $ADMIN_EMAIL; $subject = 'Lost Password'; $headers = "From:".$Email." \n Return Path:".$Email; $message = "Kami memohon untuk di reset account kami di ".$SITE." dengan user : ".htmlentities($data['ID_Pengguna'])." dan alamat email kontak kami di : ".$Email; #mail($to, $subject, $message, $headers); $mail = new SMTP; $mail->TimeOut(10); $mail->Priority('high'); $mail->From($from); $mail->AddTo($to); $mail->Html($message,'us-ascii'); $sent = $mail->Send($subject); $ct = "



Password anda akan direset, silahkan tunggu email dari kami selama 2x24 Jam.

Back




"; } else { $ct = "



Maaf, nama login dan email tidak ada.

Back




"; } } } $pagetemplatevars['content'] = $ct ? $ct : filltemplatefile($ff, $fv); $tv['content'] = $pagetemplatevars['content']; menu_script(); user_registered(); last_article(); displaytemplatefile($pagetemplatefile, $tv); ?>