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
8e7c07a1
Commit
8e7c07a1
authored
Dec 06, 2000
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 6682: moving location of graph creation dir to graphs instead of…
Bug 6682: moving location of graph creation dir to graphs instead of data/mining, for security reasons.
parent
a1e8485e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
collectstats.pl
collectstats.pl
+4
-4
reports.cgi
reports.cgi
+5
-4
No files found.
collectstats.pl
View file @
8e7c07a1
...
...
@@ -32,10 +32,10 @@ use vars @::legal_product;
require
"globals.pl"
;
# tidy up after graphing module
chdir
(
"
data/mining
"
);
unlink
<*.
gif
>
;
unlink
<*.
png
>
;
chdir
(
"..
/..
"
);
chdir
(
"
graphs
"
);
unlink
<
./
*.
gif
>
;
unlink
<
./
*.
png
>
;
chdir
(
".."
);
ConnectToDatabase
(
1
);
GetVersionTable
();
...
...
reports.cgi
View file @
8e7c07a1
...
...
@@ -49,6 +49,7 @@ require "globals.pl";
use
vars
qw(@legal_product)
;
# globals from er, globals.pl
my
$dir
=
"data/mining"
;
my
$graph_dir
=
"graphs"
;
my
@status
=
qw (NEW
ASSIGNED
REOPENED
);
my
%
bugsperperson
;
...
...
@@ -500,10 +501,10 @@ FIN
my
$type
=
chart_image_type
();
my
$data_file
=
daily_stats_filename
(
$FORM
{
product
});
my
$image_file
=
chart_image_name
(
$data_file
,
$type
);
my
$url_image
=
"$dir/"
.
url_quote
(
$image_file
);
my
$url_image
=
"$
graph_
dir/"
.
url_quote
(
$image_file
);
if
(
!
-
e
"$dir/$image_file"
)
{
generate_chart
(
"$dir/$data_file"
,
"$dir/$image_file"
,
$type
);
if
(
!
-
e
"$
graph_
dir/$image_file"
)
{
generate_chart
(
"$dir/$data_file"
,
"$
graph_
dir/$image_file"
,
$type
);
}
print
<<FIN;
...
...
@@ -586,7 +587,7 @@ sub generate_chart {
if
(
!
defined
$line
[
$i
]
or
$line
[
$i
]
eq
''
)
{
# no data point given, don't plot (this will probably
# generate loads of Chart::Base warnings, but that's not
# our fault.
# our fault.
)
push
@
{
$data
{
$field
}},
undef
;
}
else
{
...
...
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