element. build_head(); // Here, get the path of the HTML to display in the body, and save it // in a string. if (sizeof($_GET) == 0) { $path = "content/home.html"; } else { $path = "content/" . $_GET['q']; } // Build title and top bar. $headhtml = <<

world-wide-witzeman

EOF; // Build MOTD (Message of the Day.) $motd = build_motd(array( // $_SERVER['HTTP_X_FORWARDED_FOR'], // $datestr, clean_fn($path), )); //$motd = $_SERVER['REMOTE_ADDR'] . "\t" . $datestr . "\t" . clean_fn($path); // We want the 'data' div to contain our message of the day // we're displaying. So, we insert that in the proper place. $findstr = "motd"; $strindex = strpos($headhtml, $findstr) + 6; $headhtml = substr_replace($headhtml, $motd, $strindex, 0); echo $headhtml; ?>