$text";
$contents[$last_index][] = $temp;
}
}
// Make a table of contents and
// insert them at this point
function start_contents () {
ob_start("process_contents_buffer");
}
function end_contents () {
ob_end_flush();
}
function process_contents_buffer ($buffer) {
global $contents;
$html = "
Note " . $footnum. ". " . $text;
}
function foothere ($text="") {
global $footdone, $foottext;
# Only create the foot notes once
if ($footdone != "Y") {
# Only create the footnotes if there is something to produce
if ($foottext != "") {
# Use the footnote intro text if provided
if ($text == "") {
$text = "Footnotes:";
}
echo "
\n
" . $text . "
" . $foottext . "\n
\n";
$footdone = "Y";
}
}
}
function linkin ($text, $link) {
global $varpath;
echo '' . $text . '';
}
function linkout ($text, $link) {
global $varpath;
echo '' . $text . '';
}
function outlink ($text) {
global $varpath;
echo " ";
}
function options ($link) {
echo " \n";
echo "
${file3} was last updated " . date("j F Y", filemtime($file)) .
" ${modtext}
You are welcome to print this page for your personal use or
create a link to it, but if you would like to use any part
of this page in any other way, please read the standard terms and then contact me.\n";
# If this is part of the Interactive Gospel, display the message
if ( $ig == "y" ) {
echo " This page is part of the Interactive Gospel Interactive Gospel Index\n";
}
echo " Go to the top of this page Home
|
Personal
|
Ministry
|
Writings
|
Web Site
${otherdisplay}
I welcome your comments and feedback. You can either
send me a message or
write in the guest book.
Page counter at " . date('H:i \o\n j F Y', time() ) . "
\n";
}
function hitcount()
{
global $file, $file2;
#$file = $_SERVER['PATH_TRANSLATED'];
#$file = basename($file);
$filedot = strpos($file2, ".");
$file3 = substr($file2, 0, $filedot) . ".cnt" ;
if ( !file_exists($file3)){
touch ($file3);
$handle = fopen ($file3, 'a+'); // Let's open for read and write
$count = 0;
}
else{
$handle = fopen ($file3, 'r+'); // Let's open for read and write
$count = fread ($handle, filesize ($file3));
settype ($count,"integer");
}
rewind ($handle); // Go back to the beginning
/*
* Note that we don't have problems with 9 being fewer characters than
* 10 because we are always incrementing, so we will always write at
* least as many characters as we read
*/
fwrite ($handle, ++$count); // Don't forget to increment the counter
fclose ($handle); // Done
return $count;
}
?>