summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/autohandler23
-rw-r--r--httemplate/docs/install.html10
-rw-r--r--httemplate/docs/upgrade10.html2
-rw-r--r--httemplate/index.html2
4 files changed, 30 insertions, 7 deletions
diff --git a/httemplate/autohandler b/httemplate/autohandler
new file mode 100644
index 000000000..e6e50d5bd
--- /dev/null
+++ b/httemplate/autohandler
@@ -0,0 +1,23 @@
+% $m->call_next;
+
+<%init>
+ dbh->{'private_profile'} = {} if UNIVERSAL::can(dbh, 'sprintProfile');
+</%init>
+
+<%filter>
+
+my $profile = '';
+if ( UNIVERSAL::can(dbh, 'sprintProfile') ) {
+
+ #if contenttype is text/html!! **FIXME**
+
+ $profile = '<PRE>'. ("\n"x4096). encode_entities(dbh->sprintProfile()).
+ #"\n\n". &sprintAutoProfile(). '</PRE>';
+ "\n\n". '</PRE>';
+ #endif
+
+ dbh->{'private_profile'} = {};
+}
+
+s/(<\/BODY>[\s\n]*<\/HTML>[\s\n]*)$/$profile$1/i;
+</%filter>
diff --git a/httemplate/docs/install.html b/httemplate/docs/install.html
index 54614ccb3..463575c53 100644
--- a/httemplate/docs/install.html
+++ b/httemplate/docs/install.html
@@ -130,8 +130,8 @@ cp&nbsp;htetc/global.asa&nbsp;/usr/local/etc/freeside/asp-global/global.asa
<font size="-1"><pre>
PerlModule Apache::ASP
&lt;Directory&nbsp;/usr/local/apache/htdocs/freeside-asp&gt;
-&lt;Files ~ (\.cgi)&gt;
-AddHandler perl-script .cgi
+&lt;Files ~ (\.cgi|\.html)&gt;
+SetHandler perl-script
PerlHandler Apache::ASP
&lt;/Files&gt;
&lt;Perl&gt;
@@ -145,7 +145,7 @@ PerlSetVar Debug 2
<td><ul>
<li>Run <tt>make masondocs</tt>
<li>Copy <tt>masondocs/</tt> to your web server's document space. (For example: <tt>/usr/local/apache/htdocs/freeside-mason</tt>)
- <li>Copy <tt>htetc/handler.pl</tt> to <tt>/usr/local/etc/freeside</tt> (use htetc/handler.pl-1.0x for Mason versions before 1.10).
+ <li>Copy <tt>htetc/handler.pl</tt> to <tt>/usr/local/etc/freeside</tt>
<li>Edit <tt>handler.pl</tt> and:
<ul>
<li> set an appropriate <tt>comp_root</tt>, such as <tt>/usr/local/apache/htdocs/freeside-mason</tt>
@@ -156,8 +156,8 @@ PerlSetVar Debug 2
<font size="-1"><pre>
PerlModule HTML::Mason
&lt;Directory&nbsp;/usr/local/apache/htdocs/freeside-mason&gt;
-&lt;Files ~ (\.cgi)&gt;
-AddHandler perl-script .cgi
+&lt;Files ~ (\.cgi|.html)&gt;
+SetHandler perl-script
PerlHandler HTML::Mason
&lt;/Files&gt;
&lt;Perl&gt;
diff --git a/httemplate/docs/upgrade10.html b/httemplate/docs/upgrade10.html
index 4c2c17b85..d7a8c7468 100644
--- a/httemplate/docs/upgrade10.html
+++ b/httemplate/docs/upgrade10.html
@@ -99,6 +99,6 @@ dbdef-create username
create-history-tables username cust_bill_pkg_detail router part_svc_router addr_block svc_broadband
dbdef-create username
-
+apache - fix <Files> sections to include .html also
</pre>
diff --git a/httemplate/index.html b/httemplate/index.html
index 3e87af716..99b321f30 100644
--- a/httemplate/index.html
+++ b/httemplate/index.html
@@ -12,7 +12,7 @@
<font color="#ff0000" size=7>freeside main menu</font>
</td><td align=right valign=bottom>
version %%%VERSION%%%
- <BR><A HREF="http://www.sisd.com/freeside">Freeside home page</A>
+ <BR><A HREF="http://www.sisd.com/freeside">Freeside&nbsp;home&nbsp;page</A>
<BR><A HREF="docs/">Documentation</A>
</td></tr>
</table>