50 lines
1.8 KiB
PHP
50 lines
1.8 KiB
PHP
<?php
|
|
// Test der korrigierten Formulare
|
|
echo "🔒 Test der korrigierten Formulare\n";
|
|
echo "================================\n\n";
|
|
|
|
$forms = [
|
|
'resources/views/auth/login.blade.php' => 'Login-Formular',
|
|
'resources/views/user-nail-polishes/create.blade.php' => 'Create Nail Polish',
|
|
'resources/views/user-nail-polishes/index.blade.php' => 'Remove Nail Polish',
|
|
'resources/views/nail-polishes/index.blade.php' => 'Admin Delete Nail Polish',
|
|
'resources/views/admin/users/create.blade.php' => 'Admin Create User',
|
|
'resources/views/admin/users/edit.blade.php' => 'Admin Edit User',
|
|
'resources/views/admin/users/index.blade.php' => 'Admin Delete User'
|
|
];
|
|
|
|
$allFixed = true;
|
|
|
|
foreach ($forms as $file => $description) {
|
|
if (file_exists($file)) {
|
|
$content = file_get_contents($file);
|
|
if (strpos($content, 'action="https://neonail.vogt.de.com') !== false) {
|
|
echo " ✅ $description: HTTPS-URL gefunden\n";
|
|
} else {
|
|
echo " ❌ $description: Keine HTTPS-URL gefunden\n";
|
|
$allFixed = false;
|
|
|
|
// Zeige die aktuelle action
|
|
if (preg_match('/action="([^"]+)"/', $content, $matches)) {
|
|
echo " Aktuelle action: " . $matches[1] . "\n";
|
|
}
|
|
}
|
|
} else {
|
|
echo " ❌ $description: Datei nicht gefunden\n";
|
|
$allFixed = false;
|
|
}
|
|
}
|
|
|
|
echo "\n";
|
|
if ($allFixed) {
|
|
echo "🎉 Alle Formulare sind jetzt mit HTTPS-URLs konfiguriert!\n";
|
|
echo "🔗 Testen Sie jetzt: https://neonail.vogt.de.com\n";
|
|
echo "📝 Safari-Sicherheitswarnungen sollten verschwunden sein.\n";
|
|
} else {
|
|
echo "⚠️ Einige Formulare müssen noch korrigiert werden.\n";
|
|
echo "🔧 Führen Sie das Fix-Script erneut aus.\n";
|
|
}
|
|
|
|
echo "\n✅ Formular-Test abgeschlossen!\n";
|
|
?>
|