#! /usr/bonsaitools/bin/mysqltcl # -*- Mode: tcl; 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 # compliance with the License. You may obtain a copy of the License at # http://www.mozilla.org/MPL/ # # Software distributed under the License is distributed on an "AS IS" # basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the # License for the specific language governing rights and limitations # under the License. # # The Original Code is the Bugzilla Bug Tracking System. # # The Initial Developer of the Original Code is Netscape Communications # Corporation. Portions created by Netscape are Copyright (C) 1998 # Netscape Communications Corporation. All Rights Reserved. # # Contributor(s): Terry Weissman source "CGI.tcl" if {[catch { if {[info exists FORM(GoAheadAndLogIn)]} { # We got here from a login page, probably from relogin.cgi. We better # make sure the password is legit. confirm_login } if {![info exists COOKIE(DEFAULTQUERY)]} { set COOKIE(DEFAULTQUERY) "bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&product=Communicator&order=%22Importance%22" } if {![info exists buffer] || $buffer == ""} { set buffer $COOKIE(DEFAULTQUERY) } foreach name {bug_status resolution assigned_to rep_platform priority \ bug_severity product reporter op_sys component \ version} { set default($name) "" set type($name) 0 } foreach item [split $buffer "&"] { set el [ split $item = ] set value [url_decode [lindex $el 1]] set name [lindex $el 0] if {[info exists default($name)]} { if {$default($name) != ""} { append default($name) "|$value" set type($name) 1 } else { set default($name) $value } } } foreach i [lsort [array names COOKIE]] { switch -glob $i { QUERY_* { if {$COOKIE($i) != ""} { set name [crange $i 6 end] append namelist "