Update file compte.php

This commit is contained in:
Jan BELLON 2024-03-12 09:02:41 +00:00
parent ddfa65da0b
commit 30a5b887f4

View File

@ -50,7 +50,7 @@ if (isset($_FILES['profile_picture']) && $_FILES['profile_picture']['error'] ==
// Chemins et noms de fichiers
$tempPath = $_FILES['profile_picture']['tmp_name'];
$path = '/src/pp/'. $_SESSION['userid'] .'.png';
$rootPath = $wwwroot . "/home" . $path;
$rootPath = $wwwroot . "/html" . $path;
$webPath = $root . $path;
// Redimensionnement de l'image
@ -82,7 +82,7 @@ if (isset($_FILES['banner']) && $_FILES['banner']['error'] == 0) {
// Chemins et noms de fichiers
$tempPath = $_FILES['banner']['tmp_name'];
$path = 'src/pp/'. $_SESSION['userid'] .'.png';
$rootPath = $wwwroot . "/home" . $path;
$rootPath = $wwwroot . "/html" . $path;
$webPath = $root . $path;
// Redimensionnement de l'image