Sindbad~EG File Manager
<?php
require_once 'config/database.php';
$db = new CopMadinaDB();
$conn = $db->getConnection();
// Clear failed login attempts from audit logs
$stmt = $conn->prepare("DELETE FROM audit_logs WHERE action = 'failed_login'");
$result = $stmt->execute();
if ($result) {
echo "<h2>Login Attempts Cleared Successfully!</h2>";
echo "All failed login attempts have been removed from the audit logs.<br>";
echo "You can now try logging in again.<br><br>";
// Show remaining audit log entries
$stmt = $conn->prepare("SELECT COUNT(*) as total FROM audit_logs");
$stmt->execute();
$count = $stmt->fetch();
echo "Remaining audit log entries: " . $count['total'] . "<br>";
echo "<a href='login.php'>Go to Login Page</a>";
} else {
echo "<h2>Failed to Clear Login Attempts!</h2>";
echo "There was an error clearing the failed login attempts.";
}
?>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists