Update file compte.php
This commit is contained in:
parent
ddfa65da0b
commit
30a5b887f4
@ -50,7 +50,7 @@ if (isset($_FILES['profile_picture']) && $_FILES['profile_picture']['error'] ==
|
|||||||
// Chemins et noms de fichiers
|
// Chemins et noms de fichiers
|
||||||
$tempPath = $_FILES['profile_picture']['tmp_name'];
|
$tempPath = $_FILES['profile_picture']['tmp_name'];
|
||||||
$path = '/src/pp/'. $_SESSION['userid'] .'.png';
|
$path = '/src/pp/'. $_SESSION['userid'] .'.png';
|
||||||
$rootPath = $wwwroot . "/home" . $path;
|
$rootPath = $wwwroot . "/html" . $path;
|
||||||
$webPath = $root . $path;
|
$webPath = $root . $path;
|
||||||
|
|
||||||
// Redimensionnement de l'image
|
// Redimensionnement de l'image
|
||||||
@ -82,7 +82,7 @@ if (isset($_FILES['banner']) && $_FILES['banner']['error'] == 0) {
|
|||||||
// Chemins et noms de fichiers
|
// Chemins et noms de fichiers
|
||||||
$tempPath = $_FILES['banner']['tmp_name'];
|
$tempPath = $_FILES['banner']['tmp_name'];
|
||||||
$path = 'src/pp/'. $_SESSION['userid'] .'.png';
|
$path = 'src/pp/'. $_SESSION['userid'] .'.png';
|
||||||
$rootPath = $wwwroot . "/home" . $path;
|
$rootPath = $wwwroot . "/html" . $path;
|
||||||
$webPath = $root . $path;
|
$webPath = $root . $path;
|
||||||
|
|
||||||
// Redimensionnement de l'image
|
// Redimensionnement de l'image
|
||||||
|
Loading…
x
Reference in New Issue
Block a user