diff --git a/mozilla/webtools/tinderbox3/scripts/uploadpatch.pl b/mozilla/webtools/tinderbox3/scripts/uploadpatch.pl new file mode 100755 index 00000000000..56ae8ee912f --- /dev/null +++ b/mozilla/webtools/tinderbox3/scripts/uploadpatch.pl @@ -0,0 +1,50 @@ +#!/usr/bin/perl -wT -I. + +use CGI; +use Tinderbox3::Header; +use Tinderbox3::DB; +use Tinderbox3::Login; +use strict; + +# +# Init +# +my $p = new CGI; +my $dbh = get_dbh(); +my ($login, $cookie) = check_session($p, $dbh); + +my $tree = $p->param('tree') || ""; +if (!$tree) { + die "Must specify a tree!"; +} + +header($p, $login, $cookie, "Upload Patch for $tree", $tree); + +# +# Upload patch form +# + +print < + +@{[$p->hidden(-name=>'tree', -default=>$tree)]} + + + + + +
Patch Name (just for display):
Bug #:
In Use:
Patch:
+EOM + +if (!$login) { + print login_fields(); +} + +print < + +EOM + + +footer($p); +$dbh->disconnect; diff --git a/mozilla/webtools/tinderbox3/server/uploadpatch.pl b/mozilla/webtools/tinderbox3/server/uploadpatch.pl new file mode 100755 index 00000000000..56ae8ee912f --- /dev/null +++ b/mozilla/webtools/tinderbox3/server/uploadpatch.pl @@ -0,0 +1,50 @@ +#!/usr/bin/perl -wT -I. + +use CGI; +use Tinderbox3::Header; +use Tinderbox3::DB; +use Tinderbox3::Login; +use strict; + +# +# Init +# +my $p = new CGI; +my $dbh = get_dbh(); +my ($login, $cookie) = check_session($p, $dbh); + +my $tree = $p->param('tree') || ""; +if (!$tree) { + die "Must specify a tree!"; +} + +header($p, $login, $cookie, "Upload Patch for $tree", $tree); + +# +# Upload patch form +# + +print < + +@{[$p->hidden(-name=>'tree', -default=>$tree)]} + + + + + +
Patch Name (just for display):
Bug #:
In Use:
Patch:
+EOM + +if (!$login) { + print login_fields(); +} + +print < + +EOM + + +footer($p); +$dbh->disconnect;