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
cee38ad7
Commit
cee38ad7
authored
Aug 18, 2006
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 345376: Startup Script for mod_perl
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=justdave, a=myk
parent
b7622eb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
0 deletions
+53
-0
mod_perl.pl
mod_perl.pl
+53
-0
No files found.
mod_perl.pl
0 → 100644
View file @
cee38ad7
#!/usr/bin/perl -wT
# -*- Mode: perl; indent-tabs-mode: nil -*-
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Bugzilla Bug Tracking System.
#
# Contributor(s): Max Kanat-Alexander <mkanat@bugzilla.org>
use
strict
;
# If you have an Apache2::Status handler in your Apache configuration,
# you need to load Apache2::Status *here*, so that Apache::DBI can
# report information to Apache2::Status.
#use Apache2::Status ();
# We don't want to import anything into the global scope during
# startup, so we always specify () after using any module in this
# file.
use
Apache::
DBI
();
use
Bugzilla
();
use
Bugzilla::
Constants
();
use
Bugzilla::
CGI
();
use
Bugzilla::
Mailer
();
use
Bugzilla::
Template
();
use
Bugzilla::
Util
();
use
CGI
();
CGI
->
compile
(
qw(:cgi -no_xhtml -oldstyle_urls :private_tempfiles
:unique_headers SERVER_PUSH :push)
);
use
Template::
Config
();
Template::
Config
->
preload
();
# ModPerl::RegistryLoader can pre-compile all CGI scripts.
use
ModPerl::
RegistryLoader
();
my
$rl
=
new
ModPerl::
RegistryLoader
();
# Note that $cgi_path will be wrong if somebody puts the libraries
# in a different place than the CGIs.
my
$cgi_path
=
Bugzilla::Constants::
bz_locations
()
->
{
'libpath'
};
foreach
my
$file
(
glob
"$cgi_path/*.cgi"
)
{
Bugzilla::Util::
trick_taint
(
$file
);
$rl
->
handler
(
$file
,
$file
);
}
1
;
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