[Fusionforge-commits] r10557 - in trunk/src: common/include plugins/contribtracker/www www www/account www/developer www/docman www/export www/forum www/forum/include www/mail www/project/admin www/register

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Mon Sep 20 17:33:48 CEST 2010


Author: nerville
Date: 2010-09-20 17:33:47 +0200 (Mon, 20 Sep 2010)
New Revision: 10557

Modified:
   trunk/src/common/include/account.php
   trunk/src/plugins/contribtracker/www/global_admin.php
   trunk/src/www/account/change_pw.php
   trunk/src/www/dbimage.php
   trunk/src/www/developer/monitor.php
   trunk/src/www/docman/index.php
   trunk/src/www/download.php
   trunk/src/www/export/forum.php
   trunk/src/www/export/index.php
   trunk/src/www/export/projhtml.php
   trunk/src/www/export/projnews.php
   trunk/src/www/export/projtitl.php
   trunk/src/www/export/rss20_activity.php
   trunk/src/www/export/rss20_docman.php
   trunk/src/www/export/rss20_forum.php
   trunk/src/www/export/rss20_newreleases.php
   trunk/src/www/export/rss20_news.php
   trunk/src/www/export/rss20_tasks.php
   trunk/src/www/export/rss20_tracker.php
   trunk/src/www/export/rss20_version.php
   trunk/src/www/forum/forum.php
   trunk/src/www/forum/include/ForumHTML.class.php
   trunk/src/www/forum/index.php
   trunk/src/www/forum/message.php
   trunk/src/www/forum/monitor.php
   trunk/src/www/forum/myforums.php
   trunk/src/www/forum/new.php
   trunk/src/www/forum/save.php
   trunk/src/www/mail/index.php
   trunk/src/www/project/admin/massadd.php
   trunk/src/www/project/admin/massfinish.php
   trunk/src/www/register/index.php
   trunk/src/www/register/projectinfo.php
   trunk/src/www/users
Log:
exit functions migration

