feat: add even more vulnerabilities! migrate to mysql
This commit is contained in:
21
users.php
21
users.php
@ -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>
|
||||
|
Reference in New Issue
Block a user