mirror of
https://github.com/claradex/nativegallery.git
synced 2024-11-15 03:31:10 +03:00
update user not found page
This commit is contained in:
parent
228c46dbc8
commit
8b63f67985
2 changed files with 6 additions and 0 deletions
BIN
static/img/404.jpg
Normal file
BIN
static/img/404.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 38 KiB |
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue