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";
|
$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";
|
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='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) {
|
foreach (glob('*.php') as $file) {
|
||||||
if (!file_exists("$file".".name")) {
|
if (!file_exists("$file".".name")) {
|
||||||
|
|
|
@ -105,9 +105,8 @@ if (isset($_REQUEST['uploads']) && $Type == "Temporary") {
|
||||||
|
|
||||||
if (isset($_REQUEST['uploadsleft']) && $Type == "Temporary") {
|
if (isset($_REQUEST['uploadsleft']) && $Type == "Temporary") {
|
||||||
$uploadsLeft = $_REQUEST['uploadsleft'];
|
$uploadsLeft = $_REQUEST['uploadsleft'];
|
||||||
}
|
|
||||||
|
|
||||||
if (($_REQUEST['uploadsleft'] == 0 || !isset($_REQUEST['uploadsleft'])) && $Type == "Temporary") {
|
if ($uploadsLeft == 0 || !isset($_REQUEST['uploadsleft'])) {
|
||||||
if ($Redirect == "admin") {
|
if ($Redirect == "admin") {
|
||||||
header("Location: admin.php?action=create&e=uploads");
|
header("Location: admin.php?action=create&e=uploads");
|
||||||
} else if ($Redirect == "uploads") {
|
} else if ($Redirect == "uploads") {
|
||||||
|
@ -118,6 +117,7 @@ if (($_REQUEST['uploadsleft'] == 0 || !isset($_REQUEST['uploadsleft'])) && $Type
|
||||||
|
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($Type == "Admin") {
|
if ($Type == "Admin") {
|
||||||
if ($AdminIsPrimary != 1 && $primary != 1) {
|
if ($AdminIsPrimary != 1 && $primary != 1) {
|
||||||
|
|
Loading…
Reference in a new issue