Modified: trunk/src/common/include/account.php
===================================================================
--- trunk/src/common/include/account.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/common/include/account.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -217,7 +217,7 @@
 		if ($current == $this_shell) {
 			echo "<option selected value=$this_shell>$this_shell</option>\n";
 		} else {
-			if (! ereg("^#",$this_shell)){
+			if (! preg_match("/^#/",$this_shell)){
 				echo "<option value=$this_shell>$this_shell</option>\n";
 			}
 		}

Modified: trunk/src/plugins/contribtracker/www/global_admin.php
===================================================================
--- trunk/src/plugins/contribtracker/www/global_admin.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/plugins/contribtracker/www/global_admin.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -33,7 +33,6 @@
 
 session_require_global_perm ('forge_admin') ;
 
-site_admin_header (array ('title' => _('Contribution tracker administration'))) ;
 
 $action = getStringFromRequest ('action') ;
 $action = util_ensure_value_in_set ($action, array ('display',
@@ -230,6 +229,7 @@
 }
 
 // Display appropriate forms
+site_admin_header (array ('title' => _('Contribution tracker administration'))) ;
 
 switch ($action) {
 case 'display':

Modified: trunk/src/www/account/change_pw.php
===================================================================
--- trunk/src/www/account/change_pw.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/account/change_pw.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -3,21 +3,22 @@
  * Change user's password
  *
  * Copyright 1999-2001 (c) VA Linux Systems
+ * Copyright 2010 (c) Franck Villaume - Capgemini
  *
- * 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
  */
 
@@ -29,14 +30,14 @@
 
 $u =& user_get_object(user_getid());
 if (!$u || !is_object($u)) {
-	exit_error('Error','Could Not Get User');
+	exit_error(_('Could Not Get User'),'my');
 } elseif ($u->isError()) {
-	exit_error('Error',$u->getErrorMessage());
+	exit_error($u->getErrorMessage(),'my');
 }
 
 if (getStringFromRequest('submit')) {
 	if (!form_key_is_valid(getStringFromRequest('form_key'))) {
-		exit_form_double_submit();
+		exit_form_double_submit('my');
 	}
 
 	$old_passwd = getStringFromRequest('old_passwd');
@@ -45,34 +46,22 @@
 
 	if ($u->getMD5Passwd() != md5($old_passwd)) {
 		form_release_key(getStringFromRequest('form_key'));
-		exit_error(
-			_('Error'),
-			_('Old password is incorrect')
-		);
+		exit_error(_('Old password is incorrect'),'my');
 	}
 	
 	if (strlen($passwd)<6) {
 		form_release_key(getStringFromRequest('form_key'));
-		exit_error(
-			_('Error'),
-			_('You must supply valid password (at least 6 chars)')
-		);
+		exit_error(_('You must supply valid password (at least 6 chars)'),'my');
 	}
 	
 	if ($passwd != $passwd2) {
 		form_release_key(getStringFromRequest('form_key'));
-		exit_error(
-			_('Error'),
-			_('New passwords do not match.')
-		);
+		exit_error(_('New passwords do not match.'),'my');
 	}
 
 	if (!$u->setPasswd($passwd)) {
 		form_release_key(getStringFromRequest('form_key'));
-		exit_error(
-			_('Error'),
-			'Could not change password: '.$u->getErrorMessage()
-		);
+		exit_error(_('Could not change password: ').$u->getErrorMessage(),'my');
 	}
 	//plugin webcal change user password
 	else {
@@ -82,7 +71,7 @@
 	site_user_header(array('title'=>_('Successfully Changed Password')));
 	?>
 
-	<?php printf(_('<h2>%1$s Password Change Confirmation</h2><p>Congratulations. You have changed your password.</p>'), forge_get_config ('forge_name')); ?>
+	<?php printf(_('<h2>%1$s Password Change Confirmation</h2><div class="feedback">Congratulations. You have changed your password.</div>'), forge_get_config ('forge_name')); ?>
 
 	<p>
 		 <?php printf(_('You should now <a href="%1$s">Return to User Prefs</a>.'),

Modified: trunk/src/www/dbimage.php
===================================================================
--- trunk/src/www/dbimage.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/dbimage.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -4,20 +4,20 @@
  *
  * Copyright 1999-2001 (c) VA Linux Systems
  *
- * 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
  */
 

Modified: trunk/src/www/developer/monitor.php
===================================================================
--- trunk/src/www/developer/monitor.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/developer/monitor.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -1,23 +1,23 @@
 <?php
 /**
- * GForge Monitor Diary Page
+ * Monitor Diary Page
  *
  * Copyright 1999-2001 (c) VA Linux Systems
  *
- * 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
  */
 
@@ -43,7 +43,7 @@
 			If they are NOT, then insert a row into the db
 		*/
 
-		$HTML->header (array('title'=>_('Monitor a User')));
+		site_user_header(array('title'=>_('Monitor a User')));
 
 		echo '
 			<h1>'._('Monitor a User').'</h1>';

Modified: trunk/src/www/docman/index.php
===================================================================
--- trunk/src/www/docman/index.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/docman/index.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -35,7 +35,7 @@
 
 /* are we using docman ? */
 if (!forge_get_config('use_docman'))
-	exit_disabled();
+	exit_disabled('home');
 
 /* get informations from request or $_POST */
 $group_id = getIntFromRequest('group_id');

Modified: trunk/src/www/download.php
===================================================================
--- trunk/src/www/download.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/download.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -5,6 +5,6 @@
 
 require_once('env.inc.php');
 require_once $gfcommon.'include/pre.php';
-Header("Location: /frs" . getStringFromServer('REQUEST_URI'));
+session_redirect('/frs'. getStringFromServer('REQUEST_URI'));
 
 ?>

Modified: trunk/src/www/export/forum.php
===================================================================
--- trunk/src/www/export/forum.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/export/forum.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -1,12 +1,26 @@
 <?php
 /**
-  *
-  * FusionForge Exports: Export project forums in RSS
-  *
-  * Copyright 1999-2001 (c) VA Linux Systems
-  * Copyright 2010, Roland Mas
-  *
-  */
+ * FusionForge Exports: Export project forums in RSS
+ *
+ * Copyright 1999-2001 (c) VA Linux Systems
+ * Copyright 2010, Roland Mas
+ *
+ * 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
+ */
 
 require_once('../env.inc.php');
 require_once $gfcommon.'include/pre.php';

Modified: trunk/src/www/export/index.php
===================================================================
--- trunk/src/www/export/index.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/export/index.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -1,15 +1,28 @@
 <?php
 /**
-  *
-  * SourceForge Exports
-  *
-  * SourceForge: Breaking Down the Barriers to Open Source Development
-  * Copyright 1999-2001 (c) VA Linux Systems
-  * http://sourceforge.net
-  *
-  */
+ * FusionForge Exports
+ *
+ * Copyright 1999-2001 (c) VA Linux Systems
+ * Copyright 2010, Franck Villaume
+ * 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
+ */
 
-
 require_once('../env.inc.php');
 require_once $gfcommon.'include/pre.php';
 

Modified: trunk/src/www/export/projhtml.php
===================================================================
--- trunk/src/www/export/projhtml.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/export/projhtml.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -1,26 +1,24 @@
 <?php
 /**
- * GForge Exports: Export project summary page as HTML
+ * Exports: Export project summary page as HTML
  *
- * Copyright 2004 (c) GForge LLC
+ * Copyright 2004 (c) Tim Perdue - GForge LLC
+ * http://fusionforge.org
  *
- * @author Tim Perdue tim at gforge.org
- * @date 2004-03-16
+ * This file is part of FusionForge.
  *
- * This file is part of GForge.
- *
- * 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
  */
 
@@ -45,7 +43,7 @@
 if (!$group || !is_object($group)) {
     exit_no_group();
 } elseif ($group->isError()) {
-    exit_error('Error', $group->getErrorMessage());
+    exit_error($group->getErrorMessage(),'home');
 }
 
 //

Modified: trunk/src/www/export/projnews.php
===================================================================
--- trunk/src/www/export/projnews.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/export/projnews.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -1,6 +1,6 @@
 <?php
 /**
- * SourceForge Exports: Export project news as HTML
+ * Exports: Export project news as HTML
  *
  * Parameters:
  *	group_id	-	group_id
@@ -9,25 +9,23 @@
  *				summaries
  *	flat		-	1 to use minimal HTML formatting
  *
- * Copyright 2004 (c) GForge LLC
+ * Copyright 2004 (c) Tim Perdue - GForge LLC
+ * http://fusionforge.org
  *
- * @author Tim Perdue tim at gforge.org
- * @date 2004-03-16
+ * This file is part of FusionForge.
  *
- * This file is part of GForge.
- *
- * 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
  */
 
@@ -53,7 +51,7 @@
 if (!$group || !is_object($group)) {
     exit_no_group();
 } elseif ($group->isError()) {
-    exit_error('Error', $group->getErrorMessage());
+    exit_error($group->getErrorMessage(),'home');
 }
 
 //

Modified: trunk/src/www/export/projtitl.php
===================================================================
--- trunk/src/www/export/projtitl.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/export/projtitl.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -1,6 +1,6 @@
 <?php
 /**
- * GForge Exports: Export project news as HTML
+ * Exports: Export project news as HTML
  *
  * Parameters:
  *	group_id	-	group_id
@@ -9,25 +9,23 @@
  *				summaries
  *	flat		-	1 to use minimal HTML formatting
  *	
- * Copyright 2004 (c) GForge LLC
+ * Copyright 2004 (c) Tim Perdue - GForge LLC
+ * http://fusionforge.org
  *
- * @author Tim Perdue tim at gforge.org
- * @date 2004-03-16
+ * This file is part of FusionForge.
  *
- * This file is part of GForge.
- *
- * 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
  */
 
@@ -50,7 +48,7 @@
 if (!$group || !is_object($group)) {
     exit_no_group();
 } elseif ($group->isError()) {
-    exit_error('Error', $group->getErrorMessage());
+    exit_error($group->getErrorMessage(),'home');
 }
 
 //

Modified: trunk/src/www/export/rss20_activity.php
===================================================================
--- trunk/src/www/export/rss20_activity.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/export/rss20_activity.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -1,27 +1,23 @@
 <?php
-
 /**
- * GForge
  *
- * Author: 2006,  Daniel A. Perez <daniel at gforgegroup.com>
- * http://gforge.org/
+ * Copyright 2006 Daniel A. Perez <daniel at gforgegroup.com>
+ * http://fusionforge.org/
  *
- * @version
+ * This file is part of FusionForge.
  *
- * This file is part of GForge.
- *
- * 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
  */
 
@@ -132,8 +128,7 @@
 } else {
 	// Print error showing no group was selected
 
-	echo "<br /><span class=\"error\">    Error: No group selected</span>";
+	echo "<div class='error'>"._('Error: No group selected')."</div>";
 }
 
-
 ?>

Modified: trunk/src/www/export/rss20_docman.php
===================================================================
--- trunk/src/www/export/rss20_docman.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/export/rss20_docman.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -1,5 +1,25 @@
 <?php
+/**
+ * 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
+ */
 
+
 // export a group's tracker bugs per artifact in RSS 2.0
 // Author: Jutta Horstmann, data in transit <jh at dataintransit.com>
 // Created: 01.10.07

Modified: trunk/src/www/export/rss20_forum.php
===================================================================
--- trunk/src/www/export/rss20_forum.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/export/rss20_forum.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -1,5 +1,25 @@
 <?php
+/**
+ * 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
+ */
 
+
 // export forum posts in RSS 2.0
 // Author: Jutta Horstmann, data in transit <jh at dataintransit.com>
 // Created: 14.01.08
@@ -356,4 +376,4 @@
        
     return $keep_key_assoc ? $array : array_values($array);
 }
-?>
\ No newline at end of file
+?>

Modified: trunk/src/www/export/rss20_newreleases.php
===================================================================
--- trunk/src/www/export/rss20_newreleases.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/export/rss20_newreleases.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -1,4 +1,24 @@
 <?php
+/**
+ * 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
+ */
+
 // export projects release news in RSS 2.0
 // Author: Scott Grayban <sgrayban at borgnet.us>
 //

Modified: trunk/src/www/export/rss20_news.php
===================================================================
--- trunk/src/www/export/rss20_news.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/export/rss20_news.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -1,4 +1,24 @@
 <?php
+/**
+ * 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
+ */
+
 // export projects release news in RSS 2.0
 // Author: Scott Grayban <sgrayban at borgnet.us>
 //

Modified: trunk/src/www/export/rss20_tasks.php
===================================================================
--- trunk/src/www/export/rss20_tasks.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/export/rss20_tasks.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -1,5 +1,25 @@
 <?php
+/**
+ * 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
+ */
 
+
 require_once '../env.inc.php';
 require_once $gfcommon.'include/pre.php';
 require_once $gfwww.'export/rss_utils.inc';

Modified: trunk/src/www/export/rss20_tracker.php
===================================================================
--- trunk/src/www/export/rss20_tracker.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/export/rss20_tracker.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -1,5 +1,25 @@
 <?php
+/**
+ * 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
+ */
 
+
 // export a group's tracker bugs per artifact in RSS 2.0
 // Author: Jutta Horstmann, data in transit <jh at dataintransit.com>
 // Created: 01.10.07

Modified: trunk/src/www/export/rss20_version.php
===================================================================
--- trunk/src/www/export/rss20_version.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/export/rss20_version.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -1,5 +1,25 @@
 <?php
+/**
+ * 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
+ */
 
+
 // Export software version in RSS 2.0
 // Author: Christian Bayle <bayle at debian.org>
 

Modified: trunk/src/www/forum/forum.php
===================================================================
--- trunk/src/www/forum/forum.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/forum/forum.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -1,22 +1,28 @@
 <?php
 /**
- * GForge Forums Facility
+ * Forums Facility
  *
- * Copyright 2002 GForge, LLC
- * http://gforge.org/
+ * Copyright 1999-2001, Tim Perdue - Sourceforge
+ * Copyright 2002, Tim Perdue - GForge, LLC
+ * Copyright 2010 (c) Franck Villaume - Capgemini
+ * 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 Licence, 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.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-
-/*
-	Message Forums
-	By Tim Perdue, Sourceforge, 11/99
-
-	Massive rewrite by Tim Perdue 7/2000 (nested/views/save)
-
-	Complete OO rewrite by Tim Perdue 12/2002
-*/
-
 require_once('../env.inc.php');
 require_once $gfcommon.'include/pre.php';
 require_once $gfwww.'forum/include/ForumHTML.class.php';
@@ -45,7 +51,7 @@
 		WHERE group_forum_id=$1',
 			array($forum_id));
 	if (!$result || db_numrows($result) < 1) {
-		exit_error(_('Error'),_('Error forum not found ').' '.db_error());
+		exit_error(_('Error forum not found: ').db_error(),'forums');
 	}
 	$group_id=db_result($result,0,'group_id');
 
@@ -59,9 +65,9 @@
 
 	$f=new Forum($g,$forum_id);
 	if (!$f || !is_object($f)) {
-		exit_error(_('Error'),_('Error getting new Forum'));
+		exit_error(_('Error getting new Forum'),'forums');
 	} elseif ($f->isError()) {
-		exit_error(_('Error'),$f->getErrorMessage());
+		exit_error($f->getErrorMessage(),'forums');
 	}
 
 	/*
@@ -69,7 +75,7 @@
 	*/
 	if (getStringFromRequest('post_message')) {
 		if (!form_key_is_valid(getStringFromRequest('form_key'))) {
-			exit_form_double_submit();
+			exit_form_double_submit('forums');
 		}
 		$subject = getStringFromRequest('subject');
 		$body = getStringFromRequest('body');
@@ -78,10 +84,10 @@
 		$fm=new ForumMessage($f);
 		if (!$fm || !is_object($fm)) {
 			form_release_key(getStringFromRequest("form_key"));
-			exit_error(_('Error'), _('Error getting new ForumMessage'));
+			exit_error(_('Error getting new ForumMessage'),'forums');
 		} elseif ($fm->isError()) {
 			form_release_key(getStringFromRequest("form_key"));
-			exit_error(_('Error'),_('Error getting new ForumMessage: '.$fm->getErrorMessage()));
+			exit_error(_('Error getting new ForumMessage: '.$fm->getErrorMessage()),'forums');
 		}
 
 		$sanitizer = new TextSanitizer();
@@ -96,7 +102,7 @@
 
 		if (!$fm->create($subject, $body, $thread_id, $is_followup_to,$has_attach) || $fm->isError()) {
 			form_release_key(getStringFromRequest("form_key"));
-			exit_error(_('Error'),_('Error creating ForumMessage: ').$fm->getErrorMessage());
+			exit_error(_('Error creating ForumMessage: ').$fm->getErrorMessage(),'forums');
 		} else {
 			if ($fm->isPending() ) {
 				$feedback=_('Message Queued for moderation -> Please wait until the admin approves/rejects it');
@@ -121,10 +127,10 @@
 	$fmf = new ForumMessageFactory($f);
 	if (!$fmf || !is_object($fmf)) {
 		form_release_key(getStringFromRequest("form_key"));
-		exit_error(_('Error'),_('Error getting new ForumMessageFactory'));
+		exit_error(_('Error getting new ForumMessageFactory'),'forums');
 	} elseif ($fmf->isError()) {
 		form_release_key(getStringFromRequest("form_key"));
-		exit_error(_('Error'),$fmf->getErrorMessage());
+		exit_error($fmf->getErrorMessage(),'forums');
 	}
 
 //echo "<br /> style: $style|max_rows: $max_rows|offset: $offset+";
@@ -138,9 +144,9 @@
 
 	$fh = new ForumHTML($f);
 	if (!$fh || !is_object($fh)) {
-		exit_error(_('Error'),_('Error getting new ForumHTML'));
+		exit_error(_('Error getting new ForumHTML'),'forums');
 	} elseif ($fh->isError()) {
-		exit_error(_('Error'),$fh->getErrorMessage());
+		exit_error($fh->getErrorMessage(),'forums');
 	}
 
 	forum_header(array('title'=>_('Forum: ') . $f->getName(),'forum_id'=>$forum_id));
@@ -197,7 +203,9 @@
 		$msg_arr =& $fmf->nestArray($fmf->getNested());
 
 		if ($fmf->isError()) {
-			echo $fmf->getErrorMessage();
+			echo '<div class="error">'.$fmf->getErrorMessage().'</div>';
+	        forum_footer(array());
+            exit;
 		}
 
 		$rows=count($msg_arr["0"]);
@@ -229,7 +237,9 @@
 
 		$msg_arr =& $fmf->nestArray($fmf->getThreaded());
 		if ($fmf->isError()) {
-			echo $fmf->getErrorMessage();
+			echo '<div class="error">'.$fmf->getErrorMessage().'</div>';
+	        forum_footer(array());
+            exit;
 		}
 
 		$title_arr=array();
@@ -245,6 +255,7 @@
 			$rows=$max_rows;
 		}
 		$i=0;
+        $total_rows = 0;
 		while (($i < $rows) && ($total_rows < $max_rows)) {
 			$msg =& $msg_arr["0"][$i];
 			$total_rows++;
@@ -283,7 +294,9 @@
 
 		$msg_arr =& $fmf->getFlat($thread_id);
 		if ($fmf->isError()) {
-			echo $fmf->getErrorMessage();
+			echo '<div class="error">'.$fmf->getErrorMessage().'</div>';
+	        forum_footer(array());
+            exit;
 		}
 		$avail_rows=$fmf->fetched_rows;
 
@@ -396,7 +409,7 @@
 
 } else {
 
-	exit_error(_('Error'),_('No forum chosen'));
+	exit_error(_('No forum chosen'),'forums');
 
 }
 

Modified: trunk/src/www/forum/include/ForumHTML.class.php
===================================================================
--- trunk/src/www/forum/include/ForumHTML.class.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/forum/include/ForumHTML.class.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -1,22 +1,28 @@
 <?php
 /**
- * GForge Forums Facility
+ * Forums Facility
  *
- * Copyright 2002 GForge, LLC
- * http://gforge.org/
+ * Copyright 1999-2001, Tim Perdue - Sourceforge
+ * Copyright 2002, Tim Perdue - GForge, LLC
+ * Copyright 2010 (c) Franck Villaume - Capgemini
+ * 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 Licence, 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.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-
-/*
- Message Forums
- By Tim Perdue, Sourceforge, 11/99
-
- Massive rewrite by Tim Perdue 7/2000 (nested/views/save)
-
- Complete OO rewrite by Tim Perdue 12/2002
- */
-
 require_once $gfcommon.'include/pre.php';
 require_once $gfwww.'include/note.php';
 require_once $gfwww.'include/trove.php';
@@ -548,7 +554,7 @@
 	if (forge_check_perm ('forum', $this->Forum->getID(), 'post')) {
 		if ($subject) {
 			//if this is a followup, put a RE: before it if needed
-			if (!eregi('RE:',$subject,$test)) {
+			if (!preg_match('/RE:/i',$subject,$test)) {
 				$subject ='RE: '.$subject;
 			}
 		}

Modified: trunk/src/www/forum/index.php
===================================================================
--- trunk/src/www/forum/index.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/forum/index.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -4,6 +4,7 @@
  *
  * Copyright 1999-2001, Tim Perdue - Sourceforge
  * Copyright 2002, Tim Perdue - GForge, LLC
+ * Copyright 2010 (c) Franck Villaume - Capgemini
  *
  * This file is part of FusionForge. FusionForge is free software;
  * you can redistribute it and/or modify it under the terms of the
@@ -36,28 +37,27 @@
 
 	$ff=new ForumFactory($g);
 	if (!$ff || !is_object($ff) || $ff->isError()) {
-		exit_error(_('Error'),$ff->getErrorMessage());
+		exit_error($ff->getErrorMessage(),'forums');
 	}
 
 	$farr =& $ff->getForums();
 
 	if ( $farr !== false && count($farr) == 1 ) {
-  		Header("Location: ".util_make_url ("/forum/forum.php?forum_id=".$farr[0]->getID()));
-		exit();
+        session_redirect('/forum/forum.php?forum_id='.$farr[0]->getID());
 	}
 
 	forum_header(array('title'=>sprintf(_('Forums for %1$s'), $g->getPublicName()) ));
 
-	if ($ff->isError() || count($farr) < 1) {
+	if ($ff->isError()) {
+        echo '<div class="error">'. $ff->getErrorMessage().'</div>';
+		forum_footer(array());
+		exit;
+    } else if ( count($farr) < 1) {
 		echo '<div class="warning_msg">'.sprintf(_('No Forums Found for %1$s'), $g->getPublicName()) .'</div>';
-		if($ff->isError()) {
-			echo $ff->getErrorMessage();
-		}
 		forum_footer(array());
 		exit;
 	}
 
-
 //	echo _('<p>Choose a forum and you can browse, search, and post messages.<p>');
 
 	echo $HTML->subMenu(array(_("My Monitored Forums")),array("/forum/myforums.php?group_id=$group_id"));

Modified: trunk/src/www/forum/message.php
===================================================================
--- trunk/src/www/forum/message.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/forum/message.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -1,22 +1,28 @@
 <?php
 /**
- * GForge Forums Facility
+ * Forums Facility
  *
- * Copyright 2002 GForge, LLC
- * http://gforge.org/
+ * Copyright 1999-2001, Tim Perdue - Sourceforge
+ * Copyright 2002, Tim Perdue - GForge, LLC
+ * Copyright 2010 (c) Franck Villaume - Capgemini
+ * 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 Licence, 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.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-
-/*
-	Message Forums
-	By Tim Perdue, Sourceforge, 11/99
-
-	Massive rewrite by Tim Perdue 7/2000 (nested/views/save)
-
-	Complete OO rewrite by Tim Perdue 12/2002
-*/
-
 require_once('../env.inc.php');
 require_once $gfcommon.'include/pre.php';
 require_once $gfwww.'forum/include/ForumHTML.class.php';
@@ -46,8 +52,7 @@
 		/*
 			Message not found
 		*/
-		exit_error(_('Message Not Found'),
-				_('This message does not (any longer) exist'));
+		exit_error(_('This message does not (any longer) exist'),'forums');
 	}
 
 	$group_id=db_result($result,0,'group_id');
@@ -63,26 +68,26 @@
 
 	$f=new Forum($g,$forum_id);
 	if (!$f || !is_object($f)) {
-		exit_error(_('Error'),_('Error getting new Forum'));
+		exit_error(_('Error getting new Forum'),'forums');
 	} elseif ($f->isError()) {
 		if ($f->isPermissionDeniedError()) {
 			exit_permission_denied();
 		}
-		exit_error(_('Error'),$f->getErrorMessage());
+		exit_error($f->getErrorMessage(),'forums');
 	}
 
 	$fm=new ForumMessage($f,$msg_id);
 	if (!$fm || !is_object($fm)) {
-		exit_error(_('Error'),_('Error getting new ForumMessage'));
+		exit_error(_('Error getting new ForumMessage'),'forums');
 	} elseif ($fm->isError()) {
-		exit_error(_('Error'),$fm->getErrorMessage());
+		exit_error($fm->getErrorMessage(),'forums');
 	}
 
 	$fmf = new ForumMessageFactory($f);
 	if (!$fmf || !is_object($fmf)) {
-		exit_error(_('Error'),_('Error getting new ForumMessageFactory'));
+		exit_error(_('Error getting new ForumMessageFactory'),'forums');
 	} elseif ($fmf->isError()) {
-		exit_error(_('Error'),$fmf->getErrorMessage());
+		exit_error($fmf->getErrorMessage(),'forums');
 	}
 
 	$fmf->setUp(0,'threaded',200,'');
@@ -92,9 +97,9 @@
 
 	$fh = new ForumHTML($f);
 	if (!$fh || !is_object($fh)) {
-		exit_error(_('Error'),_('Error getting new ForumHTML'));
+		exit_error(_('Error getting new ForumHTML'),'forums');
 	} elseif ($fh->isError()) {
-		exit_error(_('Error'),$fh->getErrorMessage());
+		exit_error($fh->getErrorMessage(),'forums');
 	}
 
 	if ($reply) {
@@ -168,8 +173,7 @@
 	while (($i < $rows) && ($total_rows < $max_rows)) {
 		$msg =& $msg_arr["0"][$i];
 		$total_rows++;
-		
-		
+
 		if ($fm->getID() != $msg->getID()) {
 			$ah_begin='<a href="'.util_make_url ('/forum/message.php?msg_id='.$msg->getID().
 							     '&amp;group_id='.$group_id).'">';
@@ -218,8 +222,7 @@
 
 } else {
 	forum_header(array('title'=>_('You Must Choose a Message First')));
-	echo '<div class="error">'._('You Must Choose a Message First').'</div>';
-
+	echo '<div class="warning">'._('You Must Choose a Message First').'</div>';
 }
 
 forum_footer(array());

Modified: trunk/src/www/forum/monitor.php
===================================================================
--- trunk/src/www/forum/monitor.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/forum/monitor.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -1,21 +1,28 @@
 <?php
 /**
- * GForge Forums Facility
+ * Forums Facility
  *
- * Copyright 2002 GForge, LLC
- * http://gforge.org/
+ * Copyright 1999-2001, Tim Perdue - Sourceforge
+ * Copyright 2002, Tim Perdue - GForge, LLC
+ * Copyright 2010 (c) Franck Villaume - Capgemini
+ * 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 Licence, 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.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-/*
-    Message Forums
-    By Tim Perdue, Sourceforge, 11/99
-
-    Massive rewrite by Tim Perdue 7/2000 (nested/views/save)
-
-    Complete OO rewrite by Tim Perdue 12/2002
-*/
-
 require_once('../env.inc.php');
 require_once $gfcommon.'include/pre.php';
 require_once $gfwww.'forum/include/ForumHTML.class.php';
@@ -35,17 +42,16 @@
 
 		$f=new Forum($g,$forum_id);
 		if (!$f || !is_object($f)) {
-			exit_error('Error','Error Getting Forum');
+			exit_error(_('Error Getting Forum'),'forums');
 		} elseif ($f->isError()) {
-			exit_error('Error',$f->getErrorMessage());
+			exit_error($f->getErrorMessage(),'forums');
 		}
 
 		if (getStringFromRequest('stop')) {
 			$confirm = getStringFromRequest('confirm');
 			$cancel = getStringFromRequest('cancel');
 			if ($cancel) {
-				header ("Location: /forum/forum.php?forum_id=$forum_id&group_id=$group_id");
-				exit;
+                session_redirect('/forum/forum.php?forum_id='.$forum_id.'&group_id='.$group_id);
 			}
 			if (!$confirm) {
 				forum_header(array('title'=>_('Stop Monitoring')));
@@ -57,19 +63,19 @@
 				exit;
 			}
 			if (!$f->stopMonitor()) {
-				exit_error('Error',$f->getErrorMessage());
+				exit_error($f->getErrorMessage(),'forums');
 			} else {
-				header ("Location: ".util_make_url ("/forum/forum.php?forum_id=$forum_id&group_id=$group_id&feedback=".urlencode(_('Forum monitoring deactivated'))));
+				session_redirect('/forum/forum.php?forum_id='.$forum_id.'&group_id='.$group_id.'&feedback='.urlencode(_('Forum monitoring deactivated')));
 			}
 		} elseif(getIntFromRequest('start')) {
 			if (!$f->setMonitor()) {
-				exit_error('Error',$f->getErrorMessage());
+				exit_error($f->getErrorMessage(),'forums');
 			} else {
-				header ("Location: ".util_make_url ("/forum/forum.php?forum_id=$forum_id&group_id=$group_id&feedback=".urlencode(_('Forum monitoring started'))));
+				session_redirect('/forum/forum.php?forum_id='.$forum_id.'&group_id='.$group_id.'&feedback='.urlencode(_('Forum monitoring started')));
 			}
 		}
 	} else {
-		exit_missing_param();
+		exit_missing_param('',array(_('Forum ID'),_('Project ID')),'forums');
 	}
 
 } else {

Modified: trunk/src/www/forum/myforums.php
===================================================================
--- trunk/src/www/forum/myforums.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/forum/myforums.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -6,6 +6,7 @@
  * Portions Copyright 1999-2001 (c) VA Linux Systems
  * The rest Copyright 2002-2004 (c) GForge Team
  * Copyright 2005 (c) - Daniel Perez
+ * Copyright 2010 (c) Franck Villaume - Capgemini
  * http://fusionforge.org/
  *
  * This file is part of FusionForge.
@@ -88,7 +89,7 @@
 	}
 	$f = new Forum($g,$monitored_forums[$i]["forum_id"]);
 	if (!$f || !is_object($f) || $f->isError()) {
-		exit_error(_('Error'));
+		exit_error($f->isError(),'forums');
 	}
 	if (!is_object($f)) {
 		//just skip it - this object should never have been placed here
@@ -99,16 +100,16 @@
 
 		$fh = new ForumHTML($f);
 		if (!$fh || !is_object($fh)) {
-			exit_error(_('Error'), "Error getting new ForumHTML");
+			exit_error(_('Error getting new ForumHTML'),'forums');
 		}	elseif ($fh->isError()) {
-			exit_error(_('Error'),$fh->getErrorMessage());
+			exit_error($fh->getErrorMessage(),'forums');
 		}
 
 		$fmf = new ForumMessageFactory($f);
 		if (!$fmf || !is_object($fmf)) {
-			exit_error(_('Error'), "Error getting new ForumMessageFactory");
+			exit_error(_('Error getting new ForumMessageFactory'),'forums');
 		}	elseif ($fmf->isError()) {
-			exit_error(_('Error'),$fmf->getErrorMessage());
+			exit_error($fmf->getErrorMessage(),'forums');
 		}
 		$fmf->setUp($offset,$style,$max_rows,$set);
 		$style=$fmf->getStyle();
@@ -116,7 +117,7 @@
 		$offset=$fmf->offset;
 		$msg_arr =& $fmf->nestArray($fmf->getNested());
 		if ($fmf->isError()) {
-			echo $fmf->getErrorMessage();
+			exit_error($fmf->getErrorMessage(),'forums');
 		}
 		$rows=count($msg_arr[0]);
 		$avail_rows=$fmf->fetched_rows;

Modified: trunk/src/www/forum/new.php
===================================================================
--- trunk/src/www/forum/new.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/forum/new.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -1,23 +1,27 @@
 <?php
 /**
- * GForge Forums Facility
+ * Forums Facility
  *
- * Copyright 2002 GForge, LLC
- * http://gforge.org/
+ * Copyright 1999-2001, Tim Perdue - Sourceforge
+ * Copyright 2002, Tim Perdue - GForge, LLC
+ * Copyright 2010 (c) Franck Villaume - Capgemini
  *
+ * 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 Licence, 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.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-
-/*
-	Message Forums
-	By Tim Perdue, Sourceforge, 11/99
-
-	Massive rewrite by Tim Perdue 7/2000 (nested/views/save)
-
-	Complete OO rewrite by Tim Perdue 12/2002
-*/
-
-
 require_once('../env.inc.php');
 require_once $gfcommon.'include/pre.php';
 require_once $gfwww.'forum/include/ForumHTML.class.php';
@@ -41,21 +45,21 @@
 
 	$f=new Forum($g,$forum_id);
 	if (!$f || !is_object($f)) {
-		exit_error('Error','Error Getting Forum');
+		exit_error(_('Error Getting Forum'),'forums');
 	} elseif ($f->isError()) {
-		exit_error('Error',$f->getErrorMessage());
+		exit_error($f->getErrorMessage(),'forums');
 	}
 
 	$fh=new ForumHTML($f);
 	if (!$fh || !is_object($fh)) {
-		exit_error('Error','Error Getting ForumHTML');
+		exit_error(_('Error Getting ForumHTML'),'forums');
 	} elseif ($fh->isError()) {
-		exit_error('Error',$fh->getErrorMessage());
+		exit_error($fh->getErrorMessage(),'forums');
 	}
 
 	if (session_loggedin() || $f->allowAnonymous()) {
 		if (!$f->allowAnonymous() && !$f->savePlace()) {
-			exit_error('Error',$f->getErrorMessage());
+			exit_error($f->getErrorMessage(),'forums');
 		} else {
 			forum_header(array('title'=>$f->getName(),'forum_id'=>$forum_id));
 			echo '<div align="center"><h3>'._('Start New Thread').'</h3></div>';
@@ -66,8 +70,7 @@
 		exit_not_logged_in();
 	}
 } else {
-	exit_missing_param();
+	exit_missing_param('',array(_('Forum ID'),_('Project ID')),'forums');
 }
 
-
 ?>

Modified: trunk/src/www/forum/save.php
===================================================================
--- trunk/src/www/forum/save.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/forum/save.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -1,23 +1,27 @@
 <?php
 /**
- * GForge Forums Facility
+ * Forums Facility
  *
- * Copyright 2002 GForge, LLC
- * http://gforge.org/
+ * Copyright 1999-2001, Tim Perdue - Sourceforge
+ * Copyright 2002, Tim Perdue - GForge, LLC
+ * Copyright 2010 (c) Franck Villaume - Capgemini
  *
+ * 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 Licence, 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.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-
-/*
-    Message Forums
-    By Tim Perdue, Sourceforge, 11/99
-
-    Massive rewrite by Tim Perdue 7/2000 (nested/views/save)
-
-    Complete OO rewrite by Tim Perdue 12/2002
-*/
-
-
 require_once('../env.inc.php');
 require_once $gfcommon.'include/pre.php';
 require_once $gfwww.'forum/include/ForumHTML.class.php';
@@ -41,18 +45,18 @@
 
 		$f=new Forum($g,$forum_id);
 		if (!$f || !is_object($f)) {
-			exit_error(_('Error'),'Error Getting Forum');
+			exit_error(_('Error Getting Forum'),'forums');
 		} elseif ($f->isError()) {
-			exit_error(_('Error'),$f->getErrorMessage());
+			exit_error($f->getErrorMessage(),'forums');
 		}
 
 		if (!$f->savePlace()) {
-			exit_error(_('Error'),$f->getErrorMessage());
+			exit_error($f->getErrorMessage(),'forums');
 		} else {
-			header ("Location: ".util_make_url ("/forum/forum.php?forum_id=$forum_id&group_id=$group_id&feedback=".urlencode(_('Forum Position Saved. New messages will be highlighted when you return'))));
+            session_redirect('/forum/forum.php?forum_id='.$forum_id.'&group_id='.$group_id.'&feedback='.urlencode(_('Forum Position Saved. New messages will be highlighted when you return')));
 		}
 	} else {
-		exit_missing_param();
+		exit_missing_param('',array(_('Forum ID'),_('Project ID')),'forums');
 	}
 
 } else {

Modified: trunk/src/www/mail/index.php
===================================================================
--- trunk/src/www/mail/index.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/mail/index.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -1,10 +1,27 @@
 <?php
 /**
- * GForge Mailing Lists Facility
+ * Mailing Lists Facility
  *
- * Portions Copyright 1999-2001 (c) VA Linux Systems
- * The rest Copyright 2003-2004 (c) Guillaume Smet - Open Wide
+ * Copyright 1999-2001 (c) VA Linux Systems
+ * Copyright 2003-2004 (c) Guillaume Smet - Open Wide
+ * Copyright 2010 (c) Franck Villaume - Capgemini
+ * 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
  */
 
 require_once('../env.inc.php');
@@ -19,16 +36,16 @@
 if ($group_id) {
 	$Group =& group_get_object($group_id);
 	if (!$Group || !is_object($Group)) {
-		exit_error(_('Error'), 'Could Not Get Group');
+		exit_error(_('Could Not Get Group'),'home');
 	} elseif ($Group->isError()) {
 		exit_no_group();
 	}
 	
 	$mlFactory = new MailingListFactory($Group);
 	if (!$mlFactory || !is_object($mlFactory)) {
-		exit_error(_('Error'), 'Could Not Get MailingListFactory');
+		exit_error(_('Could Not Get MailingListFactory'),'mail');
 	} elseif ($mlFactory->isError()) {
-		exit_error(_('Error'), $mlFactory->getErrorMessage());
+		exit_error($mlFactory->getErrorMessage(),'mail');
 	}
 
 	mail_header(array(
@@ -40,8 +57,7 @@
 	$mlArray =& $mlFactory->getMailingLists();
 
 	if ($mlFactory->isError()) {
-		echo '<h1>'._('Error').' '.sprintf(_('Unable to get the list %s'), $Group->getPublicName()) .'</h1>';
-		echo $mlFactory->getErrorMessage();
+		echo '<div class="error">'.sprintf(_('Unable to get the list %s : %s'), $Group->getPublicName(), $mlFactory->getErrorMessage()) .'</div>';
 		mail_footer(array());
 		exit;
 	}

Modified: trunk/src/www/project/admin/massadd.php
===================================================================
--- trunk/src/www/project/admin/massadd.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/project/admin/massadd.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -2,25 +2,24 @@
 /**
  * Role Editing Page
  *
- * Copyright 2004 (c) GForge LLC
+ * Copyright 2004 (c) Tim Perdue - GForge LLC
+ * Copyright 2010 (c) Franck Villaume - Capgemini
+ * http://fusionforge.org
  *
- * @author Tim Perdue tim at gforge.org
- * @date 2004-03-16
+ * This file is part of FusionForge.
  *
- * This file is part of GForge.
- *
- * 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
  */
 
@@ -36,7 +35,7 @@
 if (!$group || !is_object($group)) {
     exit_no_group();
 } elseif ($group->isError()) {
-	exit_error('Error',$group->getErrorMessage());
+	exit_error($group->getErrorMessage(),'admin');
 }
 
 $sw = getStringFromRequest('sw', 'A');
@@ -63,7 +62,7 @@
 $accumulated_ids = array_unique($accumulated_ids);
 
 if (getStringFromRequest('finished')) {
-	header("Location: massfinish.php?group_id=$group_id&accumulated_ids=".implode(',',$accumulated_ids));
+    session_redirect('/project/admin/massfinish.php?group_id='.$group_id.'&accumulated_ids='.implode(',',$accumulated_ids));
 }
 
 project_admin_header(array('title'=>_('Edit Role'),'group'=>$group_id));
@@ -107,7 +106,7 @@
 			<td>'.db_result($res,$i,'user_name').'</td>
 			<td><input type="checkbox" name="newids[]" value="'. $uid .'"';
 		if (in_array($uid, $accumulated_ids)) {
-			echo ' checked="checked"';
+			echo ' checked="checked" ';
 		}
 		echo ' /></td></tr>';
 

Modified: trunk/src/www/project/admin/massfinish.php
===================================================================
--- trunk/src/www/project/admin/massfinish.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/project/admin/massfinish.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -2,25 +2,24 @@
 /**
  * Finish Mass-adding users.
  *
- * Copyright 2004 (c) GForge LLC
+ * Copyright 2004 (c) Tim Perdue - GForge LLC
+ * Copyright 2010 (c) Franck Villaume - Capgemini
+ * http://fusionforge.org
  *
- * @author Tim Perdue tim at gforge.org
- * @date 2004-03-16
+ * This file is part of FusionForge.
  *
- * This file is part of GForge.
- *
- * 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
  */
 
@@ -38,7 +37,7 @@
 if (!$group || !is_object($group)) {
     exit_no_group();
 } elseif ($group->isError()) {
-	exit_error('Error',$group->getErrorMessage());
+	exit_error($group->getErrorMessage(),'admin');
 }
 
 if (getStringFromRequest('finished')) {
@@ -52,11 +51,12 @@
 			$params[1] = $group_id;
 			plugin_hook('change_cal_permission',$params);
 	}
-	Header("Location: index.php?group_id=$group_id&feedback=Successful");
+    $feedback = _('Successful');
+	session_redirect('/project/admin/index.php?group_id='.$group_id.'&feedback='.urlencode($feedback));
 }
 
 if (!$accumulated_ids) {
-	exit_error('Error','No IDs Were Passed');
+	exit_error(_('No IDs Were Passed'),'admin');
 } else {
 	$arr=explode(',',$accumulated_ids);
 	$res=db_query_params("SELECT user_id,user_name,realname FROM users

Modified: trunk/src/www/register/index.php
===================================================================
--- trunk/src/www/register/index.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/register/index.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -1,5 +1,24 @@
 <?php
+/**
+ * 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
+ */
 
-Header("Location: ./projectinfo.php");
+session_redirect('/register/projectinfo.php');
 
 ?>

Modified: trunk/src/www/register/projectinfo.php
===================================================================
--- trunk/src/www/register/projectinfo.php	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/register/projectinfo.php	2010-09-20 15:33:47 UTC (rev 10557)
@@ -17,22 +17,22 @@
  * Portions Copyright 1999-2001 (c) VA Linux Systems
  * Portions Copyright 2002-2004 (c) GForge Team
  * Portions Copyright 2002-2009 (c) Roland Mas
- * http://gforge.org/
+ * 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
  */
 
@@ -53,7 +53,7 @@
 
 if (getStringFromRequest('submit')) {
 	if (!form_key_is_valid(getStringFromRequest('form_key'))) {
-		exit_form_double_submit();
+		exit_form_double_submit('my');
 	}
 
 	$full_name = trim(getStringFromRequest('full_name'));
@@ -63,6 +63,7 @@
 	$scm = getStringFromRequest('scm');
 	$is_public = getIntFromRequest('is_public');
 	$feedback = "";
+	$error_msg = "";
 
 	if (!$scm) {
 		$scm = 'noscm' ;
@@ -103,19 +104,19 @@
 
 		if (!$res) {
 			form_release_key(getStringFromRequest("form_key"));
-			$feedback .= $group->getErrorMessage();
+			$error_msg .= $group->getErrorMessage();
 		} else {
 			$HTML->header(array('title'=>_('Registration complete')));
 
 			if ( $sys_project_reg_autoapprove != true ) {
 				printf(_('<p>Your project has been submitted to the %1$s administrators. Within 72 hours, you will receive notification of their decision and further instructions.<p/>Thank you for choosing %1$s</p>'), forge_get_config ('forge_name'));
 			} else if ($group->isError()) {
-				printf(_('<p>ERROR: %1$s</p>'), $group->getErrorMessage() );
+				printf(_('<div class="error">ERROR: %1$s</div>'), $group->getErrorMessage() );
 			} else {
 				printf(_('Approving Project: %1$s'), $group->getUnixName()).'<br />';
 
 				if (!$group->approve( user_get_object_by_name ( $sys_project_reg_autoapprove_user ) ) ) {
-					printf(_('<p>Approval ERROR: %1$s</p>'), $group->getErrorMessage() );
+					printf(_('<div class="error">Approval ERROR: %1$s</div>'), $group->getErrorMessage() );
 				} else {
 					$hook_params = array () ;
 					$hook_params['group_id'] = $group_id ;

Modified: trunk/src/www/users
===================================================================
--- trunk/src/www/users	2010-09-20 13:03:02 UTC (rev 10556)
+++ trunk/src/www/users	2010-09-20 15:33:47 UTC (rev 10557)
@@ -3,23 +3,24 @@
  * User information page
  *
  * 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
  */
 
@@ -30,7 +31,7 @@
 $expl_pathinfo = explode('/', getStringFromServer('REQUEST_URI'));
 
 if (!$expl_pathinfo[2]) {
-	exit_error(_('Error'),_('No User Name Provided'));
+	exit_error(_('No User Name Provided'),'home');
 }
 
 //get the user object based on the user_name in the URL
@@ -38,7 +39,7 @@
 
 if (!$user || !is_object($user) || $user->isError() || !$user->isActive()) {
 
-	exit_error(_('That user does not exist.'),_('Invalid User'));
+	exit_error(_('That user does not exist.'),'home');
 
 } else {
 




More information about the Fusionforge-commits mailing list