OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
3-31-025chanakya
/
Xpress
/
vendor
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/26/2025 04:21:24 AM
rwxr-xr-x
📄
_get.section.collection.php
58.55 KB
03/26/2025 04:16:39 AM
rw-r--r--
📄
_get.section.create.php
21.82 KB
03/26/2025 04:16:39 AM
rw-r--r--
📄
_get.section.general.php
8.06 KB
03/26/2025 04:16:40 AM
rw-r--r--
📄
autoload.php
771 bytes
03/26/2025 04:16:39 AM
rw-r--r--
📁
aws
-
03/26/2025 04:21:32 AM
rwxr-xr-x
📁
bin
-
03/26/2025 04:20:57 AM
rwxr-xr-x
📄
bounceViewList.php
5.48 KB
03/26/2025 04:16:39 AM
rw-r--r--
📄
chk.logged.in.php
1.16 KB
03/26/2025 04:16:39 AM
rw-r--r--
📄
chk.login.php
1.31 KB
03/26/2025 04:16:39 AM
rw-r--r--
📁
composer
-
03/26/2025 04:20:58 AM
rwxr-xr-x
📄
d_get.section.collection.php
57.93 KB
03/26/2025 04:16:39 AM
rw-r--r--
📄
d_get.section.create.php
21.87 KB
03/26/2025 04:16:39 AM
rw-r--r--
📄
get.section.account.php
8.47 KB
03/26/2025 04:16:39 AM
rw-r--r--
📄
get.section.analytics.php
11.46 KB
03/26/2025 04:16:39 AM
rw-r--r--
📄
get.section.collection.php
58.52 KB
03/26/2025 04:16:39 AM
rw-r--r--
📄
get.section.community.php
5.88 KB
03/26/2025 04:16:39 AM
rw-r--r--
📄
get.section.create.php
22.41 KB
03/26/2025 04:16:39 AM
rw-r--r--
📄
get.section.curated.php
5.07 KB
03/26/2025 04:16:39 AM
rw-r--r--
📄
get.section.dashboard.php
3.31 KB
03/26/2025 04:16:39 AM
rw-r--r--
📄
get.section.feed.php
6.87 KB
03/26/2025 04:16:39 AM
rw-r--r--
📄
get.section.general.php
9.31 KB
03/26/2025 04:16:39 AM
rw-r--r--
📄
get.section.newsletter.php
9.25 KB
03/26/2025 04:16:39 AM
rw-r--r--
📄
get.section.request.article.php
5.82 KB
03/26/2025 04:16:39 AM
rw-r--r--
📄
get.section.settings.php
21.15 KB
03/26/2025 04:16:39 AM
rw-r--r--
📄
get.section.team.php
6.72 KB
03/26/2025 04:16:39 AM
rw-r--r--
📄
get.section.utils.php
4.1 KB
03/26/2025 04:16:39 AM
rw-r--r--
📁
guzzlehttp
-
03/26/2025 04:21:34 AM
rwxr-xr-x
📄
logout.php
428 bytes
03/26/2025 04:16:39 AM
rw-r--r--
📁
mtdowling
-
03/26/2025 04:21:34 AM
rwxr-xr-x
📁
phpmailer
-
03/26/2025 04:21:34 AM
rwxr-xr-x
📁
psr
-
03/26/2025 04:21:35 AM
rwxr-xr-x
📁
ralouphie
-
03/26/2025 04:21:35 AM
rwxr-xr-x
📄
sendgrid.php
3.62 KB
03/26/2025 04:16:39 AM
rw-r--r--
📁
symfony
-
03/26/2025 04:21:35 AM
rwxr-xr-x
📄
upload.php
2.4 KB
03/26/2025 04:16:39 AM
rw-r--r--
📄
verify.php
2.59 KB
03/26/2025 04:16:39 AM
rw-r--r--
📄
verify_email.php
6.59 KB
03/26/2025 04:16:39 AM
rw-r--r--
📁
wildbit
-
03/26/2025 04:21:35 AM
rwxr-xr-x
📄
z.get.section.feed.php
6.88 KB
03/26/2025 04:16:39 AM
rw-r--r--
Editing: verify_email.php
Close
<?php include '../inc/validate.logged.php'; require 'vendor/autoload.php'; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; use Aws\Ses\SesClient; use Aws\Exception\AwsException; // AWS credentials $awsAccessKeyId = 'AKIARWSGL3TOIAEQEUPU'; $awsSecretAccessKey = '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'; $region = 'ap-south-1'; // Change the region if necessary // This keys is for the sending the mail $awsAccessKey = 'AKIARWSGL3TOGXCYQJVY'; $awsSecretKey = 'BIj9DvNM3uX+cckSX4So50fqln6DEhie6dMJpe3AjzqK'; // Create an AWS SES client $client = new SesClient([ // 'version' => 'latest', 'version' => '2010-12-01', 'region' => $region, 'credentials' => [ 'key' => $awsAccessKeyId, 'secret' => $awsSecretAccessKey, ], ]); function listEmail($client) { try { // Send email verification request $result = $client->listIdentities([ 'IdentityType' => 'EmailAddress', ]); $listEmail = $result->get('Identities'); echo "<pre>"; print_r($listEmail); echo "</pre>"; return $listEmail; } catch (AwsException $e) { // Output error message if fails echo "Error: " . $e->getMessage() . "\n"; } } function verifyEmail($client, $emailAddress) { try { // Send email verification request $result = $client->VerifyEmailAddress([ 'EmailAddress' => $emailAddress, ]); // Output the result echo "Verification request sent to " . $emailAddress . ". Please check the email inbox for the verification link.<br><br>"; echo "After verifying the email, Please click the below button to set the Bounce, Complaints and Delivery emails for the analytics..<br> "; echo "<button class='btn btn-primary' onclick='verifyNotification(\"" . $emailAddress . "\")'>Please Click Here</button>"; } catch (AwsException $e) { // Output error message if fails echo "Error: " . $e->getMessage() . "\n"; } } $awsAccessKey = 'AKIARWSGL3TOGXCYQJVY'; $awsSecretKey = 'BIj9DvNM3uX+cckSX4So50fqln6DEhie6dMJpe3AjzqK'; function sendEmail($fromEmail, $fromName, $toName, $toEmail, $emailSubject, $emailBody) { global $awsAccessKey; global $awsSecretKey; $mail = new PHPMailer(true); try { $mail->CharSet = 'UTF-8'; $mail->isSMTP(); $mail->Host = 'email-smtp.ap-south-1.amazonaws.com'; $mail->Username = $awsAccessKey; $mail->Password = $awsSecretKey; $mail->Port = 587; $mail->SMTPDebug = 2; // Set to 2 for detailed debug output $mail->SMTPAuth = true; $mail->SMTPSecure = 'tls'; $mail->setFrom($fromEmail, $fromName); $mail->addAddress($toEmail, $toName); $mail->isHTML(true); $mail->Subject = $emailSubject; $mail->Body = $emailBody; $mail->send(); return true; } catch (Exception $e) { return false; } } function checkVerifyEmail($client, $checkEmail) { $listEmail = listEmail($client); foreach ($listEmail as $email) { if ($email == $checkEmail) { if (sendEmail($checkEmail, 'Test', 'Trash', 'trash@knobly.com', 'Verified email Status', 'This email is to check the email is verified or not')) { return true; } else { return false; } } } return false; } ?> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Knobly Cream: Create • Reach • Measure</title> <!-- Bootstrap CSS --> <link rel="stylesheet" href="../../assets/css/bootstrap.min.4.5.css"> <!-- Font Awesome CSS --> <link rel="stylesheet" href="../../assets/css/all.min.5.15.css"> <!-- Additional Stylesheets --> <link rel="stylesheet" href="../../assets/css/animate.min.4.0.css"> <link rel="stylesheet" href="../inc/fontawesome/css/all.min.css"> <link rel="stylesheet" href="../inc/magnific-popup.css"> <link rel="stylesheet" href="../inc/style.css"> <!-- jQuery --> <script src="../../assets/js/jquery-3.6.0.min.js"></script> <script src="../../assets/js/jquery-3.6.0.min.js"></script> <!-- Bootstrap JS and dependencies --> <script src="../../assets/js/bootstrap.min.4.5.js" ></script> <script src="../../assets/js/Chart.min.2.8.js" crossorigin="anonymous"></script> <script src="https://cdn.tiny.cloud/1/u5oz235qw5jiqww4udm90ocp9zg2rncblqo2ch0ym3twjgyt/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script> <script src="../../assets/js/zf-widget.js"></script> <script src="../inc/jquery.magnific-popup.min.js"></script> <script src="../inc/common.js"></script> <script src="../../assets/js/jquery-3.5.1.slim.min.js"></script> <script src="../../assets/css/popper.2.5.js"></script> <script src="../../assets/js/bootstrap.bundle.min.4.5.js"></script> <link href="../../assets/css/bootstrap.min.4.5.css" rel="stylesheet"> <link href="../../assets/css/bootstrap.min.css" rel="stylesheet"> <script src="../../assets/js/bootstrap.bundle.min.js"></script> </head> <body class="sb-nav-fixed"> <?php include "navbar.php"; ?> <div id="layoutSidenav"> <?php include 'sidebar.php'; ?> <div id="layoutSidenav_content"> <main> <div id="panelContent" class="container-fluid"> <div id="response"> <? if (isset($_POST['email'])) { $email = $_POST['email']; verifyEmail($client, $email); } ?> </div> </div> </main> </div> </div> </body> <script src="../../assets/js/jquery-3.6.0.min.js"></script> <script> function verifyNotification(email) { $.ajax({ url: "checkNotificationTopics.php", type: "POST", data: { check_email: email }, success: function(response) { $("#response").html(response); $("#response").append("<a href='index.php'><button class='btn btn-primary'>Go Back to Dashboard</button></a>"); }, error: function(xhr, status, error) { $("#response").html("An error occurred: " + error); } }); } </script> </html>