V1rus Private
User / IP
:
216.73.217.108
Host / Server
:
190.92.174.125 / aerosofthealthcare.com
System
:
Linux s3739.bom1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
Cmd
|
Upload
|
Mass Deface
|
Create
|
Sym
:
/
home
/
aerosoft
/
public_html
/
InventorySystem
/
Viewing: debug_server.php
<?php // debug_server.php error_reporting(E_ALL); ini_set('display_errors', 1); echo "<h2>Server Environment Check</h2>"; // Check PHP Version echo "<p><strong>PHP Version:</strong> " . PHP_VERSION . "</p>"; // Check required extensions $required_extensions = ['mysqli', 'pdo', 'gd', 'mbstring', 'json']; echo "<p><strong>Required Extensions:</strong><br>"; foreach ($required_extensions as $ext) { echo extension_loaded($ext) ? "✓ $ext<br>" : "✗ $ext (MISSING)<br>"; } echo "</p>"; // Check file permissions $files_to_check = ['includes/database.php', 'includes/load.php', 'ledger.php']; echo "<p><strong>File Permissions:</strong><br>"; foreach ($files_to_check as $file) { if (file_exists($file)) { $perms = substr(sprintf('%o', fileperms($file)), -4); echo "$file: $perms<br>"; } else { echo "$file: NOT FOUND<br>"; } } echo "</p>"; // Check database connection echo "<p><strong>Database Connection:</strong><br>"; try { require_once('includes/load.php'); global $db; if ($db && $db->connect_errno) { echo "✗ Connection failed: " . $db->connect_error; } else { echo "✓ Database connected successfully<br>"; // Test ledger table $result = $db->query("SHOW TABLES LIKE 'ledger'"); echo $result && $result->num_rows > 0 ? "✓ Ledger table exists<br>" : "✗ Ledger table missing<br>"; // Test stores table $result = $db->query("SHOW TABLES LIKE 'stores'"); echo $result && $result->num_rows > 0 ? "✓ Stores table exists<br>" : "✗ Stores table missing<br>"; } } catch (Exception $e) { echo "✗ Error: " . $e->getMessage(); } echo "</p>"; ?>
Coded With 💗 by
HanzOFC