initialize(); /* Start session */ $session = lib_load_session(); $session->initialize(); /* Build the page */ if ($session->isActive()) { $cycle->activate(lib_load_page($portlet, $page, $command, $id)); } /* Close session lock */ session_write_close(); /* Close database connection */ close_db(); /* End timer */ if (isset($cfg["benchmark"]) and $cfg["benchmark"] == true) lib_execution_time_end(); /* Display debug info */ if (isset($cfg["benchmark"]) and $cfg["benchmark"] == true) { lib_execution_time_display(); lib_memory_usage_display(); lib_session_size_display(); lib_loaded_files_display(); lib_database_queries_display(); } ?>