srcs[1]; $webserver_url = $GLOBALS['phpgw_info']['server']['webserver_url']; $webserver_url = ( !empty($webserver_url) ) ? $webserver_url : '/'; if(strrpos($webserver_url,'/') === false || strrpos($webserver_url,'/') != (strlen($webserver_url)-1)) $webserver_url .= '/'; $webserver_url = $webserver_url . 'jabberit_messenger/'; require_once PHPGW_SERVER_ROOT . '/jabberit_messenger/inc/jabberit_sessions.inc.php'; $_SESSION['phpgw_info']['jabberit_messenger']['webserver_url'] = $webserver_url; $ExternalParticipants = ""; if(isset($_SESSION['phpgw_info']['jabberit_messenger']['conf_organization_jabberit'])) $ExternalParticipants = explode(",",$_SESSION['phpgw_info']['jabberit_messenger']['conf_organization_jabberit']); if(is_array($ExternalParticipants)) { natcasesort($ExternalParticipants); $ExternalParticipants = implode(",", $ExternalParticipants); } require_once dirname(__FILE__) . '/load_lang.php'; $var_js = "var path_jabberit='".$webserver_url."';"; $var_js .= "var externalParticipantsJabberit='".$ExternalParticipants."';"; echo ""; $js = array( 'connector', 'xtools', 'dragdrop', 'windows', 'ldap', 'images', 'show_hidden', 'load', 'editSelect' ); require_once dirname(__FILE__) . '/Controller.class.php'; $controller = new Controller; $script = ''; foreach( $js as $key => $val ) { $val = array('act' => 'j.' . $val ); $script .= $controller->exec($val); } printf("", $script); print ''; print ''; print ''; break; } } ?>