����JFIF��`�`�����Viewing File: /home/u820193700/domains/throtllr.com/public_html/diagnose.php
<?php
header("Content-Type: text/html; charset=UTF-8");
echo "<html><head><title>Throtllr Deployment Diagnostic</title>";
echo "<style>body{font-family:monospace; background:#111; color:#eee; padding:20px;} h2{color:#44ff44;} .exists{color:#44ff44;} .missing{color:#ff4444; font-weight:bold;} </style></head><body>";

echo "<h2>Throtllr Server-Side Diagnostics</h2>";
echo "<p><strong>Date:</strong> " . date('Y-m-d H:i:s') . "</p>";
echo "<p><strong>Script Path:</strong> " . __FILE__ . "</p>";
echo "<p><strong>Web Root (DIR):</strong> " . __DIR__ . "</p>";

$files_to_check = [
    '.htaccess',
    'index.html',
    'index.php',
    'js/api.js',
    'js/app.js',
    'backend/api/db_core.php',
    'css/style.css',
    'avahan_motors_export.sql'
];

echo "<h3>File Presence Check:</h3><ul>";
foreach ($files_to_check as $file) {
    $full_path = __DIR__ . '/' . $file;
    if (file_exists($full_path)) {
        $perms = substr(sprintf('%o', fileperms($full_path)), -3);
        echo "<li>$file: <span class='exists'>EXISTS</span> (Perms: $perms)</li>";
    } else {
        echo "<li>$file: <span class='missing'>MISSING</span></li>";
    }
}
echo "</ul>";

echo "<h3>Directory Permissions Check:</h3><ul>";
$dirs = ['js', 'css', 'backend', 'backend/api', 'uploads', 'uploads/diaries', 'uploads/tours', 'uploads/blogs', 'uploads/media'];
foreach ($dirs as $dir) {
    $full_path = __DIR__ . '/' . $dir;
    if (is_dir($full_path)) {
        $perms = substr(sprintf('%o', fileperms($full_path)), -3);
        echo "<li>$dir/: <span class='exists'>EXISTS</span> (Perms: $perms)</li>";
    } else {
        echo "<li>$dir/: <span class='missing'>MISSING</span></li>";
    }
}
echo "</ul>";

echo "<h2>Next Steps:</h2>";
echo "<ol>";
echo "<li>If any folder or file says <strong>MISSING</strong>, please check your ZIP extraction settings.</li>";
echo "<li>If <strong>js/api.js</strong> exists but you still see the error, clear your browser cache (Ctrl+F5).</li>";
echo "<li>Run <strong>fix_permissions.php</strong> if permissions are not 755 for folders or 644 for files.</li>";
echo "</ol>";

echo "</body></html>";
?>
Back to Directory �������}�!1AQa"q2���#B��R��$3br� %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz�������������������������������������������������������������������������������� ������w�!1AQaq"2�B���� #3R�br� $4�%�&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz������������������������������������������������������������������������ ��?��_��+��?��(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(�����