exit_error('Error', $frsr->getErrorMessage()); } else { $feedback .= _('Data Saved'); } } } // Add file(s) to the release if (getStringFromRequest('step2')) { $userfile = getUploadedFile('userfile'); $userfile_name = $userfile['name']; $type_id = getIntFromRequest('type_id'); $release_date = getStringFromRequest('release_date'); $release_date = strtotime($release_date); $processor_id = getStringFromRequest('processor_id'); // Build a Unix time value from the supplied Y-m-d value $group_unix_name = group_getunixname($group_id); $ftp_filename = getStringFromRequest('ftp_filename'); if ($userfile && is_uploaded_file($userfile['tmp_name']) || $sys_use_ftpuploads && $ftp_filename) { if ($sys_use_ftpuploads && $ftp_filename && util_is_valid_filename($ftp_filename) && is_file($upload_dir . '/' . $ftp_filename)) { //file was uploaded already via ftp //use setuid prog to chown it //$cmd = escapeshellcmd("$sys_ftp_upload_chowner $ftp_filename"); //exec($cmd,$output); $userfile_name = $ftp_filename; $userfile = $upload_dir . '/' . $ftp_filename; //echo $cmd.'***'.$output.'***'.$userfile; } // // Now create the new FRSFile in the db // $frsf = new FRSFile($frsr);
/** * * Project Summary Page * * SourceForge: Breaking Down the Barriers to Open Source Development * Copyright 1999-2001 (c) VA Linux Systems * http://sourceforge.net * * @version $Id$ * */ require_once '../env.inc.php'; require_once $gfwww . 'include/pre.php'; /* Project Summary Page Written by dtype Oct. 1999 */ $group_id = getIntFromRequest("group_id"); if (!$group_id && $form_grp) { $group_id = $form_grp; } if (!$group_id) { exit_error("Missing Group Argument", "A group must be specified for this page."); } if (isset($sys_noforcetype) && $sys_noforcetype) { $project =& group_get_object($group_id); include $gfwww . 'include/project_home.php'; } else { header('Location: ' . util_make_url('/projects/' . group_getunixname($group_id) . '/')); }
echo ' <H2>Add a Mailing List</H2> <P>Lists are named in this manner: <BR><B>projectname-listname@' . $GLOBALS['sys_lists_host'] . '</B> <P>It will take <B><FONT COLOR="RED">6-24 Hours</FONT></B> for your list to be created. <P>'; $result = db_query("SELECT list_name FROM mail_group_list WHERE group_id='{$group_id}'"); ShowResultSet($result, 'Existing Mailing Lists'); echo '<P> <FORM METHOD="POST" ACTION="' . $PHP_SELF . '"> <INPUT TYPE="HIDDEN" NAME="post_changes" VALUE="y"> <INPUT TYPE="HIDDEN" NAME="add_list" VALUE="y"> <INPUT TYPE="HIDDEN" NAME="group_id" VALUE="' . $group_id . '"> <B>Mailing List Name:</B><BR> <B>' . group_getunixname($group_id) . '-<INPUT TYPE="TEXT" NAME="list_name" VALUE="" SIZE="10" MAXLENGTH="12">@' . $GLOBALS['sys_lists_host'] . '</B><BR> <P> <B>Is Public?</B><BR> <INPUT TYPE="RADIO" NAME="is_public" VALUE="1" CHECKED> Yes<BR> <INPUT TYPE="RADIO" NAME="is_public" VALUE="0"> No<P> <B>Description:</B><BR> <INPUT TYPE="TEXT" NAME="description" VALUE="" SIZE="40" MAXLENGTH="80"><BR> <P> <B><FONT COLOR="RED">Once created, this list will ALWAYS be attached to your project and cannot be deleted!</FONT></B> <P> <INPUT TYPE="SUBMIT" NAME="SUBMIT" VALUE="Add This List"> </FORM>'; mail_footer(array()); } else { if ($change_status) {
function menu_foundry($grp) { global $HTML, $Language; $unix_name = strtolower(group_getunixname($grp)); $HTML->menuhtml_top('Foundry: ' . group_getname($grp)); $HTML->menu_entry('/foundry/' . $unix_name . '/', $Language->FOUNDRY_SUMMARY); $HTML->menu_entry('/forum/?group_id=' . $grp, $Language->DISCUSSION_FORUMS); $HTML->menu_entry('/mail/?group_id=' . $grp, $Language->MAILING_LISTS); $HTML->menu_entry('/news/?group_id=' . $grp, $Language->NEWS); print '<P>'; $HTML->menu_entry('/foundry/' . $unix_name . '/admin/', $Language->FOUNDRY_ADMIN); $HTML->menuhtml_bottom(); }
<?php // // SourceForge: Breaking Down the Barriers to Open Source Development // Copyright 1999-2000 (c) The SourceForge Crew // http://sourceforge.net // // $Id: index.php,v 1.2 2003/11/13 11:29:26 helix Exp $ require 'pre.php'; /* Project Summary Page Written by dtype Oct. 1999 */ if (!$group_id && $form_grp) { $group_id = $form_grp; } if (!$group_id) { exit_error("Missing Group Argument", "A group must be specified for this page."); } header("Location: /projects/" . group_getunixname($group_id) . "/");