mirror of
https://github.com/Anvilcraft/jensmemes
synced 2024-11-14 14:01:55 +01:00
Fixed bug
This commit is contained in:
parent
33e7df5dff
commit
0c4000cf7c
1 changed files with 4 additions and 4 deletions
|
@ -83,10 +83,10 @@
|
||||||
//UPLOAD
|
//UPLOAD
|
||||||
if (isset($_POST['submit'])) {
|
if (isset($_POST['submit'])) {
|
||||||
include('uploadOK.php');
|
include('uploadOK.php');
|
||||||
$home_dir = "images/" . md5($tokencookie) . "/";
|
if(empty($tokencookie)) {
|
||||||
if ($home_dir == "images//") {
|
$tokencookie = $_POST['token'];
|
||||||
$home_dir = "images/" . md5($_POST['token']) . "/";
|
|
||||||
}
|
}
|
||||||
|
$home_dir = "images/" . md5($tokencookie) . "/";
|
||||||
mkdir($home_dir);
|
mkdir($home_dir);
|
||||||
|
|
||||||
$resultMaxUpl = mysqli_query($con, "select * from token WHERE token='$tokencookie' OR token='$tokenpost'") or die('Error In Session');
|
$resultMaxUpl = mysqli_query($con, "select * from token WHERE token='$tokencookie' OR token='$tokenpost'") or die('Error In Session');
|
||||||
|
|
Loading…
Reference in a new issue