change author page

This commit is contained in:
mirivlad 2025-11-20 15:47:00 +08:00
parent 9404edad6e
commit 6517cb2bac
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ include '../views/header.php';
<tr> <tr>
<td><?= $user['id'] ?></td> <td><?= $user['id'] ?></td>
<td> <td>
<strong><?= e($user['username']) ?></strong> <strong><a href="/author.php?id=<?= $user['id'] ?>"><?= e($user['username']) ?></a></strong>
<?php if ($user['id'] == $_SESSION['user_id']): ?> <?php if ($user['id'] == $_SESSION['user_id']): ?>
<br><small style="color: #666;">(Вы)</small> <br><small style="color: #666;">(Вы)</small>
<?php endif; ?> <?php endif; ?>

View File

@ -1,7 +1,7 @@
<?php <?php
require_once 'config/config.php'; require_once 'config/config.php';
require_once 'models/Book.php'; require_once 'models/Book.php';
require_once 'views/header.php'; //require_once 'views/header.php';
$author_id = (int)($_GET['id'] ?? 0); $author_id = (int)($_GET['id'] ?? 0);
if (!$author_id) { if (!$author_id) {