initialize(); /* Start session */ $session = lib_load_session(); $session->initialize(); /* Build the page */ if ($session->isActive()) { $cycle->activate(lib_load_page($portlet, $page, $command, $id)); } /* Create exit event */ lib_event(EVENT_EXIT); /* 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_benchmark(); } ?>