<?php /** * GForge SCM Snapshots download page * * Portions Copyright 1999-2001 (c) VA Linux Systems * The rest Copyright 2003-2004 (c) GForge * * @version $Id$ */ $no_gz_buffer = true; require_once 'env.inc.php'; require_once $gfwww . 'include/pre.php'; // Get current information $group_id = getIntFromGet('group_id'); if (!$group_id) { exit_no_group(); } $group =& group_get_object($group_id); if (!$group || !is_object($group)) { exit_error(_('Error'), _('Error creating group')); } else { if ($group->isError()) { exit_error(_('Error'), $group->getErrorMessage()); } } // Snapshot can be downloaded only if anon SCM is enabled or if the // logged in user belongs the group $permission = $group->enableAnonSCM(); if (session_loggedin()) { $perm =& $group->getPermission(session_get_user());
?> </strong><br /> <input type="text" name="description" value="" size="40" maxlength="80" /><br /></p> <p> <input type="submit" name="submit" value="<?php echo _('Add This List'); ?> " /></p> </form> <?php mail_footer(array()); // // Form to modify list // } elseif (getIntFromGet('change_status') && getIntFromGet('group_list_id')) { $mailingList = new MailingList($Group, getIntFromGet('group_list_id')); if (!$mailingList || !is_object($mailingList)) { exit_error(_('Error'), _('Error getting the list')); } elseif ($mailingList->isError()) { exit_error(_('Error'), $mailingList->getErrorMessage()); } mail_header(array('title' => _('Mail admin'))); ?> <h3><?php echo $mailingList->getName(); ?> </h3> <form method="post" action="<?php echo getStringFromServer('PHP_SELF'); ?> ?group_id=<?php
* the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * GForge is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GForge; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ require_once '../env.inc.php'; require_once $gfwww . 'include/pre.php'; $group_id = getIntFromGet("group_id"); $form_grp = getIntFromGet("form_grp"); if (!$group_id && $form_grp) { $group_id = $form_grp; } site_project_header(array('title' => _('Project Member List'), 'group' => $group_id, 'toptab' => 'memberlist')); echo _('<p>If you would like to contribute to this project by becoming a developer, contact one of the project admins, designated in bold text below.</p>'); // list members $query = "SELECT users.*,user_group.admin_flags,role.role_name AS role\n\tFROM users,user_group \n\tLEFT JOIN role ON user_group.role_id=role.role_id\n\tWHERE users.user_id=user_group.user_id \n\tAND user_group.group_id='{$group_id}' \n\tAND users.status='A'\n\tORDER BY users.user_name "; $title_arr = array(); $title_arr[] = _('Developer'); $title_arr[] = _('Username'); $title_arr[] = _('Role/Position'); if ($GLOBALS['sys_use_people']) { $title_arr[] = _('Skills'); } echo $GLOBALS['HTML']->listTableTop($title_arr);
* * GForge is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GForge; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ require_once 'pre.php'; require_once 'www/admin/admin_utils.php'; require_once '../include/utils.php'; require_once 'common/include/escapingUtils.php'; require_once 'common/trove/TroveCategory.class.php'; $categoryId = getIntFromGet('trove_cat_id'); $category = new TroveCategory($categoryId); if ($category->isError()) { exit_error(_('ERROR'), $category->getErrorMessage()); } $do = getStringFromRequest('do'); switch ($do) { case 'addTranslation': $label = new TroveCategoryLabel($category); $label->create(getStringFromPost('label'), getIntFromPost('language_id')); // TODO : gestion d'erreurs, affichage d'un flag break; case 'removeTranslation': $label = new TroveCategoryLabel($category, getIntFromRequest('label_id')); $label->remove(); // TODO : gestion d'erreurs, affichage d'un flag
$childCategory =& $childrenCategories[$i]; echo $currentIndent; echo '<a href="?form_cat=' . $childCategory->getId() . @$discrim_url . '">'; echo html_image('ic/cfolder15.png', '15', '13', array()); echo ' ' . $childCategory->getLocalizedLabel() . '</a>'; echo ' <em>(' . sprintf(_('%1$s projects'), $childCategory->getSubProjectsCount()) . ')</em><br />'; } ?> </td> </tr> </table> <hr /> <?php // We display projects $offset = getIntFromGet('offset'); $page = getIntFromGet('page'); $projectsResult = $category->getProjects($offset); // store this as a var so it can be printed later as well $html_limit = '<span style="text-align:center;font-size:smaller">'; $html_limit .= sprintf(ngettext('<strong>%d</strong> project in result set.', '<strong>%d</strong> projects in result set.', $querytotalcount), $querytotalcount); // only display pages stuff if there is more to display if ($querytotalcount > $TROVE_BROWSELIMIT) { $html_limit .= ' ' . sprintf(ngettext('Displaying %d project per page. Projects sorted by activity ranking.', 'Displaying %d projects per page. Projects sorted by activity ranking.', $TROVE_BROWSELIMIT), $TROVE_BROWSELIMIT) . '<br />'; // display all the numbers for ($i = 1; $i <= ceil($querytotalcount / $TROVE_BROWSELIMIT); $i++) { $html_limit .= ' '; $displayed_i = "<{$i}>"; if ($page == $i) { $html_limit .= "<strong>{$displayed_i}</strong>"; } else { $html_limit .= url_make_link("/softwaremap/trove_list.php?form_cat={$form_cat}&page={$i}", $displayed_i);
$exact = getStringFromRequest('exact'); // Support for short aliases if (!$words) { $words = getStringFromRequest('q'); } if (!$type_of_search) { $type_of_search = getStringFromRequest('type'); } if (!$type_of_search) { $type_of_search = getStringFromRequest('t'); } if (!$type_of_search) { $type_of_search = SEARCH__TYPE_IS_SOFTWARE; } $words = htmlspecialchars($words); $offset = getIntFromGet('offset'); $searchManager =& getSearchManager(); $parameters = array(SEARCH__PARAMETER_GROUP_ID => $group_id, SEARCH__PARAMETER_ARTIFACT_ID => $atid, SEARCH__PARAMETER_FORUM_ID => $forum_id, SEARCH__PARAMETER_GROUP_PROJECT_ID => $group_project_id); $searchManager->setParametersValues($parameters); if (getStringFromRequest('rss')) { $outputFormat = SEARCH__OUTPUT_RSS; } else { $outputFormat = SEARCH__OUTPUT_HTML; } $renderer = $searchManager->getSearchRenderer($type_of_search, $words, $offset, $exact, $outputFormat); if ($renderer) { $renderer->flush(); } else { $HTML->header(array('title' => _('Search'))); echo '<h1>' . _('Error - Invalid search') . '</h1>'; $HTML->footer(array());