View Single Post
Old 10-31-2007, 05:01 PM   #23 (permalink)
Getch
Major Leagues
 
Getch's Avatar
 
Join Date: Jan 2006
Posts: 476
Quote:
Originally Posted by Stu View Post
dola,

One other question. I add an html header and footer to all my php and html pages on my site. I accomplish this by using in my php.ini:

auto_prepend_file = /path.../header.html
auto_append_file = /path.../footer.html

I process all the html pages as php pages so it adds these headers as well.

Obviously I can't process perl files as php, so do you know of an easy way to include these headers on all the utilities pages?
Does it go by entension? You can change the name of the utility to whatever you want, like ootpou.html, so long as you change the 11th line in ootpu.pl to match the name:

my $file = 'ootpou.pl';

If that doesn't work, you'll have to paste the header and footer HTML into printHeader() and printTail() functions in HTMLUtils. Put it between the:

print $out << EOF;
....
EOF

lines in each function.
__________________
Get my OOTP Online Utilities for online leagues! One utility, seven tools:

Allstar Voting
Development Tracker
Export Tracker
Last Sim's Stats and Performances
Manager's Contact Page
Ratings Report
Rookie Draft

OOTP OU for OOTP 8
OOTP OU for OOTP 9
Readme

Last edited by Getch : 10-31-2007 at 05:13 PM.
Getch is offline   Reply With Quote