header("Content-type: text/css"); // load required classes chdir('../..'); include_once 'etc/cs_constants.php'; include_once 'etc/cs_config.php'; include_once 'classes/cs_environment.php'; include_once 'functions/curl_functions.php'; // create environment of this page $color = $cs_color['DEFAULT']; // find out the room we're in if (!empty($_GET['cid'])) { $cid = $_GET['cid']; $environment = new cs_environment(); $environment->setCurrentContextID($cid); $room = $environment->getCurrentContextItem(); $portal = $environment->getCurrentPortalItem(); $color = $room->getColorArray(); } ?> /************************************** **** commsy_room_css ****************** **************************************/ #ie{ width:expression(document.body.clientWidth < 990 ? "990px": "auto" && document.body.clientWidth > 1200 ? "1200px": "auto"); } #ie_footer{ width:expression(document.body.clientWidth < 990 ? "990px": "auto" && document.body.clientWidth > 1200 ? "1200px": "auto"); } .commsy_footer{border-top:1px solid #B0B0B0; background-color:white;}
$validated = true; } } } if (!$context_item->isRSSOn()) { $validated = false; } $translator = $environment->getTranslationObject(); if (!$validated) { if (!$context_item->isRSSOn()) { die($translator->getMessage('RSS_NOT_ACTIVATED')); } else { $title = $context_item->getTitle(); if ($context_item->isPrivateRoom()) { $title = ''; $current_portal_item = $environment->getCurrentPortalItem(); if (isset($current_portal_item)) { $title .= $current_portal_item->getTitle(); } $owner_user_item = $context_item->getOwnerUserItem(); $owner_fullname = $owner_user_item->getFullName(); if (!empty($owner_fullname)) { if (!empty($title)) { $title .= ': '; } $title .= $owner_fullname; } unset($owner_user_item); unset($current_portal_item); } header('WWW-Authenticate: Basic realm="' . $translator->getMessage('RSS_TITLE', $title) . '"');
// or to server initialization, if server item does not exist (not implemented yet) if (!isset($context_item_current) and $current_context == 99 and $cid_not_set and !$outofservice) { // server initialization include_once 'functions/error_functions.php'; trigger_error('Server initialization is not implemented yet', E_USER_ERROR); } elseif ($context_item_current->isServer() and $cid_not_set and !$outofservice) { $portal_list = $context_item_current->getPortalList(); if ($portal_list->getCount() == 1) { $current_portal = $portal_list->getFirst(); $environment->setCurrentContextID($current_portal->getItemID()); } unset($portal_list); } /*********** SESSION AND AUTHENTICATION ***********/ // Shibboleth Configuration ####################### $portal_item = $environment->getCurrentPortalItem(); $shib_direct_login = false; $shib_auth_source_id = ''; if (!empty($portal_item)) { // shibboleth auth source and direct login configured? $shib_auth_source = NULL; $auth_source_list = $portal_item->getAuthSourceList(); $auth_item = $auth_source_list->getFirst(); // search for shibboleth auth source while ($auth_item) { if ($auth_item->getSourceType() == 'Shibboleth') { $shib_auth_source = $auth_item; $shib_auth_source_id = $shib_auth_source->getItemID(); } $auth_item = $auth_source_list->getNext(); }