Update 2 files

- /html/editor/index.php
- /html/account/index.php
This commit is contained in:
Jan BELLON 2024-03-15 01:55:19 +00:00
parent a8455fe41e
commit e794bcce6d
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ if (isset($_FILES['newPP']) && $_FILES['newPP']['error'] == 0) {
$tempImagePath = $_FILES['newPP']['tmp_name']; $tempImagePath = $_FILES['newPP']['tmp_name'];
$ImagePath = 'assets/pp/' . $_SESSION['userID'] . '.png'; $ImagePath = 'assets/pp/' . $_SESSION['userID'] . '.png';
$rootImagePath = $rootFilePath . 'html/' . $ImagePath; $rootImagePath = $rootFilePath . 'html/' . $ImagePath;
$imageURL = $rootPageURL . $ImagePath; $imageURL = "/" . $ImagePath;
list($width, $height) = getimagesize($tempImagePath); list($width, $height) = getimagesize($tempImagePath);
@ -46,7 +46,7 @@ if (isset($_FILES['newBanner']) && $_FILES['newBanner']['error'] == 0) {
$tempImagePath = $_FILES['newBanner']['tmp_name']; $tempImagePath = $_FILES['newBanner']['tmp_name'];
$ImagePath = 'assets/banners/' . $_SESSION['userID'] . '.png'; $ImagePath = 'assets/banners/' . $_SESSION['userID'] . '.png';
$rootImagePath = $rootFilePath . 'html/' . $ImagePath; $rootImagePath = $rootFilePath . 'html/' . $ImagePath;
$imageURL = $rootPageURL . $ImagePath; $imageURL = "/" . $ImagePath;
list($width, $height) = getimagesize($tempImagePath); list($width, $height) = getimagesize($tempImagePath);

View File

@ -77,7 +77,7 @@ if (isset($_FILES['miniature']) && $_FILES['miniature']['error'] == 0 && isset($
$tempImagePath = $_FILES['miniature']['tmp_name']; $tempImagePath = $_FILES['miniature']['tmp_name'];
$ImagePath = 'assets/miniatures/' . $articleID . '.png'; $ImagePath = 'assets/miniatures/' . $articleID . '.png';
$rootImagePath = $rootFilePath . 'html/' . $ImagePath; $rootImagePath = $rootFilePath . 'html/' . $ImagePath;
$imageURL = $rootPageURL . $ImagePath; $imageURL = "/" . $ImagePath;
list($width, $height) = getimagesize($tempImagePath); list($width, $height) = getimagesize($tempImagePath);