# Auth Handler
sub handler {
- my ($r) = @_;
+ my $r = $ENV{OSRF_APACHE_REQUEST_OBJ} = shift;
# Configuration options
sub handler {
- my $r = shift;
+ my $r = $ENV{OSRF_APACHE_REQUEST_OBJ} = shift;
# If the URL requested matches a file on the filesystem, have Apache serve that file
# this allows for local content (most typically images) to be used for some requests
sub handler {
child_init() unless $init_done;
- my $r = shift;
+ my $r = $ENV{OSRF_APACHE_REQUEST_OBJ} = shift;
my $cgi = new CGI;
my $editor = new_editor;
}
sub handler {
- my $r = shift;
+ my $r = $ENV{OSRF_APACHE_REQUEST_OBJ} = shift;
my $cgi = new CGI;
my $auth_ses = $cgi->cookie('ses') || $cgi->param('ses');
}
sub handler {
- my $r = shift;
+ my $r = $ENV{OSRF_APACHE_REQUEST_OBJ} = shift;
my $stat = handler_guts($r);
# other opensrf clients share this apache process,
}
sub handler {
- my $r = shift;
+ my $r = $ENV{OSRF_APACHE_REQUEST_OBJ} = shift;
my $cgi = new CGI;
# find some IDs ...
}
sub handler {
- my $r = shift;
+ my $r = $ENV{OSRF_APACHE_REQUEST_OBJ} = shift;
my $cgi = new CGI;
my %args;
my %idl_cache;
sub handler {
- my $r = shift;
+ my $r = $ENV{OSRF_APACHE_REQUEST_OBJ} = shift;
my $args = $r->args || '';
child_init() unless $__initted;
}
sub handler {
- my $r = shift;
+ my $r = $ENV{OSRF_APACHE_REQUEST_OBJ} = shift;
my $cgi = new CGI;
my $authid = $cgi->cookie('ses') || $cgi->param('ses');
my $user = $U->simplereq('open-ils.auth', 'open-ils.auth.session.retrieve', $authid);
}
sub handler {
- my $apache = shift;
+ my $apache = $ENV{OSRF_APACHE_REQUEST_OBJ} = shift;
my $proxyhtml = $apache->dir_config('OILSProxyHTML');
my $title = $apache->dir_config('OILSProxyTitle');
}
sub handler {
- my $apache = shift;
+ my $apache = $ENV{OSRF_APACHE_REQUEST_OBJ} = shift;
my $ltype = $apache->dir_config('OILSProxyLoginType');
my $perms = [ split ' ', $apache->dir_config('OILSProxyPermissions') ];
my %org_cache;
sub handler {
- my $apache = shift;
+ my $apache = $ENV{OSRF_APACHE_REQUEST_OBJ} = shift;
my $cgi = CGI->new( $apache );
my $port = $cgi->server_port();
sub handler {
- my $apache = shift;
+ my $apache = $ENV{OSRF_APACHE_REQUEST_OBJ} = shift;
return Apache2::Const::DECLINED if (-e $apache->filename);
my $cgi = CGI->new;
}
sub handler {
- my $r = shift;
+ my $r = $ENV{OSRF_APACHE_REQUEST_OBJ} = shift;
my $cgi = new CGI;
my $authid = $cgi->cookie('ses') || $cgi->param('ses');
sub handler {
- my $r = shift;
+ my $r = $ENV{OSRF_APACHE_REQUEST_OBJ} = shift;
my $cgi = CGI->new;
my $service = $r->path_info;
$service =~ s#^/##;