全部文本 #187135 原始 编辑

Miscellany

公开 text v1 · 不可变
·已发布 2006-09-30 20:53 UTC
渲染后的文本正文
	class template {
			

		// Template function --
		function template() {

		global $config;


	$query = $config->query("SELECT * FROM $table_settings WHERE id='3'");
	$row = $config->fetch_array($query); 
	$tempname = $row['temp'];
	
    $header = "/templates/$tempname/header.tpl.php";
	$body1 = "/templates/$tempname/body1.tpl.php";	
	$body2 = "/templates/$tempname/body2.tpl.php";		
	$footer = "/templates/$tempname/footer.tpl.php";

			
			if ( file_exists( $header ) ) {
				include ( $header );
			} else {
echo "the template $tempname does not exist";
				die ();
			}	
				        
		}
	}