Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- set_time_limit (9999999999);
- include "../connection.php";
- $email = $_REQUEST['email'];
- echo $email;
- if ($email!=NULL)
- {
- $tgl = date("ymdhis");
- $acak = (rand(1000,9999));
- $gabung = $tgl.$acak;
- $query= "UPDATE tbl_user set forgot_unique='".$gabung."' WHERE email='".$email."'";
- pg_exec($query);
- require_once("mail/commonFunction.php");
- if(Send_Mail_to_Destination($email))
- {
- echo "OK";
- }
- else
- {
- echo "NOK2";
- }
- }
- else
- {
- echo "<script language='JavaScript'>window.history.back() </script>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement