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
a9379622
Commit
a9379622
authored
Jun 21, 2000
by
endico%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename move.cgi to move.pl
parent
84540e55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
+18
-12
move.pl
move.pl
+18
-12
No files found.
move.
cgi
→
move.
pl
View file @
a9379622
...
...
@@ -27,6 +27,8 @@ use Bug;
require
"CGI.pl"
;
$::lockcount
=
0
;
ConnectToDatabase
();
sub
Log
{
my
(
$str
)
=
(
@_
);
Lock
();
...
...
@@ -63,11 +65,8 @@ sub Unlock {
}
if
(
!
defined
$::FORM
{
'buglist'
}
)
{
print
"Content-type: text/html\n\n"
;
PutHeader
(
"Move Bugs"
);
print
"To move bugs, perform a "
;
print
"<A HREF=\"query.cgi\">query</A> and change several bugs at once.\n"
;
PutFooter
();
exit
;
}
...
...
@@ -84,34 +83,41 @@ unless ($exporter =~ /(lchaing\@netscape.com|leger\@netscape.com|endico\@mozilla
my
$xml
=
""
;
$xml
.=
Bug::
XML_Header
(
Param
(
"urlbase"
),
$::param
{
'version'
},
Param
(
"maintainer"
),
$exporter
);
print
"<P>\n"
;
foreach
my
$id
(
split
(
/:/
,
$::FORM
{
'buglist'
}))
{
my
$bug
=
new
Bug
(
$id
,
$::userid
);
$xml
.=
$bug
->
emitXML
;
if
(
!
$bug
->
error
)
{
SendSQL
(
"UPDATE bugs SET bug_status =\"MOVED\" where bug_id=\"$id\""
);
SendSQL
(
"UPDATE bugs SET resolution =\"\" where bug_id=\"$id\""
);
my
$exp
=
$exporter
;
$exp
=~
s/@/\@/
;
my
$comment
=
"Bug moved to http://bugscape.netscape.com/ by $exp.\n"
;
SendSQL
(
"INSERT INTO longdescs (bug_id, who, bug_when, thetext) VALUES "
.
"($id, "
.
DBNameToIdAndCheck
(
$exporter
)
.
", now(), "
.
SqlQuote
(
$comment
)
.
")"
);
print
"Bug $id moved to http://bugscape.netscape.com/.<BR>\n"
;
}
}
print
"<P>\n"
;
$xml
.=
Bug::
XML_Footer
;
my
$buglist
=
$::FORM
{
'buglist'
};
$buglist
=~
s/:/,/g
;
my
$host
=
Param
(
"urlbase"
);
$host
=~
s
#http://([^/]+)/.*#$1#;
my
$to
=
"endico\@localhost"
;
my
$msg
=
"To: $to\n"
;
$msg
.=
"From: Bugzilla <bugzilla\@$host>\n"
;
$msg
.=
"Subject: Moving bugs $
::FORM{'buglist'}
\n\n"
;
$msg
.=
"Subject: Moving bugs $
buglist
\n\n"
;
$msg
.=
$xml
.
"\n"
;
open
(
SENDMAIL
,
"|/usr/lib/sendmail -ODeliveryMode=background -t"
)
||
die
"Can't open sendmail"
;
print
SENDMAIL
$msg
;
close
SENDMAIL
;
my
$buglist
=
$::FORM
{
'buglist'
};
$buglist
=~
s/:/,/g
;
my
$logstr
=
"XML: bugs $buglist sent to $to"
;
Log
(
$logstr
);
print
"Content-type: text/html\n\n"
;
PutHeader
(
"Moved Bugs"
);
print
"<P>Bugs $buglist were moved to $to.<P>"
;
print
"<P>(This function incomplete. You must close these bugs yourself.)<P>"
;
PutFooter
();
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