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 . 'jmessenger/'; require_once PHPGW_SERVER_ROOT . '/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('../jmessenger/templates/default/css/'.$theme) ) $theme = "window_default.css"; // User $fullName = $_SESSION['phpgw_info']['jabberit_messenger']['fullname']; $js = "var path_jabberit='".$webserver_url."';"; $js .= "var theme_jabberit='".$theme."';"; // Preferences User require_once PHPGW_SERVER_ROOT . '/jmessenger/inc/class.DataBaseIM.inc.php'; $_DbIM = new DataBaseIM(); $preferences = $_DbIM->getPreferences(); echo ""; echo ""; echo ""; break; } } ?>