summaryrefslogtreecommitdiff
path: root/htetc/handler.pl
diff options
context:
space:
mode:
authorivan <ivan>2003-04-23 23:12:57 +0000
committerivan <ivan>2003-04-23 23:12:57 +0000
commit344596452274c17c2c60bf2b002c9358cbd510a3 (patch)
treeaa9297d19ebdb2744349c6bd12ddff1170c4ad00 /htetc/handler.pl
parent40dfd062e7bf133824287d432812b51c6ea3456a (diff)
compatible with mason 1.1! closes: bug#492
Diffstat (limited to 'htetc/handler.pl')
-rw-r--r--htetc/handler.pl27
1 files changed, 16 insertions, 11 deletions
diff --git a/htetc/handler.pl b/htetc/handler.pl
index 768ebffec..9f2a483c2 100644
--- a/htetc/handler.pl
+++ b/htetc/handler.pl
@@ -28,20 +28,25 @@ use strict;
# Create Mason objects
#
-my $parser = new HTML::Mason::Parser;
-my $interp = new HTML::Mason::Interp (parser=>$parser,
- comp_root=>'/var/www/masondocs',
- data_dir=>'/home/ivan/freeside_current/masondata',
- out_mode=>'stream',
- );
-my $ah = new HTML::Mason::ApacheHandler ( interp => $interp,
- #auto_send_headers => 0,
- );
+
+#my $parser = new HTML::Mason::Parser;
+#my $interp = new HTML::Mason::Interp (parser=>$parser,
+# comp_root=>'/var/www/masondocs',
+# data_dir=>'/usr/local/etc/freeside/masondata',
+# out_mode=>'stream',
+# );
+my $ah = new HTML::Mason::ApacheHandler (
+ #interp => $interp,
+ #auto_send_headers => 0,
+ comp_root=>'/var/www/masonside',
+ data_dir=>'/usr/local/etc/freeside/masondata',
+ #out_mode=>'stream',
+);
# Activate the following if running httpd as root (the normal case).
# Resets ownership of all files created by Mason at startup.
#
-chown (Apache->server->uid, Apache->server->gid, $interp->files_written);
+#chown (Apache->server->uid, Apache->server->gid, $interp->files_written);
sub handler
{
@@ -121,7 +126,7 @@ sub handler
*CGI::redirect = sub {
my( $self, $location ) = @_;
-
+ use vars qw($m);
#http://www.masonhq.com/docs/faq/#how_do_i_do_an_external_redirect
$m->clear_buffer;
# The next two lines are necessary to stop Apache from re-reading