cmdHandler($_REQUEST['cmd']); } else { // header() is placed in here because header is set again at the end of cmd-handler because of changing content-type header('Content-Type: text/html; charset=UTF-8'); if($page->menu['currpage']['pagetemplate'] <> ''){ include($_SERVER['DOCUMENT_ROOT'] . $page->menu['currpage']['pagetemplate']); } } ob_end_flush();