2024-07-05 06:33:46 +03:00
< ? php
use \App\Services\ { Auth , DB };
use \App\Models\User ;
$user = new User ( Auth :: userid ());
?>
<! DOCTYPE html >
< html lang = " ru " >
< head >
< ? php include ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/views/components/LoadHead.php' ); ?>
</ head >
< body >
< div id = " backgr " ></ div >
< table class = " tmain " >
< ? php include ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/views/components/Navbar.php' ); ?>
< tr >
< td class = " main " >
< h1 > Общая информация </ h1 >
2024-07-10 13:23:05 +03:00
< h4 > Здравствуйте , < a href = " /author/<?=Auth::userid()?>/ " >< ? = htmlspecialchars ( $user -> i ( 'username' )) ?> </a>!</h4>
2024-07-05 06:33:46 +03:00
< p >
Количество ваших фотографий на сайте : < b >< ? = DB :: query ( 'SELECT COUNT(*) FROM photos WHERE user_id=:uid' , array ( ':uid' => Auth :: userid ()))[ 0 ][ 'COUNT(*)' ] ?> </b></p>
2024-07-05 15:03:35 +03:00
< p >
2024-07-05 06:33:46 +03:00
< h4 > Индекс загрузки </ h4 >
< p > Текущее значение < a href = " /page/111 " class = " und " > индекса загрузки </ a >: < b >< ? = $user -> i ( 'uploadindex' ) ?> </b></p>
< br clear = " all " />
< br />
< br />& nbsp ;
</ td >
</ tr >
< tr >
2024-07-08 20:10:00 +03:00
< ? php include ( $_SERVER [ 'DOCUMENT_ROOT' ] . '/views/components/Footer.php' ); ?>
</ tr >
2024-07-05 06:33:46 +03:00
</ table >
</ body >
</ html >