function logout_joomla(&$data) { define('LOGOUT_PHPBB', true); //set define to allow to check for recursivity //load the Joomla! 1.5 site application if (!defined('_JEXEC') || defined('PHPBB_EMBEDDED')) { //load the Joomla! 1.5 site application loadJoomla15(); $app =& JFactory::getApplication('site'); if (!defined('PHPBB_EMBEDDED')) { $GLOBALS['mainframe'] =& $app; } // preform login error_reporting(E_ERROR); //ingore vanished session notice $result = $app->logout(); $session =& JFactory::getSession(); $session->close(); echo "<script language=\"javascript\" type=\"text/javascript\"> alert('This is what an alert message looks like.'); </script>"; } }
function logout_joomla(&$data) { define('LOGOUT_PHPBB', true); //set define to allow to check for recursivity //load the Joomla! 1.5 site application if (!defined('_JEXEC') || defined('PHPBB_EMBEDDED')) { //load the Joomla! 1.5 site application loadJoomla15(); $app =& JFactory::getApplication('site'); if (!defined('PHPBB_EMBEDDED')) { $GLOBALS['mainframe'] =& $app; } // preform login error_reporting(E_ERROR); //ingore vanished session notice $result = $app->logout(); $session =& JFactory::getSession(); $session->close(); } }