From de0538df54f2fbdcb474b2fba2c6977054aed1ed Mon Sep 17 00:00:00 2001 From: speedie Date: Tue, 3 Oct 2023 20:31:47 +0200 Subject: [PATCH] Some minor fixes and improvements --- core.php | 2 +- create.php | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/core.php b/core.php index 5deb1e7..b4192dc 100644 --- a/core.php +++ b/core.php @@ -22,7 +22,7 @@ function printHeader($html) { $html .= "\t\t\t\n"; if (file_exists($Logo)) $html .= "\t\t\t\t\n"; $html .= "\t\t\t\t$instanceName\n"; - $html .= "\t\t\t\tYour files\n"; + if (isset($_COOKIE[$cookieName])) $html .= "\t\t\t\tYour files\n"; foreach (glob('*.php') as $file) { if (!file_exists("$file".".name")) { diff --git a/create.php b/create.php index a84025d..8a758f7 100644 --- a/create.php +++ b/create.php @@ -105,18 +105,18 @@ if (isset($_REQUEST['uploads']) && $Type == "Temporary") { if (isset($_REQUEST['uploadsleft']) && $Type == "Temporary") { $uploadsLeft = $_REQUEST['uploadsleft']; -} -if (($_REQUEST['uploadsleft'] == 0 || !isset($_REQUEST['uploadsleft'])) && $Type == "Temporary") { - if ($Redirect == "admin") { - header("Location: admin.php?action=create&e=uploads"); - } else if ($Redirect == "uploads") { - header("Location: setup.php?e=type"); - } else { - header("Location: /"); + if ($uploadsLeft == 0 || !isset($_REQUEST['uploadsleft'])) { + if ($Redirect == "admin") { + header("Location: admin.php?action=create&e=uploads"); + } else if ($Redirect == "uploads") { + header("Location: setup.php?e=type"); + } else { + header("Location: /"); + } + + die(); } - - die(); } if ($Type == "Admin") {