# Contributor(s): Jacob Steenhagen <jake@bugzilla.org>
#
-# Suppress silly "used only once" warnings
-use vars qw{ %COOKIE };
-
-
###############################################################################
# Script Initialization
###############################################################################
require "CGI.pl";
use vars qw(
- $template
$vars
);
###############################################################################
my $cgi = Bugzilla->cgi;
-
-$vars->{'username'} = $::COOKIE{'Bugzilla_login'} || '';
+my $template = Bugzilla->template;
# Return the appropriate HTTP response headers.
print $cgi->header();
#%]
[%# INTERFACE:
- # username: string. The login name of the user, if any.
+ # This template has no interface.
#%]
[% PROCESS global/variables.none.tmpl %]
<a href="enter_bug.cgi">Enter a new [% terms.bug %] report</a><br>
<a href="report.cgi">Summary reports and charts</a><br>
</p><p>
-[% IF username %]
+[% IF user.id %]
<a href="userprefs.cgi">Change password or user preferences</a><br>
- <a href="relogin.cgi">Logout [% username FILTER html %]</a><br>
+ <a href="relogin.cgi">Logout [% user.login FILTER html %]</a><br>
[% ELSE %]
<a href="query.cgi?GoAheadAndLogIn=1">Log in to an existing account</a><br>
[% IF Param('createemailregexp') %]