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 .= '/'; $help_expresso = $webserver_url .'help'; $webserver_url = $webserver_url . 'jabberit_messenger/jmessenger/'; require_once PHPGW_SERVER_ROOT . '/jabberit_messenger/jmessenger/inc/jabberit_sessions.inc.php'; $_SESSION['phpgw_info']['jabberit_messenger']['webserver_url'] = $webserver_url; // Temas Expresso $theme = "window_" . $GLOBALS['phpgw_info']['user']['preferences']['common']['theme'] . ".css"; if( !file_exists('../jabberit_messenger/jmessenger/templates/default/css/'.$theme) ) $theme = "window_default.css"; //Bloqueio das Salas de Bate-Papo por Organização $account_dn = $GLOBALS['phpgw_info']['user']['account_dn']; $ou = explode("dc=", $account_dn); $ou = explode("ou=",$ou[0]); $ou = array_pop($ou); $ou = strtoupper(substr($ou,0,strlen($ou)-1)); $OUS_BLOQ = array(); $Im_ChatRoom = "false"; foreach( $OUS_BLOQ as $lock ) { if ( strtoupper($lock) === strtoupper($ou) ) { $Im_ChatRoom = "true"; } } // User $fullName = $_SESSION['phpgw_info']['jabberit_messenger']['fullname']; $js = "var path_jabberit = '".$webserver_url."';"; $js .= "var theme_jabberit = '".$theme."';"; $js .= "var help_expresso = '".$help_expresso."';"; $js .= "var im_chatroom = '".$Im_ChatRoom."';"; // Preferences User require_once PHPGW_SERVER_ROOT . '/jabberit_messenger/jmessenger/inc/class.DataBaseIM.inc.php'; $_DbIM = new DataBaseIM(); $preferences = $_DbIM->getPreferences(); echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; break; } } ?>