Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * Base 11 Studios Site
- *
- * File: site.php
- * Contains startPage() and endPage()
- *
- */
- class body
- {
- function __construct($title="bong")
- {
- $this->template = "../template/";
- if (!file_exists($this->template))
- $this->template = "template/";
- if ($title != "bong")
- $this->display("header",$title);
- }
- function display($page, $title="No title specified")
- {
- $header = file_get_contents($this->template.$page.".html");
- echo preg_replace('/{PAGE_TITLE}/', $title, $header);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement