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
2734bd79
Commit
2734bd79
authored
Jan 21, 2001
by
tara%tequilarista.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Landing Ask Bjoern Hansen's fix for bug #39159
parent
891ce883
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
reports.cgi
reports.cgi
+10
-4
No files found.
reports.cgi
View file @
2734bd79
...
...
@@ -39,8 +39,10 @@
use
diagnostics
;
use
strict
;
use
GD
;
eval
"use GD"
;
my
$use_gd
=
@
?
0
:
1
;
eval
"use Chart::Lines"
;
$use_gd
=
0
if
$@
;
require
"CGI.pl"
;
use
vars
qw(%FORM)
;
# globals from CGI.pl
...
...
@@ -157,9 +159,7 @@ PutFooter() if $FORM{banner};
sub
choose_product
{
my
$product_popup
=
make_options
(
\
@myproducts
,
$myproducts
[
0
]);
my
$charts
=
defined
$
Chart::Lines::
VERSION
&&
-
d
$dir
?
"<option value=\"show_chart\">Bug Charts"
:
""
;
# get rid of warning:
$
Chart::Lines::
VERSION
=
$
Chart::Lines::
VERSION
;
my
$charts
=
$use_gd
&&
-
d
$dir
?
"<option value=\"show_chart\">Bug Charts"
:
""
;
print
<<FIN;
<center>
...
...
@@ -486,6 +486,10 @@ sub daily_stats_filename {
}
sub
show_chart
{
# if we don't have the graphic mouldes don't even try to go
# here. Should probably return some decent error message.
return
unless
$use_gd
;
if
(
!
is_legal_product
(
$FORM
{
'product'
}))
{
&
die_politely
(
"Unknown product: $FORM{'product'}"
);
}
...
...
@@ -517,7 +521,9 @@ FIN
sub
chart_image_type
{
# what chart type should we be generating?
my
$testimg
=
Chart::
Lines
->
new
(
2
,
2
);
eval
'$testimg->gif()'
;
my
$type
=
$testimg
->
can
(
'gif'
)
?
"gif"
:
"png"
;
undef
$testimg
;
return
$type
;
}
...
...
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