OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
CreateLeadPage
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/17/2025 10:17:24 AM
rwxrwxr-x
📁
NW_images
-
03/13/2025 09:27:20 AM
rwxrwxrwx
📁
assets
-
03/13/2025 09:27:20 AM
rwxr-xr-x
📄
db_gallery.php
292 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
edit_template.php
658 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
fetch_data.php
773 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
fetch_titles.php
0 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
form.js
7.64 KB
03/13/2025 09:27:10 AM
rw-r--r--
📄
getAnalyticsData.php
1.45 KB
05/19/2025 10:07:15 AM
rw-r--r--
📁
images2
-
03/13/2025 10:38:29 AM
rwxr-xr-x
📁
images3
-
03/13/2025 10:38:30 AM
rwxr-xr-x
📁
images4
-
03/13/2025 10:38:31 AM
rwxr-xr-x
📄
index.php
11.42 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
load_template.php
2.21 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
nleditor_navbar.php
22.6 KB
05/19/2025 10:07:15 AM
rw-r--r--
📁
pages
-
03/13/2025 09:27:22 AM
rwxrwxrwx
📁
process
-
05/19/2025 10:07:15 AM
rwxr-xr-x
📄
process.js
30.77 KB
03/15/2025 04:35:27 AM
rw-r--r--
📄
processb.js
31.21 KB
03/13/2025 09:27:11 AM
rw-r--r--
📄
save-template.php
2.69 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
savedPages.php
21.06 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
script.js
34.02 KB
03/13/2025 09:27:11 AM
rw-r--r--
📄
styles.css
2.43 KB
03/13/2025 09:27:11 AM
rw-r--r--
📄
upload.php
858 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📁
uploads
-
06/05/2025 11:43:53 AM
rwxrwxrwx
Editing: getAnalyticsData.php
Close
<?php // Include your database connection here include "../assets/php/db_config.php"; header('Content-Type: application/json'); // Get the page ID from the AJAX request $pageId = $_POST['id'] ?? null; // Make sure the page ID is valid if (!$pageId) { echo json_encode(['success' => false, 'message' => 'Invalid page ID']); exit; } // Query the database to fetch the analytics data for the given page ID $sql = "SELECT name, email, mobile, company, created_at, designation,query, state, city FROM user_landing_page_leads WHERE page_id = ?"; $stmt = $creamdb->prepare($sql); $stmt->bind_param("i", $pageId); // Bind the page ID to the query $stmt->execute(); $result = $stmt->get_result(); // Check if data was found if ($result->num_rows > 0) { $data = []; // Fetch all rows while ($row = $result->fetch_assoc()) { $data[] = [ 'name' => $row['name'], 'email' => $row['email'], 'mobile' => $row['mobile'], 'company' => $row['company'], 'created_at' => $row['created_at'], 'designation' => $row['designation'], 'query' => $row['query'], 'state' => $row['state'], 'city' => $row['city'] ]; } echo json_encode(['success' => true, 'data' => $data]); } else { echo json_encode(['success' => false, 'message' => 'No data found for this page']); } $stmt->close(); $creamdb->close(); ?>