Some minor fixes and improvements
This commit is contained in:
parent
febebd5b0c
commit
de0538df54
2
core.php
2
core.php
|
@ -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")) {
|
||||
|
|
20
create.php
20
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") {
|
||||
|
|
Loading…
Reference in a new issue