Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
00a814cd
Commit
00a814cd
authored
Jan 24, 2000
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a way to remove a default query that you may have set.
parent
f8f099c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
5 deletions
+22
-5
query.cgi
query.cgi
+22
-5
No files found.
query.cgi
View file @
00a814cd
...
@@ -58,7 +58,16 @@ if (defined $::FORM{"GoAheadAndLogIn"}) {
...
@@ -58,7 +58,16 @@ if (defined $::FORM{"GoAheadAndLogIn"}) {
confirm_login
();
confirm_login
();
}
}
if
(
$::FORM
{
'nukedefaultquery'
})
{
print
"Set-Cookie: DEFAULTQUERY= ; path=/; expires=Sun, 30-Jun-80 00:00:00 GMT\n"
;
delete
$::COOKIE
{
"DEFAULTQUERY"
};
$::buffer
=
""
;
}
my
$userdefaultquery
=
1
;
if
(
!
defined
$::COOKIE
{
"DEFAULTQUERY"
})
{
if
(
!
defined
$::COOKIE
{
"DEFAULTQUERY"
})
{
$userdefaultquery
=
0
;
$::COOKIE
{
"DEFAULTQUERY"
}
=
Param
(
"defaultquery"
);
$::COOKIE
{
"DEFAULTQUERY"
}
=
Param
(
"defaultquery"
);
}
}
...
@@ -611,15 +620,23 @@ if ($::COOKIE{'LASTORDER'}) {
...
@@ -611,15 +620,23 @@ if ($::COOKIE{'LASTORDER'}) {
$deforder
=
"Reuse same sort as last time"
;
$deforder
=
"Reuse same sort as last time"
;
unshift
(
@orders
,
$deforder
);
unshift
(
@orders
,
$deforder
);
}
}
my
$defquerytype
=
$userdefaultquery
?
"my"
:
"the"
;
print
make_options
(
\
@orders
,
$deforder
);
print
make_options
(
\
@orders
,
$deforder
);
print
"</SELECT></NOBR>
print
"</SELECT></NOBR>
<INPUT TYPE=\"submit\" VALUE=\"Submit query\">
<INPUT TYPE=\"submit\" VALUE=\"Submit query\">
<INPUT TYPE=\"reset\" VALUE=\"Reset back to the default query\">
<INPUT TYPE=\"reset\" VALUE=\"Reset back to $defquerytype default query\">
<INPUT TYPE=hidden name=form_name VALUE=query>
"
;
<BR>Give me a <A HREF=\"help.html\">clue</A> about how to use this form.
</FORM>
if
(
$userdefaultquery
)
{
print
qq{<BR><A HREF="query.cgi?nukedefaultquery=1">Set my default query back to the system default</A>}
;
}
print
"
</FORM>
<P>Give me a <A HREF=\"help.html\">clue</A> about how to use this form.
<P>
"
;
"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment