Example #1
0
 function getLinkItemForConfigurationIndex () {
    $retour = NULL;
    $context_item = $this->_environment->getCurrentContextItem();
    if ( $context_item->withAds() ) {
       include_once('classes/cs_link.php');
       $link_item = new cs_link();
       $link_item->setTitle($this->_translator->getMessage('CONFIGURATION_SPONSOR_LINK'));
       $link_item->setDescription($this->_translator->getMessage('CONFIGURATION_SPONSOR_DESC'));
       $link_item->setIconPath('plugins/ads/ADVERTISING.gif');
       $link_item->setContextID($this->_environment->getCurrentContextID());
       $link_item->setModule('configuration');
       $link_item->setFunction('plugin');
       $link_item->setParameter(array('pluginname' => 'ads'));
       $retour = $link_item;
    }
    return $retour;
 }
 function asHTML()
 {
     $html = '';
     $current_context = $this->_environment->getCurrentContextItem();
     $html = '';
     $html .= '<div class="right_box">' . LF;
     $html .= '         <noscript>';
     $html .= '<div class="right_box_title" style="font-weight:bold;">' . $this->_translator->getMessage('COMMON_CONFIGURATION') . '</div>';
     $html .= '         </noscript>';
     $html .= '<div class="right_box_main" style="font-size:10pt; padding-top:2px;padding-bottom:3px; padding-left:0px;">' . LF;
     $link_item = new cs_link();
     $link_item->setDescription($this->_translator->getMessage('HOME_ROOM_MEMBER_ADMIN_DESC'));
     $link_item->setIconPath('images/cs_config/CONFIGURATION_OVERVIEW.gif');
     $link_item->setTitle($this->_translator->getMessage('COMMON_COMMSY_CONFIGURE_HOME'));
     $link_item->setContextID($this->_environment->getCurrentContextID());
     $link_item->setModule('configuration');
     $link_item->setFunction('index');
     $params = array();
     $link_item->setParameter($params);
     unset($params);
     $html .= '<table style="width:100%; border-collapse:collapse;" summary="Layout">' . LF;
     $html .= '<tr>' . LF;
     $html .= '<td style="width:10%;">' . LF;
     $html .= $link_item->getLinkIcon(30) . LF;
     $html .= '</td>' . LF;
     $html .= '<td style="width:90%;">' . LF;
     $html .= $link_item->getLink(30) . LF;
     $html .= '</td>' . LF;
     $html .= '</tr>' . LF;
     $html .= '</table>' . LF;
     if ($this->_with_modifying_actions) {
         // tasks
         $manager = $this->_environment->getTaskManager();
         $manager->resetLimits();
         $manager->setContextLimit($this->_environment->getCurrentContextID());
         $manager->setStatusLimit('REQUEST');
         $manager->select();
         $tasks = $manager->get();
         $task = $tasks->getFirst();
         $show_user_config = false;
         $count_new_accounts = 0;
         while ($task) {
             $mode = $task->getTitle();
             $task = $tasks->getNext();
             if ($mode == 'TASK_USER_REQUEST') {
                 $count_new_accounts++;
                 $show_user_config = true;
             }
         }
         if (!$this->_environment->inPrivateRoom()) {
             $link_item = new cs_link();
             $link_item->setDescription($this->_translator->getMessage('HOME_ROOM_MEMBER_ADMIN_DESC'));
             $link_item->setIconPath('images/cs_config/ROOM_MEMBER_ADMIN.gif');
             $link_item->setTitle($this->_translator->getMessage('HOME_LOGIN_NEW_ACCOUNT_LINK', $count_new_accounts));
             $link_item->setContextID($this->_environment->getCurrentContextID());
             $link_item->setModule('account');
             $link_item->setFunction('index');
             $params = array();
             $params['selstatus'] = '1';
             $link_item->setParameter($params);
             unset($params);
             $html .= '<table style="width:100%; border-collapse:collapse;" summary="Layout">' . LF;
             $html .= '<tr>' . LF;
             $html .= '<td style="width:10%;">' . LF;
             if (!$show_user_config) {
                 $html .= $link_item->getIcon(30) . LF;
             } else {
                 $html .= $link_item->getLinkIcon(30) . LF;
             }
             $html .= '</td>' . LF;
             if (!$show_user_config) {
                 $html .= '<td style="width:90%; font-weight:normal">' . LF;
                 $html .= '<span class="disabled">' . $link_item->getTitle() . '</span>' . LF;
             } else {
                 $html .= '<td style="width:90%; font-weight:bold;">' . LF;
                 $html .= $link_item->getLink() . LF;
             }
             $html .= '</td>' . LF;
             $html .= '</tr>' . LF;
             $html .= '</table>' . LF;
         }
         if ($this->_environment->inCommunityRoom() and $current_context->withRubric(CS_MATERIAL_TYPE)) {
             // tasks
             $manager = $this->_environment->getTaskManager();
             $manager->resetLimits();
             $manager->setContextLimit($this->_environment->getCurrentContextID());
             $manager->setStatusLimit('REQUEST');
             $manager->select();
             $tasks = $manager->get();
             $task = $tasks->getFirst();
             $show_materials_config = false;
             $count_new_materials = 0;
             while ($task) {
                 $mode = $task->getTitle();
                 $task = $tasks->getNext();
                 if ($mode == 'TASK_REQUEST_MATERIAL_WORLDPUBLIC' or $mode == 'TASK_CANCEL_MATERIAL_WORLDPUBLIC') {
                     $count_new_materials++;
                     $show_materials_config = true;
                 }
             }
             // material
             $link_item = new cs_link();
             $link_item->setTitle($this->_translator->getMessage('HOME_MATERIAL_ADMIN_TINY_HEADER', $count_new_materials));
             $link_item->setDescription($this->_translator->getMessage('HOME_MATERIAL_ADMIN_TINY_DESCRIPTION'));
             $link_item->setIconPath('images/cs_config/MATERIAL_ADMIN_TINY_DESCRIPTION.gif');
             $link_item->setContextID($this->_environment->getCurrentContextID());
             $link_item->setModule('material_admin');
             $link_item->setFunction('index');
             $params = array();
             $params['selstatus'] = '1';
             $link_item->setParameter($params);
             $html .= '<table style="width:100%; border-collapse:collapse;" summary="Layout">' . LF;
             $html .= '<tr>' . LF;
             $html .= '<td style="width:10%;">' . LF;
             if (!$show_materials_config) {
                 $html .= $link_item->getIcon(30) . LF;
             } else {
                 $html .= $link_item->getLinkIcon(30) . LF;
             }
             $html .= '</td>' . LF;
             if (!$show_materials_config) {
                 $html .= '<td style="width:90%; font-weight:normal">' . LF;
                 $html .= '<span class="disabled">' . $link_item->getTitle() . '</span>' . LF;
             } else {
                 $html .= '<td style="width:90%; font-weight:bold;">' . LF;
                 $html .= $link_item->getLink() . LF;
             }
             $html .= '</td>' . LF;
             $html .= '</tr>' . LF;
             $html .= '</table>' . LF;
         }
     }
     $html .= '</div>' . LF;
     $html .= '</div>' . LF;
     return $html;
 }
    $link_item->setFunction('statistic');
    $link_item->setParameter(array());
    $admin_link_list->add($link_item);
}
if ($environment->inServer()) {
    $link_item = new cs_link();
    $link_item->setTitle($translator->getMessage('PREFERENCES_OUTOFSERVICE'));
    $link_item->setDescription($translator->getMessage('PREFERENCES_OUTOFSERVICE_DESC'));
    $link_item->setIconPath('images/cs_config/SERVER_OUTOFSERVICE.gif');
    $link_item->setContextID($environment->getCurrentContextID());
    $link_item->setModule('configuration');
    $link_item->setFunction('outofservice');
    $link_item->setParameter(array());
    $admin_link_list->add($link_item);
}
if ($environment->inServer()) {
    $link_item = new cs_link();
    $link_item->setTitle($translator->getMessage('CONFIGURATION_UPDATE_LINK'));
    $link_item->setDescription($translator->getMessage('CONFIGURATION_UPDATE_DESC'));
    if ($environment->getCurrentBrowser() == 'MSIE' && mb_substr($environment->getCurrentBrowserVersion(), 0, 1) == '6') {
        $link_item->setIconPath('images/commsyicons_msie6/48x48/config/update.gif');
    } else {
        $link_item->setIconPath('images/commsyicons/48x48/config/update.png');
    }
    $link_item->setContextID($environment->getCurrentContextID());
    $link_item->setModule('configuration');
    $link_item->setFunction('update');
    $link_item->setParameter(array());
    $admin_link_list->add($link_item);
}
$admin_link_list->sortby('title');
        $link_item->setDescription($translator->getMessage('CONFIGURATION_PLUGIN_DESC'));
        $link_item->setContextID($environment->getCurrentContextID());
        $link_item->setModule('configuration');
        $link_item->setFunction('plugins');
        $link_item->setParameter(array('iid' => $environment->getCurrentContextID()));
        $configuration_rubric_extras_link_list->add($link_item);
    }
}
################################################
# media integration
################################################
global $c_media_integration;
// !!!!
// NOTE: when opening media integration for all room contexts, make sure that mediadistribution online is only accessable for community rooms(see cs_configuration_mediaintegration_form)
// this restriction should always be implemented
// test it
// remove page protection in configuration_mediaintegration.php
// !!!!
if ($environment->inCommunityRoom() && isset($c_media_integration) && ($c_media_integration === true || is_array($c_media_integration) && in_array($environment->getCurrentContextID(), $c_media_integration))) {
    $link_item = new cs_link();
    $link_item->setTitle($translator->getMessage('CONFIGURATION_MEDIA_INTEGRATION'));
    $link_item->setDescription($translator->getMessage('CONFIGURATION_MEDIA_INTEGRATION_DESC'));
    $link_item->setIconPath('images/commsyicons/48x48/config/video.png');
    $link_item->setIconPathForNavigation('images/commsyicons/22x22/config/video.png');
    $link_item->setContextID($environment->getCurrentContextID());
    $link_item->setModule('configuration');
    $link_item->setFunction('mediaintegration');
    $link_item->setParameter(array());
    $configuration_rubric_extras_link_list->add($link_item);
    unset($link_item);
}
Example #5
0
 function _getConfigurationBoxAsHTML($act_fct)
 {
     $html = '';
     $room = $this->_environment->getCurrentContextItem();
     $link_item = new cs_link();
     $link_item->setDescription($this->_translator->getMessage('HOME_ROOM_MEMBER_ADMIN_DESC'));
     $link_item->setIconPath('images/cs_config/CONFIGURATION_OVERVIEW.gif');
     $link_item->setTitle($this->_translator->getMessage('COMMON_COMMSY_CONFIGURE_HOME'));
     $link_item->setContextID($this->_environment->getCurrentContextID());
     $link_item->setModule('configuration');
     $link_item->setFunction('index');
     $params = array();
     $link_item->setParameter($params);
     unset($params);
     $html .= '<div class="netnavigation_panel_top">     ' . LF;
     $html .= '<div style="padding-top:3px; padding-bottom:3px; padding-left:0px; padding-right:0px;"><ul style="list-style-type: none; font-size:8pt; padding-top:0px; margin-bottom:0px; padding-left:0px;">' . LF;
     $html .= '<li>' . LF;
     $html .= '<div style="min-height:30px; width:100%;"><div style="float:left; width:30px;">' . LF;
     $html .= $link_item->getLinkIcon(25) . LF;
     $html .= '</div><div style="padding-top:5px; text-align:left;">' . LF;
     $html .= $link_item->getLink(30) . LF;
     $html .= '</div></div>' . LF;
     $html .= '</li>' . LF;
     $html .= '</ul>' . LF;
     $html .= '</div>' . LF;
     $html .= '</div>' . LF;
     $html .= '<div class="netnavigation_panel">     ' . LF;
     $html .= '<noscript>';
     $html .= '<div class="netnavigation_title">' . $this->_translator->getMessage('COMMON_CONFIGURATION_ADMIN_OPTIONS') . '</div>';
     $html .= '</noscript>';
     $html .= '<div><ul style="list-style-type: none; font-size:8pt; padding-left:0px;">' . LF;
     $list = $this->getAdminConfigurationList();
     $element = $list->getFirst();
     while ($element) {
         $html .= '<li>' . LF;
         $html .= '<div style="min-height:30px; width:100%;"><div style="float:left; width:30px;">' . LF;
         if ($element->getFunction() == $this->_environment->getCurrentFunction() or !$this->_with_modifying_actions) {
             $html .= $element->getIcon(25) . LF;
         } else {
             $html .= $element->getLinkIcon(25) . LF;
         }
         $html .= '</div><div style="padding-top:5px;">' . LF;
         if (!$this->_with_modifying_actions) {
             $html .= '<span class="disabled">' . $element->getShortTitle() . '</span>' . LF;
         } elseif ($element->getModule() == $this->_environment->getCurrentModule() and $element->getFunction() == 'index' and $this->_environment->getCurrentFunction() == 'status') {
             $html .= $element->getShortLink() . LF;
         } elseif ($element->getFunction() == $this->_environment->getCurrentFunction()) {
             $html .= '<span class="disabled">' . $element->getShortTitle() . '</span>' . LF;
         } else {
             $html .= $element->getShortLink() . LF;
         }
         $html .= '</div></div>' . LF;
         $html .= '</li>' . LF;
         $element = $list->getNext();
     }
     $html .= '</ul>' . LF;
     $html .= '</div>' . LF;
     $html .= '</div>' . LF;
     $html .= '<div class="netnavigation_panel">     ' . LF;
     $html .= '<noscript>';
     $html .= '<div class="netnavigation_title">' . $this->_translator->getMessage('COMMON_CONFIGURATION_ROOM_OPTIONS') . '</div>';
     $html .= '</noscript>';
     $html .= '<div><ul style="list-style-type: none; font-size:8pt; padding-left:0px;">' . LF;
     $list = $this->getRoomConfigurationList();
     $element = $list->getFirst();
     while ($element) {
         $html .= '<li>' . LF;
         $html .= '<div style="min-height:30px; width:100%;"><div style="float:left; width:30px;">' . LF;
         if ($element->getFunction() == $this->_environment->getCurrentFunction() or !$this->_with_modifying_actions) {
             $html .= $element->getIcon(25) . LF;
         } else {
             $html .= $element->getLinkIcon(25) . LF;
         }
         $html .= '</div><div style="padding-top:5px;">' . LF;
         if (!$this->_with_modifying_actions) {
             $html .= '<span class="disabled">' . $element->getShortTitle() . '</span>' . LF;
         } elseif ($element->getModule() == $this->_environment->getCurrentModule() and $element->getFunction() == 'index' and $this->_environment->getCurrentFunction() == 'status') {
             $html .= $element->getShortLink() . LF;
         } elseif ($element->getFunction() == $this->_environment->getCurrentFunction()) {
             $html .= '<span class="disabled">' . $element->getShortTitle() . '</span>' . LF;
         } else {
             $html .= $element->getShortLink() . LF;
         }
         $html .= '</div></div>' . LF;
         $html .= '</li>' . LF;
         $element = $list->getNext();
     }
     $html .= '</ul>' . LF;
     $html .= '</div>' . LF;
     $html .= '</div>' . LF;
     if (!$this->_environment->inPortal() and !$this->_environment->inServer()) {
         $html .= '<div class="netnavigation_panel">     ' . LF;
         $html .= '<noscript>';
         $html .= '<div class="netnavigation_title">' . $this->_translator->getMessage('COMMON_CONFIGURATION_RUBRIC_OPTIONS') . '</div>';
         $html .= '</noscript>';
         $html .= '<div><ul style="list-style-type: none; font-size:8pt; padding-left:0px;">' . LF;
         $list = $this->getRubricConfigurationList();
         $element = $list->getFirst();
         while ($element) {
             $html .= '<li>' . LF;
             $html .= '<div style="min-height:30px; width:100%;"><div style="float:left; width:30px;">' . LF;
             if ($element->getFunction() == $this->_environment->getCurrentFunction() or !$this->_with_modifying_actions) {
                 $html .= $element->getIcon(25) . LF;
             } else {
                 $html .= $element->getLinkIcon(25) . LF;
             }
             $html .= '</div><div style="padding-top:5px;">' . LF;
             if (!$this->_with_modifying_actions) {
                 $html .= '<span class="disabled">' . $element->getShortTitle() . '</span>' . LF;
             } elseif ($element->getModule() == $this->_environment->getCurrentModule() and $element->getFunction() == 'index' and $this->_environment->getCurrentFunction() == 'status') {
                 $html .= $element->getShortLink() . LF;
             } elseif ($element->getFunction() == $this->_environment->getCurrentFunction()) {
                 $html .= '<span class="disabled">' . $element->getShortTitle() . '</span>' . LF;
             } else {
                 $html .= $element->getShortLink() . LF;
             }
             $html .= '</div></div>' . LF;
             $html .= '</li>' . LF;
             $element = $list->getNext();
         }
         $html .= '</ul>' . LF;
         $html .= '</div>' . LF;
         $html .= '</div>' . LF;
     }
     $addonlist = $this->getAddOnConfigurationList();
     $element = $addonlist->getFirst();
     if ($element) {
         $html .= '<div class="netnavigation_panel">     ' . LF;
         $html .= '<noscript>';
         $html .= '<div class="netnavigation_title">' . $this->_translator->getMessage('COMMON_ADDITIONAL_CONFIGURATION_TITLE') . '</div>';
         $html .= '</noscript>';
         $html .= '<div><ul style="list-style-type: none; font-size:8pt; padding-left:0px;">' . LF;
         while ($element) {
             $html .= '<li>' . LF;
             $html .= '<div style="min-height:30px; width:100%;"><div style="float:left; width:30px;">' . LF;
             if ($element->getFunction() == $this->_environment->getCurrentFunction() or !$this->_with_modifying_actions) {
                 $html .= $element->getIcon(25) . LF;
             } else {
                 $html .= $element->getLinkIcon(25) . LF;
             }
             $html .= '</div><div style="padding-top:5px;">' . LF;
             if ($element->getFunction() == $this->_environment->getCurrentFunction()) {
                 $html .= '<span class="disabled">' . $element->getShortTitle() . '</span>' . LF;
             } elseif (!$this->_with_modifying_actions) {
                 $html .= '<span class="disabled">' . $element->getShortTitle() . '</span>' . LF;
             } else {
                 $html .= $element->getShortLink() . LF;
             }
             $html .= '</div></div>' . LF;
             $html .= '</li>' . LF;
             $element = $addonlist->getNext();
         }
         $html .= '</ul>' . LF;
         $html .= '</div>' . LF;
     }
     $html .= '</div>' . LF;
     return $html;
 }
    $link_item->setDescription($translator->getMessage('CONFIGURATION_LANGUAGE_LINK_DESC'));
    $link_item->setContextID($environment->getCurrentContextID());
    $link_item->setModule('configuration');
    $link_item->setFunction('language');
    $link_item->setParameter(array());
    $room_link_list->add($link_item);
}
if ($environment->inServer()) {
    $link_item = new cs_link();
    $link_item->setTitle($translator->getMessage('CONFIGURATION_BACKUP_LINK'));
    $link_item->setIconPath('images/cs_config/PORTAL_ENTER_NEW.gif');
    $link_item->setDescription($translator->getMessage('CONFIGURATION_BACKUP_LINK_DESC'));
    $link_item->setContextID($environment->getCurrentContextID());
    $link_item->setModule('configuration');
    $link_item->setFunction('backup');
    $link_item->setParameter(array());
    $room_link_list->add($link_item);
}
if ($environment->inPortal()) {
    $link_item = new cs_link();
    $link_item->setTitle($translator->getMessage('CONFIGURATION_PORTAL_UPLOAD'));
    $link_item->setDescription($translator->getMessage('CONFIGURATION_PORTAL_UPLOAD_DESC'));
    $link_item->setIconPath('images/cs_config/COMMON_ROOM_META.gif');
    $link_item->setContextID($environment->getCurrentContextID());
    $link_item->setModule('configuration');
    $link_item->setFunction('portalupload');
    $link_item->setParameter(array());
    $room_link_list->add($link_item);
    unset($link_item);
}
$room_link_list->sortby('title');
###############################################
# connection to other commsys
###############################################
if ($context_item->isServer()) {
    $link_item = new cs_link();
    $link_item->setTitle($translator->getMessage('CONFIGURATION_CONNECTION'));
    $link_item->setIconPath('images/cs_config/PORTAL_ENTER_NEW.gif');
    $link_item->setDescription($translator->getMessage('CONFIGURATION_CONNECTION_DESC'));
    $link_item->setContextID($environment->getCurrentContextID());
    $link_item->setModule('configuration');
    $link_item->setFunction('connection');
    $addon_link_list->add($link_item);
}
#############################################
# export import
#############################################
$context_item = $environment->getCurrentContextItem();
if ($context_item->isPortal()) {
    $link_item = new cs_link();
    $link_item->setTitle($translator->getMessage('CONFIGURATION_EXPORT_IMPORT_LINK'));
    $link_item->setIconPath('images/cs_config/CONFIGURATION_EXTRA_FORM.gif');
    $link_item->setDescription($translator->getMessage('CONFIGURATION_EXPORT_IMPORT_DESC'));
    $link_item->setContextID($environment->getCurrentContextID());
    $link_item->setModule('configuration');
    $link_item->setFunction('export_import');
    $link_item->setParameter(array('iid' => $environment->getCurrentContextID()));
    $addon_link_list->add($link_item);
}
if ($addon_link_list->getFirst()) {
    $addon_link_list->sortby('title');
}
Example #8
0
 function asHTML()
 {
     $html = '';
     $current_context = $this->_environment->getCurrentContextItem();
     $html = '';
     $html .= '<div class="right_box">' . LF;
     $html .= '         <noscript>';
     $html .= '<div class="right_box_title" style="font-weight:bold;">' . $this->_translator->getMessage('HOME_EXTRA_TOOLS') . '</div>';
     $html .= '         </noscript>';
     $html .= '<div class="right_box_main" style="font-size:10pt; padding-top:2px;padding-bottom:3px; padding-left:0px;">' . LF;
     $current_context = $this->_environment->getCurrentContextItem();
     if ($current_context->showWikiLink() and $current_context->existWiki() and $current_context->issetWikiHomeLink()) {
         global $c_pmwiki_path_url;
         $url_session_id = '';
         if ($current_context->withWikiUseCommSyLogin()) {
             $session_item = $this->_environment->getSessionItem();
             $url_session_id = '?commsy_session_id=' . $session_item->getSessionID();
             unset($session_item);
         }
         $title = '<span> <a href="' . $c_pmwiki_path_url . '/wikis/' . $current_context->getContextID() . '/' . $current_context->getItemID() . '/' . $url_session_id . '" target="_blank">' . $current_context->getWikiTitle() . '</a> (' . $this->_translator->getMessage('COMMON_WIKI_LINK') . ')</span>';
         $link_item = new cs_link();
         $link_item->setIconPath('images/cs_config/WIKI_CONFIGURATION_IMAGE.gif');
         $html .= '<table style="width:100%; border-collapse:collapse;" summary="Layout">' . LF;
         $html .= '<tr>' . LF;
         $html .= '<td style="width:10%;">' . LF;
         $html .= '<a href="' . $c_pmwiki_path_url . '/wikis/' . $current_context->getContextID() . '/' . $current_context->getItemID() . '/' . $url_session_id . '" target="_blank">' . $link_item->getIcon(30) . '</a>' . LF;
         $html .= '</td>' . LF;
         $html .= '<td style="width:90%;">' . LF;
         $html .= $title . LF;
         $html .= '</td>' . LF;
         $html .= '</tr>' . LF;
         $html .= '</table>' . LF;
     }
     if ($current_context->showHomepageLink()) {
         $url = curl($this->_environment->getCurrentContextID(), 'context', 'forward', array('tool' => 'homepage'));
         $title = '<span style="white-space:nowrap;"> ' . ahref_curl($this->_environment->getCurrentContextID(), 'context', 'forward', array('tool' => 'homepage'), $this->_translator->getMessage('HOMEPAGE_HOMEPAGE'), '', 'chat', '', '', 'onclick="window.open(href, target, \'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes, width=970, height=600\');"') . '</span>';
         $link_item = new cs_link();
         $link_item->setIconPath('images/cs_config/HOMEPAGE_CONFIGURATION_IMAGE.gif');
         $html .= '<table style="width:100%; border-collapse:collapse;" summary="Layout">' . LF;
         $html .= '<tr>' . LF;
         $html .= '<td style="width:10%;">' . LF;
         $html .= '<span style="white-space:nowrap;"> ' . ahref_curl($this->_environment->getCurrentContextID(), 'context', 'forward', array('tool' => 'homepage'), $link_item->getIcon(30), '', 'chat', '', '', 'onclick="window.open(href, target, \'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes, width=970, height=600\');"') . '</span>';
         $html .= '</td>' . LF;
         $html .= '<td style="width:90%;">' . LF;
         $html .= $title . LF;
         $html .= '</td>' . LF;
         $html .= '</tr>' . LF;
         $html .= '</table>' . LF;
     }
     if ($current_context->showChatLink()) {
         /*
            $url = curl( $this->_environment->getCurrentContextID(),
             'chat',
             'index',
             array());
         $title = '<span style="white-space:nowrap;"> '.
                                    ahref_curl($this->_environment->getCurrentContextID(),'chat','index',array(),
                                               $this->_translator->getMessage('CHAT_CHAT'), '', 'chat', '', '',
                                               'onclick="window.open(href, target, \'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes, width=700, height=600\');"').'</span>';
         $link_item = new cs_link();
         $link_item->setIconPath('images/cs_config/CHAT_CONFIGURATION_IMAGE.gif');
         $html .= '<table style="width:100%; border-collapse:collapse;" summary="Layout">'.LF;
         $html .= '<tr>'.LF;
         $html .= '<td style="width:10%;">'.LF;
         $html .= '<span style="white-space:nowrap;"> '.
                                    ahref_curl($this->_environment->getCurrentContextID(),'chat','index',array(),
                                               $link_item->getIcon(30), '', 'chat', '', '',
                                               'onclick="window.open(href, target, \'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes, width=700, height=600\');"').'</span>';
         $html .= '</td>'.LF;
         $html .= '<td style="width:90%;">'.LF;
         $html .= $title.LF;
         $html .= '</td>'.LF;
         $html .= '</tr>'.LF;
         $html .= '</table>'.LF;
         */
         // new chat
         global $c_etchat_enable;
         if (!empty($c_etchat_enable) and $c_etchat_enable) {
             $url = curl($this->_environment->getCurrentContextID(), 'context', 'forward', array('tool' => 'etchat'));
             $current_user = $this->_environment->getCurrentUserItem();
             $link_item = new cs_link();
             if ($current_user->isReallyGuest()) {
                 $title = '<span class="disabled" style="white-space:nowrap;">' . $this->_translator->getMessage('CHAT_CHAT') . '</span>';
                 // TBD: icon ausgrauen
                 $link_item->setIconPath('images/cs_config/CHAT_CONFIGURATION_IMAGE.gif');
             } else {
                 $title = '<span style="white-space:nowrap;"> ' . ahref_curl($this->_environment->getCurrentContextID(), 'context', 'forward', array('tool' => 'etchat'), $this->_translator->getMessage('CHAT_CHAT'), '', 'chat', '', '', 'onclick="window.open(href, target, \'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes, width=970, height=600\');"') . '</span>';
                 $link_item->setIconPath('images/cs_config/CHAT_CONFIGURATION_IMAGE.gif');
             }
             $html .= '<table style="width:100%; border-collapse:collapse;" summary="Layout">' . LF;
             $html .= '<tr>' . LF;
             $html .= '<td style="width:10%;">' . LF;
             $html .= '<span style="white-space:nowrap;"> ' . ahref_curl($this->_environment->getCurrentContextID(), 'context', 'forward', array('tool' => 'etchat'), $link_item->getIcon(30), '', 'chat', '', '', 'onclick="window.open(href, target, \'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes, width=970, height=600\');"') . '</span>';
             $html .= '</td>' . LF;
             $html .= '<td style="width:90%;">' . LF;
             $html .= $title . LF;
             $html .= '</td>' . LF;
             $html .= '</tr>' . LF;
             $html .= '</table>' . LF;
         }
     }
     $html .= '</div>' . LF;
     $html .= '</div>' . LF;
     return $html;
 }
