<?php
echo "<h1>ADMIN.PHP FILE CHECK</h1><hr>";

if (file_exists('admin.php')) {
    $hash = md5_file('admin.php');
    $size = filesize('admin.php');
    $modified = date("Y-m-d H:i:s", filemtime('admin.php'));
    
    echo "<h2>File info:</h2>";
    echo "MD5 Hash: <strong>" . $hash . "</strong><br>";
    echo "Size: " . number_format($size) . " bytes<br>";
    echo "Modified: " . $modified . "<br><br>";
    
    echo "<h2>Expected (ADMIN-FINAL-ULTRA-CLEAN.php):</h2>";
    echo "MD5 Hash: <strong>7420609161fd040df04889c880925619</strong><br>";
    echo "Size: ~68,000 bytes<br><br>";
    
    if ($hash === '7420609161fd040df04889c880925619') {
        echo "<h2 style='color: green;'>✅ FILE JE ISPRAVAN! (moj upload)</h2>";
    } else {
        echo "<h2 style='color: red;'>❌ FILE NIJE MOJ! Neki drugi admin.php je uploadan!</h2>";
    }
    
    echo "<hr><h2>Naslov stranice u admin.php:</h2>";
    $content = file_get_contents('admin.php');
    if (preg_match('/<title>(.*?)<\/title>/i', $content, $matches)) {
        echo "Title tag: <strong>" . htmlspecialchars($matches[1]) . "</strong><br>";
    }
    
    if (stripos($content, 'Moj Panel') !== false) {
        echo "<br>🔴 PRONAŠAO 'Moj Panel' u admin.php!<br>";
    }
    
    if (stripos($content, 'TapTap Card Admin') !== false) {
        echo "<br>✅ PRONAŠAO 'TapTap Card Admin' u admin.php!<br>";
    }
    
} else {
    echo "❌ admin.php ne postoji!";
}
?>
