data["page"] = $cms["page"]; $te->data["cms"] = $cms; $doctype = ''; $str = $te->evaluate($row["template"]); $found = 1; echo $doctype.$str; } } if($found == 0) { header("HTTP/1.0 404 Not Found"); header("Status: 404 Not Found"); include './not_found.html'; } ?>