ob_start(); echo '<!DOCTYPE html>'; echo '<html dir="ltr" lang="en">'; require_once($Campsite['HTML_DIR'] . "/$ADMIN_DIR/menu.php"); $_top_menu = ob_get_clean(); } $content = $_top_menu . $content; //if ($needs_menu) { //$content .= "</td></tr>\n</table>\n"; //} //$content .= "</html>\n"; echo $content; camp_html_clear_msgs(true); } elseif (file_exists($Campsite['HTML_DIR'] . "/$ADMIN_DIR/$call_script")) { readfile($Campsite['HTML_DIR'] . "/$ADMIN_DIR/$call_script"); } else { header("HTTP/1.1 404 Not found"); exit; } // run internal cron scheduler if (SystemPref::Get('ExternalCronManagement') == 'N') { flush(); camp_cron(); } /** * Sets a user-defined error function.
public function postDispatch() { camp_html_clear_msgs(true); }