feat: add even more vulnerabilities! migrate to mysql

This commit is contained in:
2025-06-05 21:25:40 +03:00
parent 11b7696c19
commit 5bea4d52cb
10 changed files with 236 additions and 53 deletions

View File

@ -1,3 +1,10 @@
<?php
include_once 'database.php';
if (!isset($users)) {
$users = getAllUsers();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
@ -8,6 +15,20 @@
</head>
<body>
<?php include 'header.php'; ?>
<h1>Users - Work in progress!</h1>
<h2>Users:</h2>
<?php if (empty($users)): ?>
<p>No users found.</p>
<?php else: ?>
<?php foreach ($users as $user): ?>
<div class="product">
<h3><?= $user[1] ?></h3>
<p>Id: <?= $user[0] ?></p>
<p>Email: <strong><?php echo $user[2]; ?></strong></p>
</div>
<?php endforeach; ?>
<?php endif; ?>
</body>
</html>