Hello,
i use Joomla and dadabik together in a wrapper window and this hack for
accessing the activ session of joomla.
Put this ontop of your dadabik config.php:
My Joomla is in a subdirectory called portal. Tested with joomla 1.0.15
___________
define( "_VALID_MOS", 1 );
require_once( "../portal/configuration.php" );
require_once( "../portal/includes/joomla.php" );
$database = new database( $mosConfig_host, $mosConfig_user, $mosConfig_password, $mosConfig_db, $mosConfig_dbprefix );
// mainframe is an API workhorse, lots of 'core' interaction routines
$mainframe = new mosMainFrame( $database, $option, '../portal' ,true);
$mainframe->initSession();
// get the information about the current user from the sessions table
$my = $mainframe->getUser();
$gid = intval( $my->gid );
echo "GID:".$gid;
______
see also
http://www.javega.de/dadabikHACKS
"at work
"
Questions are welcome
greets Roberto
Post Edited (11-07-08 23:03)