function header() { global $HTML, $group_id, $group_public_name, $request, $project; $pagename = $request->getArg('pagename'); $submenu = Template('navbar'); //group is private if (!$project->isPublic()) { //if it's a private group, you must be a member of that group session_require_perm('project_read', $group_id); } //for dead projects must be member of admin project if (!$project->isActive()) { //only SF group can view non-active, non-holding groups session_require_global_perm('forge_admin'); } $HTML->header(array('title' => $group_public_name . ': ' . htmlspecialchars($pagename), 'group' => $group_id, 'toptab' => 'wiki', 'submenu' => $submenu->asXML())); // Display a warning banner for internal users when the wiki is opened // to external users. if ($project->getIsExternal()) { $external_user = false; if (session_loggedin()) { $user = session_get_user(); $external_user = $user->getIsExternal(); } if (!$external_user) { $page = $request->getPage(); if ($page->get('external')) { $external_msg = _("This page is external."); } echo $HTML->warning_msg(_("This project is shared with third-party users (non Alcatel-Lucent users).") . (isset($external_msg) ? ' ' . $external_msg : '')); } } }
exit_error($user->getErrorMessage(), 'home'); } else { if (!$user->isActive()) { exit_error(_('Invalid User : Not active'), 'home'); } } } $group_id = getIntFromRequest('group_id'); $pluginname = 'taskboard'; if (!$group_id) { exit_error(_('Cannot Process your request : No ID specified'), 'home'); } else { $group = group_get_object($group_id); if (!$group) { exit_no_group(); } if (!$group->usesPlugin($pluginname)) { //check if the group has the plugin active exit_error(sprintf(_('First activate the %s plugin through the Project\'s Admin Interface'), $pluginname), 'home'); } session_require_perm('project_admin', $group_id); $taskboard = new TaskBoardHtml($group); $allowedActions = array('trackers', 'columns', 'edit_column', 'down_column', 'delete_column', 'init'); $action = getStringFromRequest('action'); if (in_array($action, $allowedActions)) { include $gfplugins . 'taskboard/www/admin/' . $action . '.php'; } else { include $gfplugins . 'taskboard/www/admin/ind.php'; } } site_project_footer(array());