5
1
Fork 0
mirror of https://github.com/Anvilcraft/jensmemes synced 2024-11-13 21:41:27 +01:00

Fixed bug

This commit is contained in:
Timo Ley 2020-06-30 17:37:39 +02:00
parent 33e7df5dff
commit 0c4000cf7c

View file

@ -83,10 +83,10 @@
//UPLOAD
if (isset($_POST['submit'])) {
include('uploadOK.php');
$home_dir = "images/" . md5($tokencookie) . "/";
if ($home_dir == "images//") {
$home_dir = "images/" . md5($_POST['token']) . "/";
if(empty($tokencookie)) {
$tokencookie = $_POST['token'];
}
$home_dir = "images/" . md5($tokencookie) . "/";
mkdir($home_dir);
$resultMaxUpl = mysqli_query($con, "select * from token WHERE token='$tokencookie' OR token='$tokenpost'") or die('Error In Session');