Sorry, Nebenschauplatz.
Du kannst dich nur erfolgreich einloggen als "theterminator":
$admin = "theterminator";
if (($username != $admin) || ($password != $adminpass)) {
$error_msg = ': <font color="#FF0000">Your login information is incorrect</font>';
}
Genau dann aber wird nichts ausgegeben:
if ($_SESSION['admin'] != "theterminator") {
echo '<h3>Only the administrator can view this directory</h3><br />
Shorsch