update user not found page

This commit is contained in:
themohooks 2024-07-10 13:15:24 +03:00
parent 228c46dbc8
commit 8b63f67985
2 changed files with 6 additions and 0 deletions

BIN
static/img/404.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View file

@ -21,6 +21,8 @@ $userprofile = new User(explode('/', $_SERVER['REQUEST_URI'])[2]);
<?php include($_SERVER['DOCUMENT_ROOT'] . '/views/components/Navbar.php'); ?>
<tr>
<td class="main">
<?php
if ($userprofile->i('id') === explode('/', $_SERVER['REQUEST_URI'])[2]) { ?>
<h1><?= $userprofile->i('username') ?><?php if ($userprofile->i('admin') === 1) { echo '<img width="32" src="/static/img/star.png">'; } ?></h1>
<?php
@ -209,6 +211,10 @@ $userprofile = new User(explode('/', $_SERVER['REQUEST_URI'])[2]);
</tr>
</table>
<div><b><a href="/search?id=<?=$userprofile->i('id')?>">Найти все фотографии, сделанные этим пользователем</a></b></div>
<?php } else { ?>
<center><h1>Пользователь не найден</h1></center>
<center><img src="/static/img/404.jpg"></center>
<?php } ?>
</td>
</tr>
<tr>