OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
back_aws-ses
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/17/2025 10:17:24 AM
rwxrwxr-x
📄
.browserslistrc
208 bytes
01/04/2025 01:08:16 PM
rw-r--r--
📄
.gitignore
42 bytes
01/04/2025 01:08:16 PM
rw-r--r--
📄
.htaccess
803 bytes
01/04/2025 01:08:16 PM
rw-r--r--
📄
.htaccess.swp
12 KB
01/04/2025 01:08:16 PM
rw-r--r--
📄
.travis.yml
199 bytes
01/04/2025 01:08:17 PM
rw-r--r--
📄
03-01-25index.php
8.44 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
04-01-25navbar.php
23.27 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
addList.php
6.67 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
aditya_navbar.php
23.72 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
allTemplates.php
5 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
b_navbar.php
7.84 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
bbsns_subscribe.php
5.14 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
bcreateList.php
9.61 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
blacklist.php
14.78 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
bounceViewList.php
7.25 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
bounce_handler.php
5 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
bprocess_emails.php
6.73 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
checkNotificationTopics.php
5.11 KB
05/19/2025 10:07:22 AM
rw-r--r--
📁
check_identity
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📄
checknotif.php
1.01 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
ckeditor.php
2.14 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
click_handler.php
1.75 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
combined.php
11.23 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
complaintsViewList.php
6.34 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
complaints_handler.php
2.89 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
composer.json
200 bytes
01/04/2025 01:08:17 PM
rw-r--r--
📄
composer.lock
39.12 KB
01/04/2025 01:08:17 PM
rw-r--r--
📄
createList.php
18.26 KB
05/19/2025 10:07:22 AM
rw-r--r--
📁
credentials
-
01/04/2025 01:08:19 PM
rwxr-xr-x
📄
csv.php
13.16 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
db.php
1000 bytes
05/19/2025 10:07:21 AM
rw-r--r--
📄
deleteCampaign.php
966 bytes
05/19/2025 10:07:22 AM
rw-r--r--
📄
delete_list.php
509 bytes
05/19/2025 10:07:21 AM
rw-r--r--
📄
delete_users.php
435 bytes
05/19/2025 10:07:21 AM
rw-r--r--
📄
deliveryViewList.php
6.15 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
delivery_handler.php
3.25 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
download_Complaints.php
974 bytes
05/19/2025 10:07:21 AM
rw-r--r--
📄
download_bounces.php
1007 bytes
05/19/2025 10:07:21 AM
rw-r--r--
📄
download_delivered.php
971 bytes
05/19/2025 10:07:22 AM
rw-r--r--
📄
download_unique_open.php
1.6 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
duplicate_campaign.php
1.62 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
edit_campaign.php
1.45 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
edit_list.php
9.89 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
feedback.php
1.66 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
footer.php
1.7 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
groupchatnavbar.php
607 bytes
05/19/2025 10:07:21 AM
rw-r--r--
📄
himanshu_navbar.php
7.84 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
housekeeping.php
15.37 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
index.php
10.79 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
insert_list.php
2.64 KB
05/19/2025 10:07:21 AM
rw-r--r--
📁
js
-
01/04/2025 01:08:19 PM
rwxr-xr-x
📄
load.php
159 bytes
05/19/2025 10:07:22 AM
rw-r--r--
📁
log
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📄
main.css
1.3 KB
01/04/2025 01:08:18 PM
rw-r--r--
📄
navbar.php
22.59 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
newCompaign.php
13.16 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
open_handler.php
1.75 KB
05/19/2025 10:07:22 AM
rw-r--r--
📁
process
-
05/19/2025 10:07:21 AM
rwxr-xr-x
📄
process_emails.php
11.3 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
real-recipients.csv
39.48 KB
01/04/2025 01:08:18 PM
rw-r--r--
📄
resubscribe.php
5.51 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
sample.csv
55 bytes
01/04/2025 01:08:18 PM
rw-r--r--
📄
save.php
252 bytes
05/19/2025 10:07:21 AM
rw-r--r--
📄
save_campaign.php
612 bytes
05/19/2025 10:07:21 AM
rw-r--r--
📄
saved_content.html
6.48 KB
01/04/2025 01:08:18 PM
rw-r--r--
📄
send_email.php
987 bytes
05/19/2025 10:07:21 AM
rw-r--r--
📄
send_email_campaignGraph.php
2.24 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
sendgrid.php
3.62 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
showListMembers.php
13.98 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
showcase.php
7.93 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
sidebar.php
0 bytes
05/19/2025 10:07:21 AM
rw-r--r--
📄
sns_subscribe.php
5.25 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
submit_form.php
2.48 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
test-mail.csv
337 bytes
01/04/2025 01:08:19 PM
rw-r--r--
📄
test.php
969 bytes
05/19/2025 10:07:21 AM
rw-r--r--
📄
test_process_emails.php
1.91 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
unsubscribe.php
3.8 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
upload_image.php
606 bytes
05/19/2025 10:07:21 AM
rw-r--r--
📁
uploads
-
01/04/2025 01:08:31 PM
rwxr-xr-x
📁
vendor
-
05/19/2025 10:07:22 AM
rwxr-xr-x
📄
verify.html
486 bytes
01/04/2025 01:08:19 PM
rw-r--r--
📄
verify.php
3.12 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
verify_email.php
5.12 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
viewCampaign.php
16.58 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
viewList.php
13.77 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
zcreateList.php
13.51 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
znewCompaign.php
8.29 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
zprocess_emails.php
10.19 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
zviewList.php
14.63 KB
05/19/2025 10:07:21 AM
rw-r--r--
📄
zzindex.php
10.24 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
zzviewList.php
14.63 KB
05/19/2025 10:07:21 AM
rw-r--r--
Editing: blacklist.php
Close
<?php include '../assets/php/validate.logged.php'; include 'db.php'; include '../assets/php/config.php'; include '../assets/php/function.php'; // Handle adding to blacklist if (isset($_POST['action']) && $_POST['action'] == 'add') { $email = $_POST['email']; $reason = $_POST['reason'] ?? ''; if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { echo "Invalid email address."; exit; } $stmt = $conn->prepare("INSERT INTO blacklist (user_id, email, reason) VALUES (?, ?, ?)"); $stmt->bind_param('iss', $gUserId, $email, $reason); if ($stmt->execute()) { echo "Email successfully added to the blacklist."; } else { echo "Error adding email: " . $conn->error; } $stmt->close(); } // Handle removing from blacklist if (isset($_POST['action']) && $_POST['action'] == 'remove') { $email = $_POST['email']; $stmt = $conn->prepare("DELETE FROM blacklist WHERE email = ?"); $stmt->bind_param('s', $email); if ($stmt->execute()) { echo "Email successfully removed from the blacklist."; } else { echo "Error removing email: " . $conn->error; } $stmt->close(); } // Handle blocking by domain if (isset($_POST['action']) && $_POST['action'] == 'block_domain') { $domain = $_POST['domain']; if (empty($domain)) { echo "Domain is required."; exit; } $stmt = $conn->prepare("INSERT INTO blacklist (user_id, email, reason) VALUES (?, ?, 'Blocked by domain')"); $domainWildcard = "%@$domain"; $stmt->bind_param('is', $gUserId, $domainWildcard); if ($stmt->execute()) { echo "Domain successfully blocked."; } else { echo "Error blocking domain: " . $conn->error; } $stmt->close(); } // Handle removing by domain if (isset($_POST['action']) && $_POST['action'] == 'unblock_domain') { $domain = $_POST['domain']; if (empty($domain)) { echo "Domain is required."; exit; } $stmt = $conn->prepare("DELETE FROM blacklist WHERE email LIKE ?"); $domainWildcard = "%@$domain"; $stmt->bind_param('s', $domainWildcard); if ($stmt->execute()) { echo "Domain successfully unblocked."; } else { echo "Error unblocking domain: " . $conn->error; } $stmt->close(); } // Handle bulk email deletion if (isset($_POST['action']) && $_POST['action'] == 'bulk_delete') { $emails = $_POST['emails']; // Prepare the statement for bulk deletion $emailArray = explode(',', $emails); $placeholders = implode(',', array_fill(0, count($emailArray), '?')); $stmt = $conn->prepare("DELETE FROM blacklist WHERE email IN ($placeholders)"); $stmt->bind_param(str_repeat('s', count($emailArray)), ...$emailArray); if ($stmt->execute()) { echo "Emails successfully removed from the blacklist."; } else { echo "Error removing emails: " . $conn->error; } $stmt->close(); } // Fetch blacklisted emails $limit = 10; $page = isset($_GET['page']) ? intval($_GET['page']) : 1; $offset = ($page - 1) * $limit; $blacklistQuery = "SELECT * FROM blacklist where user_id = $gUserId LIMIT $limit OFFSET $offset"; $blacklistResult = $conn->query($blacklistQuery); // Fetch total records for pagination $totalQuery = "SELECT COUNT(*) as total FROM blacklist"; $totalResult = $conn->query($totalQuery); $totalRow = $totalResult->fetch_assoc(); $totalRecords = $totalRow['total']; $totalPages = ceil($totalRecords / $limit); ?> <!DOCTYPE html> <html lang="en"> <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="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" crossorigin="anonymous" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"> <!-- jQuery --> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <!-- Font Awesome CSS --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.min.css" /> <script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.js" crossorigin="anonymous"></script> <script src="https://cdn.tiny.cloud/1/u5oz235qw5jiqww4udm90ocp9zg2rncblqo2ch0ym3twjgyt/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script> <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.10.5/font/bootstrap-icons.min.css" rel="stylesheet"> <script src="../inc/common.js"></script> <link rel="stylesheet" href="main.css"> <link rel="stylesheet" href="../assets/css/styles.css"> <script type="text/javascript"> </script> <style> body { background-color: #f8f9fa; font-family: Arial, sans-serif; } .breadcrumb { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; padding: .75rem 1rem; margin-bottom: 1rem; list-style: none; background-color: transparent; border-radius: .25rem; } table { color: white; } .navbar { margin-bottom: 20px; } .table { margin-top: 20px; } .page-item.active .page-link { background-color: #007bff; border-color: #007bff; } .form-control { border-radius: 0.25rem; } .btn { border-radius: 0.25rem; } /* Custom styles for mobile responsiveness */ .breadcrumb { font-size: 1.1rem; } .form-group label { font-weight: bold; } /* Responsive tables */ .table-responsive { overflow-x: auto; } /* Adjust the padding for small screens */ @media (max-width: 576px) { .table { font-size: 0.9rem; } .breadcrumb { font-size: 1rem; } .form-control { font-size: 0.9rem; } .btn { font-size: 0.85rem; padding: 0.4rem 0.6rem; } .page-link { font-size: 0.85rem; } } /* Additional breakpoints for larger screens */ @media (max-width: 768px) { .container-fluid { padding: 0 10px; } .breadcrumb { font-size: 1.2rem; } .form-control { font-size: 1rem; } .btn { font-size: 1rem; } .table th, .table td { padding: 1.0rem; } } </style> </head> <body class="sb-nav-fixed"> <?php include "navbar.php"; ?> <?php include "../assets/php/go_backbar.php"; ?> <div id="layoutSidenav"> <?php include 'sidebar.php'; ?> <div class=" navbar-collapse " id="navbarNav"> <ul class="navbar-nav"> <li class="nav-item"> <a class="nav-link" href="createList.php"><i class="fas fa-clipboard-list"></i> All Campaigns</a> </li> <li class="nav-item"> <a class="nav-link" href="newCompaign.php"><i class="fas fa-calendar-plus"></i> New Campaign</a> </li> <li class="nav-item"> <a class="nav-link" href="addList.php"><i class="fas fa-list-alt"></i> Add List</a> </li> <li class="nav-item"> <a class="nav-link" href="viewList.php"><i class="fas fa-th-large"></i> View All Lists</a> </li> <li class="nav-item"> <a class="nav-link" href="housekeeping.php"><i class="fas fa-briefcase"></i> Housekeeping</a> </li> <li class="nav-item"> <a class="nav-link" href="blacklist.php"><i class="fas fa-user-times"></i> Blacklist</a> </li> <li class="nav-item"> <a class="nav-link" href="index.php"><i class="fas fa-mail-bulk"></i> Mail</a> </li> </ul> </div> <div id="layoutSidenav_content"> <main> <div id="panelContent" class="container-fluid"> <div class="container mt-5"> <ol class="breadcrumb my-3"> <li class="breadcrumb-item w-100" style="display:flex; justify-content:space-between; align-items:center;"> <h4>Blacklist Management</h4> </li> </ol> <!-- Form to Add Email to Blacklist --> <form action="blacklist.php" method="post" class="mb-4"> <input type="hidden" name="action" value="add"> <div class="form-group"> <label for="email">Email to add in Blacklist:</label> <input type="email" id="email" name="email" class="form-control" required> </div> <div class="form-group"> <label for="reason">Reason (optional):</label> <textarea id="reason" name="reason" class="form-control"></textarea> </div> <button type="submit" class="btn btn-primary">Add to Blacklist</button> </form> <!-- Form to Remove Email from Blacklist --> <form action="blacklist.php" method="post" class="mb-4"> <input type="hidden" name="action" value="remove"> <div class="form-group"> <label for="remove-email">Email to Remove from blacklist:</label> <input type="email" id="remove-email" name="email" class="form-control" required> </div> <button type="submit" class="btn btn-danger">Remove from Blacklist</button> </form> <!-- Form to Block by Domain --> <form action="blacklist.php" method="post" class="mb-4"> <input type="hidden" name="action" value="block_domain"> <div class="form-group"> <label for="domain">Domain to Block:</label> <input type="text" id="domain" name="domain" class="form-control" placeholder="example.com" required> </div> <button type="submit" class="btn btn-warning">Block Domain</button> </form> <!-- Table of Blacklisted Emails --> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>Email</th> <th>Reason</th> <th>Actions</th> </tr> </thead> <tbody> <?php while ($row = $blacklistResult->fetch_assoc()) { ?> <tr> <td><?php echo htmlspecialchars($row['email']); ?></td> <td><?php echo htmlspecialchars($row['reason']); ?></td> <td> <form action="blacklist.php" method="post" class="d-inline"> <input type="hidden" name="action" value="remove"> <input type="hidden" name="email" value="<?php echo htmlspecialchars($row['email']); ?>"> <button type="submit" class="btn btn-danger btn-sm">Remove</button> </form> </td> </tr> <?php } ?> </tbody> </table> </div> <!-- Pagination --> <nav aria-label="Page navigation example"> <ul class="pagination justify-content-center"> <li class="page-item <?php echo $page == 1 ? 'disabled' : ''; ?>"> <a class="page-link" href="?page=<?php echo $page - 1; ?>">Previous</a> </li> <?php for ($i = 1; $i <= $totalPages; $i++) { ?> <li class="page-item <?php echo $i == $page ? 'active' : ''; ?>"> <a class="page-link" href="?page=<?php echo $i; ?>"><?php echo $i; ?></a> </li> <?php } ?> <li class="page-item <?php echo $page == $totalPages ? 'disabled' : ''; ?>"> <a class="page-link" href="?page=<?php echo $page + 1; ?>">Next</a> </li> </ul> </nav> </div> </div> </main> </div> </div> <!-- Bootstrap JS & Dependencies --> <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.2/dist/umd/popper.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script> </body> </html>