OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
NLEditor
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/17/2025 10:17:24 AM
rwxrwxr-x
📄
Edit-arvind-index.php
62.34 KB
05/19/2025 10:07:22 AM
rw-r--r--
📁
NW_images
-
04/30/2025 06:15:48 AM
rwxr-xr-x
📄
aditya_index.php
45.01 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
arvind-save-template.php
3.7 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
arvinds-index.php
53.27 KB
05/19/2025 10:07:22 AM
rw-r--r--
📁
assets
-
04/30/2025 06:15:43 AM
rwxr-xr-x
📄
db_gallery.php
294 bytes
05/19/2025 10:07:22 AM
rw-r--r--
📄
delete_image.php
646 bytes
05/19/2025 10:07:22 AM
rw-r--r--
📄
edit_template.php
658 bytes
05/19/2025 10:07:22 AM
rw-r--r--
📄
fetch_data.php
779 bytes
05/19/2025 10:07:22 AM
rw-r--r--
📄
fetch_titles.php
0 bytes
05/19/2025 10:07:22 AM
rw-r--r--
📁
images10
-
04/30/2025 06:15:11 AM
rwxr-xr-x
📁
images11
-
04/30/2025 06:15:11 AM
rwxr-xr-x
📁
images12
-
04/30/2025 06:15:11 AM
rwxr-xr-x
📁
images13
-
04/30/2025 06:15:12 AM
rwxr-xr-x
📁
images14
-
04/30/2025 06:15:13 AM
rwxr-xr-x
📁
images15
-
04/30/2025 06:15:14 AM
rwxr-xr-x
📁
images16
-
04/30/2025 06:15:15 AM
rwxr-xr-x
📁
images17
-
04/30/2025 06:15:15 AM
rwxr-xr-x
📁
images18
-
04/30/2025 06:15:16 AM
rwxr-xr-x
📁
images19
-
04/30/2025 06:15:16 AM
rwxr-xr-x
📁
images2
-
04/30/2025 06:15:17 AM
rwxr-xr-x
📁
images20
-
04/30/2025 06:15:18 AM
rwxr-xr-x
📁
images21
-
04/30/2025 06:15:18 AM
rwxr-xr-x
📁
images3
-
04/30/2025 06:15:19 AM
rwxr-xr-x
📁
images4
-
04/30/2025 06:15:20 AM
rwxr-xr-x
📁
images5
-
04/30/2025 06:15:20 AM
rwxr-xr-x
📁
images6
-
04/30/2025 06:15:21 AM
rwxr-xr-x
📁
images7
-
04/30/2025 06:15:22 AM
rwxr-xr-x
📁
images8
-
04/30/2025 06:15:23 AM
rwxr-xr-x
📁
images9
-
04/30/2025 06:15:23 AM
rwxr-xr-x
📄
index.php
45.74 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
load_template.php
2.2 KB
05/19/2025 10:07:22 AM
rw-r--r--
📁
newsletter
-
04/30/2025 06:15:46 AM
rwxr-xr-x
📄
nleditor_navbar.php
10.19 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
save-template.php
2.39 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
script.js
34.02 KB
04/30/2025 06:15:11 AM
rw-r--r--
📄
styles.css
2.43 KB
04/30/2025 06:15:11 AM
rw-r--r--
📄
template1.jpg
0 bytes
04/30/2025 06:15:11 AM
rw-r--r--
📄
test.php
1.58 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
test_index.php
47.04 KB
05/19/2025 10:07:22 AM
rw-r--r--
📄
texts.txt
1.7 KB
04/30/2025 06:15:11 AM
rw-r--r--
📄
upload.php
858 bytes
05/19/2025 10:07:22 AM
rw-r--r--
📁
uploads
-
05/19/2025 10:07:22 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(); ?>