diff options
author | terry%netscape.com <> | 1998-09-16 06:49:23 +0200 |
---|---|---|
committer | terry%netscape.com <> | 1998-09-16 06:49:23 +0200 |
commit | 4727e6c09f88e63f02e6c8f359862d0c0942ed36 (patch) | |
tree | 3dec365d9db2c17d4c4ab9eb5297650d09ab24ec /relogin.cgi | |
parent | d8a4482db94592c936565841ab1a6703fca27d2d (diff) | |
download | bugzilla-4727e6c09f88e63f02e6c8f359862d0c0942ed36.tar.gz bugzilla-4727e6c09f88e63f02e6c8f359862d0c0942ed36.tar.xz |
Everything has been ported to now run under Perl.
Diffstat (limited to 'relogin.cgi')
-rwxr-xr-x | relogin.cgi | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/relogin.cgi b/relogin.cgi index 4bc1a394c..5ef523945 100755 --- a/relogin.cgi +++ b/relogin.cgi @@ -1,5 +1,5 @@ -#! /usr/bonsaitools/bin/mysqltcl -# -*- Mode: tcl; indent-tabs-mode: nil -*- +#!/usr/bonsaitools/bin/perl -w +# -*- Mode: perl; indent-tabs-mode: nil -*- # # The contents of this file are subject to the Mozilla Public License # Version 1.0 (the "License"); you may not use this file except in @@ -19,13 +19,13 @@ # # Contributor(s): Terry Weissman <terry@mozilla.org> -source CGI.tcl +use diagnostics; +use strict; +require "CGI.pl"; - - -puts "Set-Cookie: Bugzilla_login= ; path=/; expires=Sun, 30-Jun-80 00:00:00 GMT +print "Set-Cookie: Bugzilla_login= ; path=/; expires=Sun, 30-Jun-80 00:00:00 GMT Set-Cookie: Bugzilla_logincookie= ; path=/; expires=Sun, 30-Jun-80 00:00:00 GMT Set-Cookie: Bugzilla_password= ; path=/; expires=Sun, 30-Jun-80 00:00:00 GMT Content-type: text/html @@ -35,19 +35,19 @@ The cookie that was remembering your login is now gone. The next time you do an action that requires a login, you will be prompted for it. <p> <a href=query.cgi>Back to the query page.</a> -" +"; -exit +exit; # The below was a different way, that prompted you for a login right then. -catch {unset COOKIE(Bugzilla_login)} -catch {unset COOKIE(Bugzilla_password)} -confirm_login +# catch {unset COOKIE(Bugzilla_login)} +# catch {unset COOKIE(Bugzilla_password)} +# confirm_login -puts "Content-type: text/html\n" -puts "<H1>OK, logged in.</H1>" -puts "You are now logged in as <b>$COOKIE(Bugzilla_login)</b>." -puts "<p>" -puts "<a href=query.cgi>Back to the query page.</a>" +# puts "Content-type: text/html\n" +# puts "<H1>OK, logged in.</H1>" +# puts "You are now logged in as <b>$COOKIE(Bugzilla_login)</b>." +# puts "<p>" +# puts "<a href=query.cgi>Back to the query page.</a>" |