* Project Admin: Edit Packages
*
* Copyright 1999-2001 (c) VA Linux Systems
- * The rest Copyright 2002-2004 (c) GForge Team
- * http://gforge.org/
+ * Copyright 2002-2004 (c) GForge Team
+ * http://fusionforge.org/
*
- * This file is part of GForge.
+ * This file is part of FusionForge.
*
- * GForge is free software; you can redistribute it and/or modify
+ * FusionForge is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* 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,
+ * FusionForge 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
+ * along with FusionForge; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
if (!$project || !is_object($project)) {
exit_no_group();
} elseif ($project->isError()) {
- exit_error('Error',$project->getErrorMessage());
+ exit_error($project->getErrorMessage(),'frs');
}
session_require_perm ('frs', $group_id, 'write') ;
$frsp = new FRSPackage($project,$package_id);
if (!$frsp || !is_object($frsp)) {
- exit_error('Error','Could Not Get FRS Package');
+ exit_error(_('Could Not Get FRS Package'),'frs');
} elseif ($frsp->isError()) {
- exit_error('Error',$frsp->getErrorMessage());
+ exit_error($frsp->getErrorMessage(),'frs');
}
/*
* Project Admin: Edit Packages
*
* Copyright 1999-2001 (c) VA Linux Systems
- * The rest Copyright 2002-2004 (c) GForge Team
- * http://gforge.org/
+ * Copyright 2002-2004 (c) GForge Team
+ * http://fusionforge.org/
*
- * This file is part of GForge.
+ * This file is part of FusionForge.
*
- * GForge is free software; you can redistribute it and/or modify
+ * FusionForge is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* 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,
+ * FusionForge 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
+ * along with FusionForge; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
if (!$project || !is_object($project)) {
exit_no_group();
} elseif ($project->isError()) {
- exit_error('Error',$project->getErrorMessage());
+ exit_error($project->getErrorMessage(),'frs');
}
session_require_perm ('frs', $group_id, 'write') ;
$frsp = new FRSPackage($project,$package_id);
if (!$frsp || !is_object($frsp)) {
- exit_error('Error','Could Not Get FRS Package');
+ exit_error(_('Could Not Get FRS Package'),'frs');
} elseif ($frsp->isError()) {
- exit_error('Error',$frsp->getErrorMessage());
+ exit_error($frsp->getErrorMessage(),'frs');
}
$frsr = new FRSRelease($frsp,$release_id);
if (!$frsr || !is_object($frsr)) {
- exit_error('Error','Could Not Get FRS Release');
+ exit_error(_('Could Not Get FRS Release'),'frs');
} elseif ($frsr->isError()) {
- exit_error('Error',$frsr->getErrorMessage());
+ exit_error($frsr->getErrorMessage(),'frs');
}
/*
-
Relatively simple form to delete packages of releases
-
*/
frs_admin_header(array('title'=>_('Release Edit/File Releases'),'group'=>$group_id));
* Project Admin: Edit Releases of Packages
*
* Copyright 1999-2001 (c) VA Linux Systems
- * The rest Copyright 2002-2004 (c) GForge Team
- * http://gforge.org/
+ * Copyright 2002-2004 (c) GForge Team
+ * http://fusionforge.org/
*
- * This file is part of GForge.
+ * This file is part of FusionForge.
*
- * GForge is free software; you can redistribute it and/or modify
+ * FusionForge is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* 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,
+ * FusionForge 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
+ * along with FusionForge; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
* Project Admin: Edit Packages
*
* Copyright 1999-2001 (c) VA Linux Systems
- * The rest Copyright 2002-2004 (c) GForge Team
- * http://gforge.org/
+ * Copyright 2002-2004 (c) GForge Team
+ * Copyright 2010 (c) Franck Villaume - Capgemini
+ * http://fusionforge.org/
*
- * This file is part of GForge.
+ * This file is part of FusionForge.
*
- * GForge is free software; you can redistribute it and/or modify
+ * FusionForge is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* 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,
+ * FusionForge 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
+ * along with FusionForge; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
if (!$project || !is_object($project)) {
exit_no_group();
} elseif ($project->isError()) {
- exit_error('Error',$project->getErrorMessage());
+ exit_error($project->getErrorMessage(),'frs');
}
session_require_perm ('frs', $group_id, 'write') ;
/*
-
Relatively simple form to edit/add packages of releases
-
*/
// only admin can modify packages (vs modifying releases of packages)
$is_public = getStringFromRequest('is_public');
/*
-
make updates to the database
-
*/
if ($func=='add_package' && $package_name) {
//create a new package
$frsp = new FRSPackage($project);
if (!$frsp || !is_object($frsp)) {
- exit_error('Error','Could Not Get FRS Package');
+ exit_error(_('Could Not Get FRS Package'),'frs');
} elseif ($frsp->isError()) {
- exit_error('Error',$frsp->getErrorMessage());
+ exit_error($frsp->getErrorMessage(),'frs');
}
if (!$frsp->create($package_name,$is_public)) {
- exit_error('Error',$frsp->getErrorMessage());
+ exit_error($frsp->getErrorMessage(),'frs');
} else {
$feedback .=_('Added Package');
}
//delete a package
$frsp = new FRSPackage($project,$package_id);
if (!$frsp || !is_object($frsp)) {
- exit_error('Error','Could Not Get FRS Package');
+ exit_error(_('Could Not Get FRS Package'),'frs');
} elseif ($frsp->isError()) {
- exit_error('Error',$frsp->getErrorMessage());
+ exit_error($frsp->getErrorMessage(),'frs');
}
$sure = getIntFromRequest("sure");
$really_sure = getIntFromRequest("really_sure");
if (!$frsp->delete($sure,$really_sure)) {
- exit_error('Error',$frsp->getErrorMessage());
+ exit_error($frsp->getErrorMessage(),'frs');
} else {
$feedback .=_('Deleted');
}
} else if ($func=='update_package' && $package_id && $package_name && $status_id) {
$frsp = new FRSPackage($project,$package_id);
if (!$frsp || !is_object($frsp)) {
- exit_error('Error','Could Not Get FRS Package');
+ exit_error(_('Could Not Get FRS Package'),'frs');
} elseif ($frsp->isError()) {
- exit_error('Error',$frsp->getErrorMessage());
+ exit_error($frsp->getErrorMessage(),'frs');
}
if (!$frsp->update($package_name,$status_id)) {
- exit_error('Error',$frsp->getErrorMessage());
+ exit_error($frsp->getErrorMessage(),'frs');
} else {
$feedback .= _('Updated Package');
}
-
}
-
}
<?php
/*
-
Show a list of existing packages
for this project so they can
be edited
-
*/
if (!$res || $rows < 1) {
- echo '<p><strong>'._('You Have No Packages Defined').'</strong></p>';
+ echo '<div class="warning">'._('You Have No Packages Defined').'</div>';
} else {
$title_arr=array();
$title_arr[]=_('Releases');
}
/*
-
form to create a new package
-
*/
?>
<?php
/**
- * GForge FRS Facility
+ * FRS Facility
*
* Copyright 1999-2001 (c) VA Linux Systems
- * The rest Copyright 2002-2004 (c) GForge Team
- * http://gforge.org/
+ * Copyright 2002-2004 (c) GForge Team
+ * Copyright 2010 (c) FusionForge Team
+ * http://fusionforge.org/
*
- * This file is part of GForge.
+ * This file is part of FusionForge.
*
- * GForge is free software; you can redistribute it and/or modify
+ * FusionForge is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* 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,
+ * FusionForge 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
+ * along with FusionForge; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
$Package = new FRSPackage($Group,$package_id);
if (!$Package || !is_object($Package)) {
- exit_error('Error','Error Getting Package');
+ exit_error(_('Error Getting Package'),'frs');
} else if ($Package->isError()) {
- exit_error('Error', $Package->getErrorMessage());
+ exit_error($Package->getErrorMessage(),'frs');
}
$is_public = $Package->isPublic();
$Release = new FRSRelease($Package,$release_id);
if (!$Release || !is_object($Release) || $Release->isError()) {
- exit_error('Error','Error Getting Release');
+ exit_error(_('Error Getting Release'),'frs');
}
$File = new FRSFile($Release,$file_id);
if (!$File || !is_object($File) || $File->isError()) {
- exit_error('Error','Error Getting File');
+ exit_error(_('Error Getting File'),'frs');
}
$filename = $File->getName();
* FRS HTML Utilities
*
* Copyright 1999-2001 (c) VA Linux Systems
- * The rest Copyright 2002-2004 (c) GForge Team
- * http://gforge.org/
+ * Copyright 2002-2004 (c) GForge Team
+ * http://fusionforge.org/
*
- * This file is part of GForge.
+ * This file is part of FusionForge.
*
- * GForge is free software; you can redistribute it and/or modify
+ * FusionForge is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* 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,
+ * FusionForge 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
+ * along with FusionForge; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/*
-
Standard header to be used on all /project/admin/* pages
-
*/
function frs_admin_header($params) {
Does this site use FRS?
*/
if (!forge_get_config('use_frs')) {
- exit_disabled();
+ exit_disabled('home');
}
$project =& group_get_object($group_id);
/*
-
-
The following functions are for the FRS (File Release System)
-
-
*/
/*
-
pop-up box of supported frs statuses
-
*/
function frs_show_status_popup ($name='status_id', $checked_val="xzxz") {
}
/*
-
pop-up box of supported frs filetypes
-
*/
function frs_show_filetype_popup ($name='type_id', $checked_val="xzxz") {
}
/*
-
pop-up box of supported frs processor options
-
*/
function frs_show_processor_popup ($name='processor_id', $checked_val="xzxz") {
}
/*
-
pop-up box of packages:releases for this group
-
*/
}
/*
-
pop-up box of packages for this group
-
*/
function frs_show_package_popup ($group_id, $name='package_id', $checked_val="xzxz") {
}
$frsf = new FRSFile($release);
if (!$frsf || !is_object($frsf)) {
- exit_error('Error','Could Not Get FRSFile');
+ exit_error(_('Could Not Get FRSFile'),'frs');
} elseif ($frsf->isError()) {
- exit_error('Error',$frsf->getErrorMessage());
+ exit_error($frsf->getErrorMessage(),'frs');
} else {
if (!$frsf->create($fname,$infile,$type_id,$processor_id,$release_date)) {
db_rollback();
- exit_error('Error',$frsf->getErrorMessage());
+ exit_error($frsf->getErrorMessage(),'frs');
}
return true ;
}
}
}
-
// Local Variables:
// mode: php
// c-file-style: "bsd"
<?php
/*
* Copyright (C) 2009 Alain Peyrat, Alcatel-Lucent
+ * http://fusionforge.org
*
* This file is part of FusionForge.
*
$g =& group_get_object($group_id);
if (!$g || $g->isError()) {
- exit_error('Error',$g->getErrorMessage());
+ exit_error($g->getErrorMessage(),'frs');
}
session_require_perm ('frs', $group_id, 'write') ;
$report=new Report();
if ($report->isError()) {
- exit_error($report->getErrorMessage());
+ exit_error($report->getErrorMessage(),'frs');
}
// Fix: Add current month to the reports.
<?php
/**
- * GForge Help Facility
+ * Help Facility
*
* Copyright 1999-2001 (c) VA Linux Systems
- * The rest Copyright 2002-2004 (c) GForge Team
- * http://gforge.org/
+ * Copyright 2002-2004 (c) GForge Team
+ * http://fusionforge.org/
*
- * This file is part of GForge.
+ * This file is part of FusionForge.
*
- * GForge is free software; you can redistribute it and/or modify
+ * FusionForge is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* 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,
+ * FusionForge 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
+ * along with FusionForge; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
<?php
/**
- * GForge Help Facility
+ * Help Facility
*
* Copyright 1999-2001 (c) VA Linux Systems
- * The rest Copyright 2002-2004 (c) GForge Team
- * http://gforge.org/
+ * Copyright 2002-2004 (c) GForge Team
+ * http://fusionforge.org/
*
- * This file is part of GForge.
+ * This file is part of FusionForge.
*
- * GForge is free software; you can redistribute it and/or modify
+ * FusionForge is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* 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,
+ * FusionForge 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
+ * along with FusionForge; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
<?php
/**
- * GForge Help Facility
+ * Help Facility
*
* Copyright 1999-2001 (c) VA Linux Systems
- * The rest Copyright 2002-2004 (c) GForge Team
- * http://gforge.org/
+ * Copyright 2002-2004 (c) GForge Team
+ * http://fusionforge.org/
*
- * This file is part of GForge.
+ * This file is part of FusionForge.
*
- * GForge is free software; you can redistribute it and/or modify
+ * FusionForge is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* 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,
+ * FusionForge 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
+ * along with FusionForge; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/**
* Bookmarks functions library.
*
- * SourceForge: Breaking Down the Barriers to Open Source Development
* Copyright 1999-2001 (c) VA Linux Systems
- * http://sourceforge.net
+ * http://fusionforge.org
*
+ * This file is part of FusionForge.
+ *
+ * FusionForge is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * FusionForge 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 FusionForge; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/**
<?php
-//
-// SourceForge: Breaking Down the Barriers to Open Source Development
-// Copyright 1999-2000 (c) The SourceForge Crew
-// http://sourceforge.net
+/**
+ * Copyright 1999-2001 (c) VA Linux Systems
+ * http://fusionforge.org
+ *
+ * This file is part of FusionForge.
+ *
+ * FusionForge is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * FusionForge 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 FusionForge; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
unset ($BROWSER_AGENT);
unset ($BROWSER_VER);
/**
* Canned Responses functions library.
*
- * SourceForge: Breaking Down the Barriers to Open Source Development
* Copyright 1999-2001 (c) VA Linux Systems
- * http://sourceforge.net
+ * http://fusionforge.org
*
+ * This file is part of FusionForge.
+ *
+ * FusionForge is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * FusionForge 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 FusionForge; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/**
*/
function add_canned_response($title, $text)
{
- global $feedback;
+ global $error_msg;
if( !db_query_params ('INSERT INTO canned_responses (response_title, response_text) VALUES($1,$2)',
array($title,
$text)) ) {
- $feedback .= db_error();
+ $error_msg .= db_error();
}
}