Update 2 files
- /html/editor/index.php - /html/account/index.php
This commit is contained in:
parent
a8455fe41e
commit
e794bcce6d
@ -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);
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user