OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
creamAdmin
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/17/2025 10:17:24 AM
rwxrwxr-x
📁
PHPMailer
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📄
addPro.php
800 bytes
05/19/2025 10:07:22 AM
rw-r--r--
📄
dash.php
0 bytes
05/19/2025 10:07:22 AM
rw-r--r--
📄
dashboard.php
21.19 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
db_connect.php
292 bytes
05/19/2025 10:07:22 AM
rw-r--r--
📄
mail.php
2.01 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
proUsers.php
21.74 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
send_otp.php
1.38 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
userActivity.php
13.57 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
verification.php
4.83 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
verify_otp.php
644 bytes
05/19/2025 10:07:22 AM
rw-r--r--
Editing: send_otp.php
Close
<?php // sendOTP.php header('Content-Type: application/json'); include 'mail.php'; session_start(); // Start session to store OTP for validation // Function to send OTP via Email function sendEmailOTP($email, $otp) { // Create the HTML message $emailMessage = " <html> <head> <title>One Time Password (OTP) for Knobly Cream Admin</title> </head> <body> <p>Your One Time Password (OTP) for Knobly Cream Admin is:</p> <p><pre><strong>$otp</strong></pre></p> <br> <p>Regards,<br>Team Knobly Cream</p> </body> </html> "; $emailSubject = 'One Time Password (OTP) for Knobly Cream'; sendEmail('Prashanth', $email, '', $emailSubject, $emailMessage); return "Email sent to $email with OTP: $otp"; } $email = "prashanth@knobly.com"; // Validate input if (!$email ) { $response = array( 'success' => false, 'message' => 'Invalid input. Mobile and type are required.' ); echo json_encode($response); exit; } // Generate a random 6-digit OTP $otp = rand(1000, 9999); $_SESSION['otp'] = $otp; $sendResult = sendEmailOTP($email, $otp); // Assuming mobile holds email if type is email // Prepare the response $response = array( 'success' => true, 'message' => 'OTP generated and sent successfully.', ); echo json_encode($response);