#!/usr/bin/perl
use CGI qw(:standard);

print "Content-type: text/html\nExpires: 0\nCache-Control: no-cache,no-store\nPragma: no-cache\n\n";

$username = cookie("wizarduser");
$passhash = cookie("wizardpass");

print "&nbsp;";
if (defined($username)) {
  print "<a href=\"/cgi-bin/.admin/templates/logout\">Log&nbsp;out</a>";
} else {
  print "<a href=\"/cgi-bin/.admin/templates/login\">Log&nbsp;in</a>";
}
print "&nbsp;";
