feat: Update image file path in index.php
This commit is contained in:
parent
23d5507c50
commit
7ff5a0dad7
|
@ -9,7 +9,7 @@ $mysql_dbname = $_ENV["MYSQL_DBNAME"];
|
||||||
|
|
||||||
if (isset($_GET["img"])) {
|
if (isset($_GET["img"])) {
|
||||||
if (CHECK_USER_LOGADO()) {
|
if (CHECK_USER_LOGADO()) {
|
||||||
$name = '/fotos/' . $_GET["img"] . '.jpg';
|
$name = 'uploads/fotos/' . $_GET["img"] . '.jpg';
|
||||||
if (!file_exists($name)) {
|
if (!file_exists($name)) {
|
||||||
$name = 'static/img/avatar_1.png';
|
$name = 'static/img/avatar_1.png';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user