getSitePanel(); define("CONTENT", ob_get_clean()); //ob_start() called in header.php require_once __DIR__.'/cron.php'; if (!isset($fusion_jquery_tags)) { $fusion_jquery_tags = ''; } // Load layout if (defined('ADMIN_PANEL')) { require_once __DIR__.'/admin_layout.php'; } else { require_once __DIR__.'/layout.php'; } // Catch the output $output = ob_get_contents(); if (ob_get_length() !== FALSE) { ob_end_clean(); } // Do the final output manipulation $output = handle_output($output); // Search in output and replace normal links with SEF links if (!isset($_GET['aid'])) { if (fusion_get_settings('site_seo')) { \PHPFusion\Rewrite\Permalinks::getPermalinkInstance()->handle_url_routing($output); $output = \PHPFusion\Rewrite\Permalinks::getPermalinkInstance()->getOutput($output); } } if (isset($permalink)) { unset($permalink); } // Check all loaded locale files //print_p(\PHPFusion\Locale::get_loaded_files()); // Output the final complete page content echo $output; remove_notice(); if ((ob_get_length() > 0)) { // length is a number ob_end_flush(); }