Some minor fixes and improvements

This commit is contained in:
Jacob 2023-10-03 20:31:47 +02:00
parent febebd5b0c
commit de0538df54
2 changed files with 11 additions and 11 deletions

View file

@ -22,7 +22,7 @@ function printHeader($html) {
$html .= "\t\t\t<span id='titleSpan' class='title'>\n";
if (file_exists($Logo)) $html .= "\t\t\t\t<img src=\"$Logo\" id=\"titleLogo\" class=\"title\" width=\"$logoHeaderSize\" height=\"$logoHeaderSize\">\n";
$html .= "\t\t\t\t<small id='title'><a id='title' href=\"/\">$instanceName</a></small>\n";
$html .= "\t\t\t\t<small id='files'><a id='files' href=\"files.php\">Your files</a></small>\n";
if (isset($_COOKIE[$cookieName])) $html .= "\t\t\t\t<small id='files'><a id='files' href=\"files.php\">Your files</a></small>\n";
foreach (glob('*.php') as $file) {
if (!file_exists("$file".".name")) {

View file

@ -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") {