change author page
This commit is contained in:
parent
9404edad6e
commit
6517cb2bac
|
|
@ -100,7 +100,7 @@ include '../views/header.php';
|
|||
<tr>
|
||||
<td><?= $user['id'] ?></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']): ?>
|
||||
<br><small style="color: #666;">(Вы)</small>
|
||||
<?php endif; ?>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
require_once 'config/config.php';
|
||||
require_once 'models/Book.php';
|
||||
require_once 'views/header.php';
|
||||
//require_once 'views/header.php';
|
||||
|
||||
$author_id = (int)($_GET['id'] ?? 0);
|
||||
if (!$author_id) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue