Location: PHPKode > projects > Write2Left > Build/PostFilters/General.php
<?php
/*
+------------------------------------------------------
| Write2Left
| (c) timdorr
| http://www.write2left.com
| hide@address.com
| See License.txt for license info
|------------------------------------------------------
| Script: General.php
| Description:
|   Adds the generic parts to a page
| Created Jul-15-2003
+------------------------------------------------------
*/

/* Class: GeneralPage */
class GeneralPage
{
	function parse_page( $page_data, $page_filename )
	{
		$fp = fopen ( './Build/Parts/PageTop.php', "r" );
		$page_top = fread ( $fp, filesize ( './Build/Parts/PageTop.php' ) );
		fclose ( $fp );

		$fp = fopen ( './Build/Parts/PageBottom.php', "r" );
		$page_bottom = fread ( $fp, filesize ( './Build/Parts/PageBottom.php' ) );
		fclose ( $fp );
		
		return $page_top . $page_data . $page_bottom;
	}

}
$post_parser[] = new GeneralPage();
?>
Return current item: Write2Left