#!/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");

if (defined($username)) {
  print "Logged in as <font color=\"#CC3300\">$username</font>\n<br><a href=\"/cgi-bin/logout\">Log out</a>\n";
} else {
  print "Not <a href=\"/cgi-bin/.admin/templates/login\">logged in</a>.\n";
}
