X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=includes%2Fcms.php;h=955294185c47dfa2648b7dcc5fd9064422883fe0;hb=bc994b51af187242bf4fda2c2abb364d7456907b;hp=cb414e24dfac53b2541eb84a2df4fa47fc7758a3;hpb=85abf9b6ef597c9d3cd39dfb3139be1933641c5d;p=dylansserver.git diff --git a/includes/cms.php b/includes/cms.php index cb414e2..9552941 100644 --- a/includes/cms.php +++ b/includes/cms.php @@ -16,6 +16,7 @@ abstract class cms { echo mysqli_connect_error(); exit(); } + ob_start(); } public static function determine_type() { @@ -32,6 +33,7 @@ abstract class cms { protected function not_found() { header("HTTP/1.0 404 Not Found"); + ob_end_clean(); include("404.php"); exit(); } @@ -111,6 +113,7 @@ END_OF_HEAD; END_OF_CLOSE; + ob_flush(); } }