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
e057014b
Commit
e057014b
authored
Apr 26, 2000
by
donm%bluemartini.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patch from bug 2178 applied and fix for versions of GD/Chart::Lines that won't
produce gifs.
parent
f245fda6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
reports.cgi
reports.cgi
+10
-3
No files found.
reports.cgi
View file @
e057014b
...
...
@@ -28,6 +28,7 @@
use
diagnostics
;
use
strict
;
use
GD
;
eval
"use Chart::Lines"
;
require
"CGI.pl"
;
...
...
@@ -438,8 +439,14 @@ FIN
$prodname
=~
s/\//-/gs
;
my
$testimg
=
Chart::
Lines
->
new
(
2
,
2
);
my
$x
=
'$testimg->gif()'
;
eval
$x
;
my
$type
=
(
$@
=~
/Can't locate object method/
)
?
"png"
:
"gif"
;
my
$file
=
join
'/'
,
$dir
,
$prodname
;
my
$image
=
"$file.gif"
;
my
$image
=
"$file.$type"
;
my
$url_image
=
$dir
.
"/"
.
url_quote
(
$prodname
)
.
".$type"
;
if
(
!
open
FILE
,
$file
)
{
...
...
@@ -495,11 +502,11 @@ FIN
$img
->
set
(
%
settings
);
open
IMAGE
,
">$image"
or
die
"$image: $!"
;
$img
->
gif
(
*
IMAGE
,
\
@data
);
$img
->
$type
(
*
IMAGE
,
\
@data
);
close
IMAGE
;
print
<<FIN;
<img src="$image">
<img src="$
url_
image">
<br clear=left>
<br>
FIN
...
...
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