j'ai oublié quelque endroit

This commit is contained in:
Yasder5 2026-02-28 23:31:25 +01:00
parent e903577c15
commit 14a9ffd62f
3 changed files with 4 additions and 4 deletions

View file

@ -11,8 +11,8 @@
try{ try{
$this->_db = new PDO( $this->_db = new PDO(
"mysql:host=localhost;dbname=projet_folliow", "mysql:host=localhost;dbname=projet_folliow",
"projet_user", "root",
"F0lliowRules!", "",
array(PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC) array(PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC)
); );
$this->_db->exec("SET CHARACTER SET utf8"); $this->_db->exec("SET CHARACTER SET utf8");

View file

@ -61,7 +61,7 @@
<ul class="navbar-nav"> <ul class="navbar-nav">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="index.php?ctrl=user&action=user&pseudo={$smarty.session.user.user_pseudo}" title="Modifier mon compte" aria-label="Modifier mon compte"> <a class="nav-link" href="index.php?ctrl=user&action=user&pseudo={$smarty.session.user.user_pseudo}" title="Modifier mon compte" aria-label="Modifier mon compte">
<img src="{$smarty.env.IMG_USER_PATH}{$smarty.session.user.user_image ?? "images.jpg"}" <img src={$smarty.env.IMG_USER_PATH}{if ($smarty.env.IMG_USER_PATH|cat:($smarty.session.user.user_image))|file_exists}{$smarty.session.user.user_image}{else}images.jpg{/if}
class="rounded-circle flex-shrink-0 mt-2 ml-5" class="rounded-circle flex-shrink-0 mt-2 ml-5"
style="width: 36px; height: 36px; object-fit: cover;" style="width: 36px; height: 36px; object-fit: cover;"
alt="Photo de profil"> alt="Photo de profil">

View file

@ -5,7 +5,7 @@
<section class="user-profile mb-5 mt-5/*vh /*"> <section class="user-profile mb-5 mt-5/*vh /*">
<div class="row"> <div class="row">
<div class="col-md-4 text-center"> <div class="col-md-4 text-center">
<img src="{$smarty.env.IMG_USER_PATH}{$user->getImage() ?? "images.jpg"}" alt="Avatar de {$user->getPseudo()}" class="rounded-circle flex-shrink-0 border border-2 border-white" <img src="{$smarty.env.IMG_USER_PATH}{if ($smarty.env.IMG_USER_PATH|cat:($user->getImage()))|file_exists}{$user->getImage()}{else}images.jpg{/if}" alt="Avatar de {$user->getPseudo()}" class="rounded-circle flex-shrink-0 border border-2 border-white"
style="width: 256px; height: 256px; object-fit: cover; margin-top: 8px;" style="width: 256px; height: 256px; object-fit: cover; margin-top: 8px;"
> >
</div> </div>