#-- - - - - Copyright (C) 1999-2006 Jive Software. All rights reserved. - This software is the proprietary information of Jive Software. Use is subject to license terms. --> <#assign isSystemAdmin = false> <#assign isCommunityAdmin = false> <#assign isGroupAdmin = false> <#assign isUserAdmin = false> <#assign isHostedAdmin = false> <#assign tabindex = 1 > <#assign pageUser = jiveContext.getUserManager().getUser(authToken.getUserID())> <#assign includeCalendar=statics["com.jivesoftware.community.action.util.ParamUtils"].getBooleanParameter(request, "includeCalendar", false)> <#if !(includeCalendar)> <#if (page.getProperty("meta.includeCalendar")?exists) > <#assign includeCalendar= page.getProperty("meta.includeCalendar").equals("true")> #if> #if> <#assign s=response.setContentType("text/html; charset="+ statics["com.jivesoftware.community.JiveGlobals"].getCharacterEncoding())> <#-- Find the user Permissions --> <#assign isSystemAdmin = jiveContext.isAuthorized(Permissions.SYSTEM_ADMIN)> <#assign isCommunityAdmin = isSystemAdmin || jiveContext.isAuthorized(Permissions.COMMUNITY_ADMIN) || statics["com.jivesoftware.community.action.admin.util.AdminPermMethods"].hasCommunityWithPermission(jiveContext, Permissions.COMMUNITY_ADMIN)> <#assign isGroupAdmin = isSystemAdmin || jiveContext.isAuthorized(Permissions.GROUP_ADMIN) || statics["com.jivesoftware.community.action.admin.util.AdminPermMethods"].hasGroupWithPermission(jiveContext, Permissions.GROUP_ADMIN)> <#assign isUserAdmin = isSystemAdmin || jiveContext.isAuthorized(Permissions.USER_ADMIN)> <#assign isHostedAdmin = jiveContext.isAuthorized(Permissions.HOSTED_ADMIN)> <#assign role= ""> <#if (isSystemAdmin && !isHostedAdmin) > <#assign role = role + "systemAdmin,"> #if> <#if (isCommunityAdmin) > <#assign role = role +"communityAdmin,"> #if> <#if (isGroupAdmin) > <#assign role = role +"groupAdmin,"> #if> <#if (isUserAdmin) > <#assign role = role +"userAdmin,"> #if> <#if (isHostedAdmin) > <#assign role = role +"hostedAdmin,"> #if> <#assign pageID=""> <#attempt> <#assign pageID = page.getProperty("page.pageID")> <#recover> <#assign pageID = "dashboard"> #attempt> <#assign pagetitle=""> <#attempt> <#assign pagetitle = page.getProperty("page.pagetitle")> <#recover> <#if (Request["jivepageinfo"]?exists)> <#assign pagetitle = Request["jivepageinfo"].getTitle() > #if> #attempt> <#assign pagehelp = ""> <#attempt> <#if (page.getProperty("page.pagehelp")?exists) > <#assign pagehelp = page.getProperty("page.pagehelp")> #if> <#recover> #attempt> <#assign extraParams = ""> <#if ( page.getProperty("page.extraParams")?exists)> <#assign extraParams = page.getProperty("page.extraParams")> #if> <#assign component=UIComponents.getUIComponent("admin-console")> <#assign currentItem=""/> <#if (component.getItemByItemID(pageID)?exists)> <#assign currentItem = component.getItemByItemID(pageID)> <#else> <#if (Request["jivepageinfo"]?exists) > <#assign currentItem = component.getItemByItemID(Request["jivepageinfo"].getPageID())> <#else> <#assign currentItem = component.getItemByItemID("system-info")> #if> #if> <#assign currentTab = component.getTabByItemID(currentItem.getId())> <#attempt> <#if (component.getSectionByItemID(currentItem.getId())?exists)> <#assign currentSection = component.getSectionByItemID(currentItem.getId())> <#else> <#assign currentSection = currentTab.getSections().get(0)> #if> <#recover> <#assign currentSection = currentTab.getSections().get(0)> #attempt> <#assign communityID = statics["com.jivesoftware.community.action.util.ParamUtils"].getLongParameter(request, "communityID", -1)> <#assign isCommunity = (communityID != -1 || currentTab.getId().equals("communities"))> <#assign community = jiveContext.getCommunityManager().getRootCommunity()> <#if (communityID?int == -1)> <#if (session.getAttribute("jive.admin.communityID")?exists) > <#assign communityID = session.getAttribute("jive.admin.communityID")> #if> #if> <#attempt> <#if (communityID?int != -1) > <#assign community = jiveContext.getCommunityManager().getCommunity(communityID)> #if> <#recover> #attempt> <#attempt> <#assign s = session.setAttribute("jive.admin.communityID", statics["java.lang.Long"].valueOf(""+community.getID()?c))/> <#recover> #attempt> <#assign communityID=community.getID()> <#assign authorizedToViewBody = UIComponents.hasPermissions(pageID, role)> <#assign hideCommunityPicker=false> <#if page.getProperty("page.hideCommunityPicker")?exists> <#assign hideCommunityPicker = statics["java.lang.Boolean"].valueOf(page.getProperty("page.hideCommunityPicker")).booleanValue()> #if> <#if (isCommunity)> <#if (communityID?int == -1)> <#if (session.getAttribute("jive.admin.communityID")?exists) > <#assign communityID = (session.getAttribute("jive.admin.communityID"))> #if> #if> <#else> #if>