Fix management panel index

This commit is contained in:
Trevor Slocum 2021-04-04 13:28:19 -07:00
parent 18b1a921b8
commit caa567e9b8

View File

@ -770,8 +770,7 @@ if (!isset($_GET['delete']) && !isset($_GET['manage']) && (isset($_POST['name'])
</blockquote> </blockquote>
<p><b>Note:</b> If TinyIB updates and you have made custom modifications, <a href="https://code.rocketnine.space/tslocum/tinyib/commits/master" target="_blank">review the changes</a> which have been merged into your installation. <p><b>Note:</b> If TinyIB updates and you have made custom modifications, <a href="https://code.rocketnine.space/tslocum/tinyib/commits/master" target="_blank">review the changes</a> which have been merged into your installation.
Ensure that your modifications do not interfere with any new/modified files. Ensure that your modifications do not interfere with any new/modified files.
See the <a href="https://code.rocketnine.space/tslocum/tinyib/src/branch/master/README.md">README</a> for more information.<br><br> See the <a href="https://code.rocketnine.space/tslocum/tinyib/src/branch/master/README.md">README</a> <small>(<a href="README.md" target="_blank">alternate link</a>)</small> for instructions.</p>';
<small>(<a href="README.md" target="_blank">alternate link</a>)</small> for instructions.</p>';
} else { } else {
$text .= '<p><b>TinyIB was not installed via Git.</b></p> $text .= '<p><b>TinyIB was not installed via Git.</b></p>
<p>If you installed TinyIB without Git, you must <a href="https://code.rocketnine.space/tslocum/tinyib">update manually</a>. If you did install with Git, ensure the script has read and write access to the <b>.git</b> folder.</p>'; <p>If you installed TinyIB without Git, you must <a href="https://code.rocketnine.space/tslocum/tinyib">update manually</a>. If you did install with Git, ensure the script has read and write access to the <b>.git</b> folder.</p>';
@ -948,6 +947,10 @@ if (!isset($_GET['delete']) && !isset($_GET['manage']) && (isset($_POST['name'])
$text .= manageChangePasswordForm(); $text .= manageChangePasswordForm();
} }
if ($text == '') {
$text = manageStatus();
}
} else { } else {
$onload = manageOnLoad('login'); $onload = manageOnLoad('login');
$text .= manageLogInForm(); $text .= manageLogInForm();