Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/monara/public_html/test.athavaneng.com/themes.php on line 99
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 226
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 227
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 228
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 229
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 230
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 231
System Database Initialization Seeder";
try {
// 1. Verify/Create the password column if you haven't already
$pdo->exec("ALTER TABLE users ADD COLUMN IF NOT EXISTS password VARCHAR(255) NULL AFTER email");
echo "✓ User schema validation complete.
";
// 2. Clear out any previous conflicting dummy users
$pdo->exec("DELETE FROM users WHERE email = 'akib.ahmad@benholdings.com'");
// 3. Hash the initial secret key matching modern security constraints
$default_password = 'admin123_secure';
$hashed_password = password_hash($default_password, PASSWORD_BCRYPT);
// 4. Inject the primary Administrative User profile
$stmt = $pdo->prepare("INSERT INTO users (full_name, email, role, password) VALUES (?, ?, ?, ?)");
$stmt->execute([
'Akib Ahmad',
'akib.ahmad@benholdings.com',
'Admin',
$hashed_password
]);
echo "";
echo "Success! Master Admin user has been injected into the system database matrix.
";
echo "Email: akib.ahmad@benholdings.com
";
echo "Password: admin123_secure
";
echo "Please delete this file (seed.php) immediately after running it for security purposes.";
echo "
";
} catch (PDOException $e) {
echo "";
echo "Database Operation Failure:
" . htmlspecialchars($e->getMessage());
echo "
";
}
?>