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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
7d495725
Commit
7d495725
authored
Oct 17, 2002
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 172959 - Remove old reporting (most doomed etc.). Patch by gerv; r=bbaetz.
parent
aa96bd6f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
50 deletions
+29
-50
CGI.pl
CGI.pl
+1
-50
reports.cgi
reports.cgi
+0
-0
code-error.html.tmpl
template/en/default/global/code-error.html.tmpl
+21
-0
user-error.html.tmpl
template/en/default/global/user-error.html.tmpl
+7
-0
No files found.
CGI.pl
View file @
7d495725
...
@@ -337,56 +337,6 @@ sub ValidateComment {
...
@@ -337,56 +337,6 @@ sub ValidateComment {
}
}
}
}
$::CheckOptionValues
=
1
;
# This sub is still used in reports.cgi.
sub
make_options
{
my
(
$src
,
$default
,
$isregexp
)
=
(
@_
);
my
$last
=
""
;
my
$popup
=
""
;
my
$found
=
0
;
$default
=
""
if
!
defined
$default
;
if
(
$src
)
{
foreach
my
$item
(
@$src
)
{
if
(
$item
eq
"-blank-"
||
$item
ne
$last
)
{
if
(
$item
eq
"-blank-"
)
{
$item
=
""
;
}
$last
=
$item
;
if
(
$isregexp
?
$item
=~
$default
:
$default
eq
$item
)
{
$popup
.=
"<OPTION SELECTED VALUE=\"$item\">$item\n"
;
$found
=
1
;
}
else
{
$popup
.=
"<OPTION VALUE=\"$item\">$item\n"
;
}
}
}
}
if
(
!
$found
&&
$default
ne
""
)
{
if
(
$::CheckOptionValues
&&
(
$default
ne
$::dontchange
)
&&
(
$default
ne
"-All-"
)
&&
(
$default
ne
"DUPLICATE"
)
)
{
print
"Possible bug database corruption has been detected. "
.
"Please send mail to "
.
Param
(
"maintainer"
)
.
" with "
.
"details of what you were doing when this message "
.
"appeared. Thank you.\n"
;
if
(
!
$src
)
{
$src
=
[
"???null???"
];
}
print
"<pre>src = "
.
value_quote
(
join
(
' '
,
@$src
))
.
"\n"
;
print
"default = "
.
value_quote
(
$default
)
.
"</pre>"
;
PutFooter
();
# confess "Gulp.";
exit
0
;
}
else
{
$popup
.=
"<OPTION SELECTED>$default\n"
;
}
}
return
$popup
;
}
sub
PasswordForLogin
{
sub
PasswordForLogin
{
my
(
$login
)
=
(
@_
);
my
(
$login
)
=
(
@_
);
SendSQL
(
"select cryptpassword from profiles where login_name = "
.
SendSQL
(
"select cryptpassword from profiles where login_name = "
.
...
@@ -812,6 +762,7 @@ sub PutHeader {
...
@@ -812,6 +762,7 @@ sub PutHeader {
$::template
->
process
(
"global/header.html.tmpl"
,
$::vars
)
$::template
->
process
(
"global/header.html.tmpl"
,
$::vars
)
||
ThrowTemplateError
(
$::template
->
error
());
||
ThrowTemplateError
(
$::template
->
error
());
$vars
->
{
'header_done'
}
=
1
;
}
}
sub
PutFooter
{
sub
PutFooter
{
...
...
reports.cgi
View file @
7d495725
This diff is collapsed.
Click to expand it.
template/en/default/global/code-error.html.tmpl
View file @
7d495725
...
@@ -48,10 +48,31 @@
...
@@ -48,10 +48,31 @@
Attachment #[% attachid FILTER html %] ([% description FILTER html %])
Attachment #[% attachid FILTER html %] ([% description FILTER html %])
is already obsolete.
is already obsolete.
[% ELSIF error == "chart_data_not_generated" %]
The tool which gathers bug counts has not been run yet.
[% ELSIF error == "chart_datafile_corrupt" %]
The chart data file [% file FILTER html %] is corrupt.
[% ELSIF error == "chart_dir_nonexistent" %]
One of the directories <tt>[% dir FILTER html %]</tt> and
<tt>[% graphdir FILTER html %]</tt> does not exist.
[% ELSIF error == "chart_file_open_fail" %]
Unable to open the chart datafile <tt>[% filename FILTER html %]</tt>.
[% ELSIF error == "chart_lines_not_installed" %]
Charts will not work without the Chart::Lines Perl module being installed.
Run checksetup.pl for installation instructions.
[% ELSIF error == "field_type_mismatch" %]
[% ELSIF error == "field_type_mismatch" %]
Cannot seem to handle <code>[% field %]</code>
Cannot seem to handle <code>[% field %]</code>
and <code>[% type %]</code> together.
and <code>[% type %]</code> together.
[% ELSIF error == "gd_not_installed" %]
Charts will not work without the GD Perl module being installed.
Run checksetup.pl for installation instructions.
[% ELSIF error == "group_bit_invalid" %]
[% ELSIF error == "group_bit_invalid" %]
One of the group bits submitted was invalid.
One of the group bits submitted was invalid.
...
...
template/en/default/global/user-error.html.tmpl
View file @
7d495725
...
@@ -234,6 +234,9 @@
...
@@ -234,6 +234,9 @@
The name of your query cannot contain any of the following characters:
The name of your query cannot contain any of the following characters:
<, >, &.
<, >, &.
[% ELSIF error == "insufficient_data_points" %]
We don't have enough data points to make a graph (yet).
[% ELSIF error == "insufficient_privs_for_multi" %]
[% ELSIF error == "insufficient_privs_for_multi" %]
[% title = "Insufficient Privileges" %]
[% title = "Insufficient Privileges" %]
Sorry, you do not have sufficient privileges to edit multiple bugs.
Sorry, you do not have sufficient privileges to edit multiple bugs.
...
@@ -318,6 +321,10 @@
...
@@ -318,6 +321,10 @@
the results of your last search. I'm afraid you will have to start
the results of your last search. I'm afraid you will have to start
again on the <a href="query.cgi">search page</a>.
again on the <a href="query.cgi">search page</a>.
[% ELSIF error == "missing_datasets" %]
[% title = "No Datasets Selected" %]
You must specify one or more datasets to plot.
[% ELSIF error == "missing_email_type" %]
[% ELSIF error == "missing_email_type" %]
[% title = "Your Query Makes No Sense" %]
[% title = "Your Query Makes No Sense" %]
You must specify one or more fields in which to search for
You must specify one or more fields in which to search for
...
...
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