Файловый менеджер - Редактировать - /home/d46091/drivinglicencehelp.com/test.php
Назад
<?php include_once('config.php'); use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require 'vendor/autoload.php'; $user='user'.(rand(5,10000)); if(isset($_POST['save'])) { $sql = " INSERT INTO users ( user_id, user_name, password, email, applicant_name, status, date, login_status ) VALUES ( '".$_POST["id"]."', '".$user."', '".$_POST["mobile"]."', '".$_POST["email"]."', '".$_POST["name"]."', 'Paid', '".$_POST["date"]."', '1' )"; if(!$result = $conn->query($sql)) { die('There was an error running the query [' . $conn->error . ']'); } $mail = new PHPMailer(true); try { $mail->isSMTP(); $mail->Host = 'drivinglicencehelp.com'; $mail->SMTPAuth = true; $mail->Username = 'no-reply@drivinglicencehelp.com'; $mail->Password = 'freeDOM@611#'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->setFrom("no-reply@drivinglicencehelp.com", "Learner Licence Details"); $mail->addAddress("".$_POST["email"].""); $mail->addBcc("udyogaadhaaronline.org@gmail.com"); $mail->isHTML(true); $mail->Subject = "Login Details For Drivng Licence Guide Mock Test"; $mail->Body = " Dear <strong>".$_POST['name']."</strong>, <br><br> Your Login Details are <br> <a href='https://drivinglicencehelp.com/login.php'>Login Url For Online Mock Test</a> <br> USER NAME: ".$user."<br> PASSWORD: ".$_POST['mobile']."<br> <a href='https://drivinglicencehelp.com/uploads/sample/driving-licence-guide.pdf'>Download Your Online Driving Guide Book</a> "; $mail->send(); } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } } ?> <form action="test.php"method="post"autocomplete="off"> <label>id</label><br> <input type="text"name="id"><br> <label>passwod</label><br> <input type="text"name="mobile"><br> <label>emaild</label><br> <input type="text"name="email"><br> <label>name</label><br> <input type="text"name="name"><br> <label>date</label><br> <input type="text"name="date"><br> <input type="submit"name="save"> </form>
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка