feat: Update image file path in index.php

This commit is contained in:
Douglas Barone 2024-08-06 06:50:31 -04:00
parent 23d5507c50
commit 7ff5a0dad7

View File

@ -9,7 +9,7 @@ $mysql_dbname = $_ENV["MYSQL_DBNAME"];
if (isset($_GET["img"])) {
if (CHECK_USER_LOGADO()) {
$name = '/fotos/' . $_GET["img"] . '.jpg';
$name = 'uploads/fotos/' . $_GET["img"] . '.jpg';
if (!file_exists($name)) {
$name = 'static/img/avatar_1.png';
}