projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update apache restart line for local apache
[freeside.git]
/
htetc
/
global.asa
diff --git
a/htetc/global.asa
b/htetc/global.asa
index
ecba457
..
782e062
100644
(file)
--- a/
htetc/global.asa
+++ b/
htetc/global.asa
@@
-14,6
+14,11
@@
use Tie::IxHash;
use HTML::Entities;
use IO::Handle;
use IO::File;
use HTML::Entities;
use IO::Handle;
use IO::File;
+use Net::Whois::Raw qw(whois);
+if ( $] < 5.006 ) {
+ eval "use Net::Whois::Raw 0.32 qw(whois)";
+ die $@ if $@;
+}
use Business::CreditCard;
use String::Approx qw(amatch);
use Chart::LinesPoints;
use Business::CreditCard;
use String::Approx qw(amatch);
use Chart::LinesPoints;
@@
-68,7
+73,6
@@
use FS::export_svc;
use FS::msgcat;
sub Script_OnStart {
use FS::msgcat;
sub Script_OnStart {
- $Response->AddHeader('Pragma' => 'no-cache');
$Response->AddHeader('Cache-control' => 'no-cache');
# $Response->AddHeader('Expires' => 0);
$Response->{Expires} = -36288000;
$Response->AddHeader('Cache-control' => 'no-cache');
# $Response->AddHeader('Expires' => 0);
$Response->{Expires} = -36288000;
@@
-197,8
+201,10
@@
sub sprintAutoProfile {
}
sub include {
}
sub include {
- ( my $file = shift ) =~ s(^/)();
- $Response->Include($file, @_);
+ ( my $file = shift ) =~ s(^/)(%%%FREESIDE_DOCUMENT_ROOT%%%/);
+ #broken in 5.005# ${$Response->TrapInclude($file, @_)};
+ my $ref = $Response->TrapInclude($file, @_);
+ $$ref;
}
if ( defined(@DBIx::Profile::ISA) ) {
}
if ( defined(@DBIx::Profile::ISA) ) {