$configuration_important_link_list->add($link_item);
$link_item = new cs_link();
$link_item->setTitle($translator->getMessage('CONFIGURATION_STRUCTURE_OPTIONS_TITLE'));
$current_context = $environment->getCurrentContextItem();
if ($environment->getCurrentBrowser() == 'MSIE' && mb_substr($environment->getCurrentBrowserVersion(), 0, 1) == '6') {
    $link_item->setIconPath('images/commsyicons_msie6/48x48/config/structure_options.gif');
} else {
    $link_item->setIconPath('images/commsyicons/48x48/config/structure_options.png');
}
$link_item->setDescription($translator->getMessage('CONFIGURATION_STRUCTURE_OPTIONS_DESC'));
$link_item->setContextID($environment->getCurrentContextID());
$link_item->setModule('configuration');
$link_item->setFunction('structure_options');
$link_item->setParameter(array());
$configuration_important_link_list->add($link_item);
if (!$environment->inPrivateRoom()) {
    $link_item = new cs_link();
    $link_item->setTitle($translator->getMessage('CONFIGURATION_ACCOUNT_OPTIONS_TITLE'));
    $link_item->setDescription($translator->getMessage('CONFIGURATION_ACCOUNT_OPTIONS_DESC'));
    if ($environment->getCurrentBrowser() == 'MSIE' && mb_substr($environment->getCurrentBrowserVersion(), 0, 1) == '6') {
        $link_item->setIconPath('images/commsyicons_msie6/48x48/config/account_options.gif');
    } else {
        $link_item->setIconPath('images/commsyicons/48x48/config/account_options.png');
    }
    $link_item->setContextID($environment->getCurrentContextID());
    $link_item->setModule('configuration');
    $link_item->setFunction('account_options');
    $link_item->setParameter('');
    $configuration_important_link_list->add($link_item);
}
#   $configuration_important_link_list->sortby('title');
    $link_item->setDescription($translator->getMessage('PREFERENCES_USAGE_INFOS_DESC'));
    if ($environment->getCurrentBrowser() == 'MSIE' && mb_substr($environment->getCurrentBrowserVersion(), 0, 1) == '6') {
        $link_item->setIconPath('images/commsyicons_msie6/48x48/config/usage_info_options.gif');
        $link_item->setIconPathForNavigation('images/commsyicons_msie6/22x22/config/usage_info_options.gif');
    } else {
        $link_item->setIconPath('images/commsyicons/48x48/config/usage_info_options.png');
        $link_item->setIconPathForNavigation('images/commsyicons/22x22/config/usage_info_options.png');
    }
    $link_item->setContextID($environment->getCurrentContextID());
    $link_item->setModule('configuration');
    $link_item->setFunction('usageinfo');
    $link_item->setParameter('');
    $usage_link_list->add($link_item);
}
if (!$environment->inServer() and !$environment->inPrivateRoom()) {
    $link_item = new cs_link();
    $link_item->setTitle($translator->getMessage('PREFERENCES_MAIL_LINK'));
    $link_item->setDescription($translator->getMessage('PREFERENCES_MAIL_DESC'));
    if ($environment->getCurrentBrowser() == 'MSIE' && mb_substr($environment->getCurrentBrowserVersion(), 0, 1) == '6') {
        $link_item->setIconPath('images/commsyicons_msie6/48x48/config/mail_options.gif');
        $link_item->setIconPathForNavigation('images/commsyicons_msie6/22x22/config/mail_options.gif');
    } else {
        $link_item->setIconPath('images/commsyicons/48x48/config/mail_options.png');
        $link_item->setIconPathForNavigation('images/commsyicons/22x22/config/mail_options.png');
    }
    $link_item->setContextID($environment->getCurrentContextID());
    $link_item->setModule('configuration');
    $link_item->setFunction('mail');
    $link_item->setParameter(array());
    $usage_link_list->add($link_item);
}
    $link_item->setDescription($translator->getMessage('PREFERENCES_DISCUSSION_CONFIGURATIONS_DESC'));
    $link_item->setIconPath('images/cs_config/CONFIGURATION_DISCUSSION_PREFERENCES.gif');
    $link_item->setContextID($environment->getCurrentContextID());
    $link_item->setModule('configuration');
    $link_item->setFunction('discussion');
    $link_item->setParameter('');
    $rubric_link_list->add($link_item);
}
if ($environment->inProjectRoom() or $environment->inCommunityRoom() or $environment->inGroupRoom()) {
    $link_item = new cs_link();
    $link_item->setTitle($translator->getMessage('PREFERENCES_PATH_CONFIGURATIONS'));
    $link_item->setDescription($translator->getMessage('PREFERENCES_PATH_CONFIGURATIONS_DESC'));
    $link_item->setIconPath('images/cs_config/CONFIGURATION_PATH.gif');
    $link_item->setContextID($environment->getCurrentContextID());
    $link_item->setModule('configuration');
    $link_item->setFunction('path');
    $link_item->setParameter('');
    $rubric_link_list->add($link_item);
}
if ($environment->inProjectroom() and $current_context->showGrouproomConfig() and $current_context->withRubric(CS_GROUP_TYPE)) {
    $link_item = new cs_link();
    $link_item->setTitle($translator->getMessage('CONFIGURATION_GROUPROOM_LINK'));
    $link_item->setIconPath('images/cs_config/PORTAL_ENTER_NEW.gif');
    $link_item->setDescription($translator->getMessage('CONFIGURATION_GROUPROOM_LINK_DESC'));
    $link_item->setContextID($environment->getCurrentContextID());
    $link_item->setModule('configuration');
    $link_item->setFunction('grouproom');
    $link_item->setParameter(array('iid' => $environment->getCurrentContextID()));
    $rubric_link_list->add($link_item);
}
$rubric_link_list->sortby('title');