OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
3-31-025chanakya
/
Xpress
/
NLEditor
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/26/2025 04:21:24 AM
rwxr-xr-x
📄
Edit-arvind-index.php
61.9 KB
03/26/2025 04:16:33 AM
rw-r--r--
📁
NW_images
-
03/26/2025 04:21:28 AM
rwxr-xr-x
📄
aditya_index.php
44.57 KB
03/26/2025 04:16:33 AM
rw-r--r--
📄
arvind-save-template.php
3.75 KB
03/26/2025 04:16:33 AM
rw-r--r--
📄
arvinds-index.php
52.82 KB
03/26/2025 04:16:33 AM
rw-r--r--
📁
assets
-
03/26/2025 04:21:24 AM
rwxr-xr-x
📄
db_gallery.php
285 bytes
03/26/2025 04:16:33 AM
rw-r--r--
📄
delete_image.php
646 bytes
03/26/2025 04:16:33 AM
rw-r--r--
📄
edit_template.php
658 bytes
03/26/2025 04:16:33 AM
rw-r--r--
📄
fetch_data.php
779 bytes
03/26/2025 04:16:33 AM
rw-r--r--
📄
fetch_titles.php
0 bytes
03/26/2025 04:16:33 AM
rw-r--r--
📁
images10
-
03/26/2025 04:20:38 AM
rwxr-xr-x
📁
images11
-
03/26/2025 04:20:38 AM
rwxr-xr-x
📁
images12
-
03/26/2025 04:20:38 AM
rwxr-xr-x
📁
images13
-
03/26/2025 04:20:39 AM
rwxr-xr-x
📁
images14
-
03/26/2025 04:20:40 AM
rwxr-xr-x
📁
images15
-
03/26/2025 04:20:43 AM
rwxr-xr-x
📁
images16
-
03/26/2025 04:20:43 AM
rwxr-xr-x
📁
images17
-
03/26/2025 04:20:44 AM
rwxr-xr-x
📁
images18
-
03/26/2025 04:20:44 AM
rwxr-xr-x
📁
images19
-
03/26/2025 04:20:45 AM
rwxr-xr-x
📁
images2
-
03/26/2025 04:20:47 AM
rwxr-xr-x
📁
images20
-
03/26/2025 04:20:47 AM
rwxr-xr-x
📁
images21
-
03/26/2025 04:20:48 AM
rwxr-xr-x
📁
images3
-
03/26/2025 04:20:52 AM
rwxr-xr-x
📁
images4
-
03/26/2025 04:20:52 AM
rwxr-xr-x
📁
images5
-
03/26/2025 04:20:54 AM
rwxr-xr-x
📁
images6
-
03/26/2025 04:20:54 AM
rwxr-xr-x
📁
images7
-
03/26/2025 04:20:56 AM
rwxr-xr-x
📁
images8
-
03/26/2025 04:20:56 AM
rwxr-xr-x
📁
images9
-
03/26/2025 04:20:57 AM
rwxr-xr-x
📄
index.php
45.3 KB
03/26/2025 04:16:33 AM
rw-r--r--
📄
load_template.php
2.2 KB
03/26/2025 04:16:33 AM
rw-r--r--
📁
newsletter
-
03/26/2025 04:21:25 AM
rwxr-xr-x
📄
nleditor_navbar.php
10.1 KB
03/26/2025 04:16:33 AM
rw-r--r--
📄
save-template.php
2.45 KB
03/26/2025 04:16:33 AM
rw-r--r--
📄
script.js
34.02 KB
03/26/2025 04:16:33 AM
rw-r--r--
📄
styles.css
2.43 KB
03/26/2025 04:16:33 AM
rw-r--r--
📄
template1.jpg
0 bytes
03/26/2025 04:16:33 AM
rw-r--r--
📄
test.php
1.58 KB
03/26/2025 04:16:33 AM
rw-r--r--
📄
test_index.php
46.51 KB
03/26/2025 04:16:33 AM
rw-r--r--
📄
texts.txt
1.7 KB
03/26/2025 04:16:33 AM
rw-r--r--
📄
upload.php
858 bytes
03/26/2025 04:16:33 AM
rw-r--r--
📁
uploads
-
03/26/2025 04:20:57 AM
rwxr-xr-x
Editing: test.php
Close
<?php // Database connection settings include 'db_gallery.php'; // Ensure that the 'template' parameter is passed if (isset($_GET['template'])) { $templateName = $_GET['template']; // Prepare SQL query to fetch the template path from the database $stmt = $conn->prepare("SELECT image_path FROM newsletters WHERE template_name = ?"); $stmt->bind_param("s", $templateName); $stmt->execute(); // Get the result $stmt->store_result(); // Check if the template exists in the database if ($stmt->num_rows > 0) { // Bind the result to a variable $stmt->bind_result($templatePath); $stmt->fetch(); // Check if the template path is a valid URL if (filter_var($templatePath, FILTER_VALIDATE_URL)) { // Output the image in an <img> tag for previewing echo '<img src="' . $templatePath . '" alt="Template Image" />'; } else { // Return an error if the template path is not a valid URL http_response_code(404); echo '<p>Error: Invalid template path.</p>'; } } else { // Return an error if the template name does not exist in the database http_response_code(404); echo '<p>Error: Template not found in the database.</p>'; } // Close the prepared statement $stmt->close(); } else { // Return an error if no template parameter is provided http_response_code(400); echo '<p>Error: No template specified.</p>'; } // Close the database connection $conn->close(); ?>