Joomla 2.5 Get User Data from External Script
问题 I need to get the information of the user that's currently logged in to Joomla from a program outside of Joomla itself. I upgraded from 1.5 to 2.5, and what I had before doesn't work anymore. <?php define( '_VALID_MOS', 1 ); include_once( 'globals.php' ); require_once( 'configuration.php' ); require_once( 'includes/joomla.php' ); $option="test"; $mainframe = new mosMainFrame( $database, $option, '.' ); $mainframe->initSession(); $my = $mainframe->getUser(); $joomla_name = $my->name; $joomla