[Fusionforge-commits] r10646 - in trunk/src/www/search/include: engines renderers

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Thu Sep 23 10:44:18 CEST 2010


Author: nerville
Date: 2010-09-23 10:44:18 +0200 (Thu, 23 Sep 2010)
New Revision: 10646

Modified:
   trunk/src/www/search/include/engines/ArtifactSearchEngine.class.php
   trunk/src/www/search/include/engines/DocsGroupSearchEngine.class.php
   trunk/src/www/search/include/engines/ForumSearchEngine.class.php
   trunk/src/www/search/include/engines/ForumsGroupSearchEngine.class.php
   trunk/src/www/search/include/engines/FrsGroupSearchEngine.class.php
   trunk/src/www/search/include/engines/GroupSearchEngine.class.php
   trunk/src/www/search/include/engines/NewsGroupSearchEngine.class.php
   trunk/src/www/search/include/engines/SearchEngine.class.php
   trunk/src/www/search/include/engines/TasksGroupSearchEngine.class.php
   trunk/src/www/search/include/engines/TrackersGroupSearchEngine.class.php
   trunk/src/www/search/include/renderers/DocsHtmlSearchRenderer.class.php
   trunk/src/www/search/include/renderers/ForumHtmlSearchRenderer.class.php
   trunk/src/www/search/include/renderers/ForumsHtmlSearchRenderer.class.php
   trunk/src/www/search/include/renderers/FrsHtmlSearchRenderer.class.php
   trunk/src/www/search/include/renderers/FullProjectHtmlSearchRenderer.class.php
   trunk/src/www/search/include/renderers/HtmlGroupSearchRenderer.class.php
   trunk/src/www/search/include/renderers/HtmlSearchRenderer.class.php
   trunk/src/www/search/include/renderers/NewsHtmlSearchRenderer.class.php
   trunk/src/www/search/include/renderers/PeopleHtmlSearchRenderer.class.php
   trunk/src/www/search/include/renderers/ProjectHtmlSearchRenderer.class.php
   trunk/src/www/search/include/renderers/ProjectRssSearchRenderer.class.php
   trunk/src/www/search/include/renderers/RssSearchRenderer.class.php
   trunk/src/www/search/include/renderers/SearchRenderer.class.php
   trunk/src/www/search/include/renderers/SkillHtmlSearchRenderer.class.php
   trunk/src/www/search/include/renderers/TasksHtmlSearchRenderer.class.php
   trunk/src/www/search/include/renderers/TrackersHtmlSearchRenderer.class.php
Log:
mostly licence

Modified: trunk/src/www/search/include/engines/ArtifactSearchEngine.class.php
===================================================================
--- trunk/src/www/search/include/engines/ArtifactSearchEngine.class.php	2010-09-23 08:12:40 UTC (rev 10645)
+++ trunk/src/www/search/include/engines/ArtifactSearchEngine.class.php	2010-09-23 08:44:18 UTC (rev 10646)
@@ -1,11 +1,25 @@
 <?php
 /**
- * GForge Search Engine
+ * Search Engine
  *
  * Copyright 2004 (c) Guillaume Smet
+ * http://fusionforge.org
  *
- * http://gforge.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 $gfwww.'search/include/engines/GroupSearchEngine.class.php';

Modified: trunk/src/www/search/include/engines/DocsGroupSearchEngine.class.php
===================================================================
(Binary files differ)

Modified: trunk/src/www/search/include/engines/ForumSearchEngine.class.php
===================================================================
--- trunk/src/www/search/include/engines/ForumSearchEngine.class.php	2010-09-23 08:12:40 UTC (rev 10645)
+++ trunk/src/www/search/include/engines/ForumSearchEngine.class.php	2010-09-23 08:44:18 UTC (rev 10646)
@@ -1,11 +1,25 @@
 <?php
 /**
- * GForge Search Engine
+ * Search Engine
  *
- * Copyright 2004 (c) Guillaume Smet
+ * Copyright 2004 (c) Dominik Haas, GForge Team
+ * http://fusionforge.org
  *
- * http://gforge.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 $gfwww.'search/include/engines/GroupSearchEngine.class.php';

Modified: trunk/src/www/search/include/engines/ForumsGroupSearchEngine.class.php
===================================================================
(Binary files differ)

Modified: trunk/src/www/search/include/engines/FrsGroupSearchEngine.class.php
===================================================================
(Binary files differ)

Modified: trunk/src/www/search/include/engines/GroupSearchEngine.class.php
===================================================================
--- trunk/src/www/search/include/engines/GroupSearchEngine.class.php	2010-09-23 08:12:40 UTC (rev 10645)
+++ trunk/src/www/search/include/engines/GroupSearchEngine.class.php	2010-09-23 08:44:18 UTC (rev 10646)
@@ -1,6 +1,6 @@
 <?php
 /**
- * FusionForge document manager
+ * Search Engine 
  *
  * Copyright 2004, Guillaume Smet
  *
@@ -23,7 +23,7 @@
  */
 
 
-require_once $GLOBALS['gfwww'].'search/include/engines/SearchEngine.class.php';
+require_once $gfwww.'search/include/engines/SearchEngine.class.php';
 
 class GroupSearchEngine extends GFSearchEngine {
 	var $Group;

Modified: trunk/src/www/search/include/engines/NewsGroupSearchEngine.class.php
===================================================================
(Binary files differ)

Modified: trunk/src/www/search/include/engines/SearchEngine.class.php
===================================================================
--- trunk/src/www/search/include/engines/SearchEngine.class.php	2010-09-23 08:12:40 UTC (rev 10645)
+++ trunk/src/www/search/include/engines/SearchEngine.class.php	2010-09-23 08:44:18 UTC (rev 10646)
@@ -1,11 +1,25 @@
 <?php
 /**
- * GForge Search Engine
+ * Search Engine
  *
  * Copyright 2004 (c) Guillaume Smet
+ * http://fusionforge.org
  *
- * http://gforge.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
  */
 
 class GFSearchEngine {
@@ -32,7 +46,7 @@
 	}
 	
 	function includeSearchRenderer() {
-		global $gfwww, $gfcommon;
+		global $gfwww;
 		require_once $gfwww.'search/include/renderers/'.$this->rendererClassName.'.class.php';
 	}
 	

Modified: trunk/src/www/search/include/engines/TasksGroupSearchEngine.class.php
===================================================================
(Binary files differ)

Modified: trunk/src/www/search/include/engines/TrackersGroupSearchEngine.class.php
===================================================================
(Binary files differ)

Modified: trunk/src/www/search/include/renderers/DocsHtmlSearchRenderer.class.php
===================================================================
--- trunk/src/www/search/include/renderers/DocsHtmlSearchRenderer.class.php	2010-09-23 08:12:40 UTC (rev 10645)
+++ trunk/src/www/search/include/renderers/DocsHtmlSearchRenderer.class.php	2010-09-23 08:44:18 UTC (rev 10646)
@@ -1,13 +1,27 @@
 <?php
 /**
- * GForge Search Engine
+ * Search Engine
  *
  * Copyright 2004 (c) Dominik Haas, GForge Team
+ * http://fusionforge.org
  *
- * http://gforge.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 $gfwww.'search/include/renderers/HtmlGroupSearchRenderer.class.php';
 require_once $gfcommon.'search/DocsSearchQuery.class.php';
 			  

Modified: trunk/src/www/search/include/renderers/ForumHtmlSearchRenderer.class.php
===================================================================
--- trunk/src/www/search/include/renderers/ForumHtmlSearchRenderer.class.php	2010-09-23 08:12:40 UTC (rev 10645)
+++ trunk/src/www/search/include/renderers/ForumHtmlSearchRenderer.class.php	2010-09-23 08:44:18 UTC (rev 10646)
@@ -1,13 +1,26 @@
 <?php
-
 /**
- * GForge Search Engine
+ * Search Engine
  *
- * Portions Copyright 1999-2001 (c) VA Linux Systems
- * The rest Copyright 2004 (c) Guillaume Smet / Open Wide
+ * Copyright 1999-2001 (c) VA Linux Systems
+ * Copyright 2004 (c) Guillaume Smet / Open Wide
+ * http://fusionforge.org
  *
- * http://gforge.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 $gfwww.'search/include/renderers/HtmlGroupSearchRenderer.class.php';
@@ -88,8 +101,7 @@
 	 * redirectToResult - redirect the user  directly to the result when there is only one matching result
 	 */
 	function redirectToResult() {
-		header('Location: /forum/message.php?msg_id='.$this->getResultId('msg_id'));
-		exit();
+		session_redirect('/forum/message.php?msg_id='.$this->getResultId('msg_id'));
 	}
 }
 

Modified: trunk/src/www/search/include/renderers/ForumsHtmlSearchRenderer.class.php
===================================================================
--- trunk/src/www/search/include/renderers/ForumsHtmlSearchRenderer.class.php	2010-09-23 08:12:40 UTC (rev 10645)
+++ trunk/src/www/search/include/renderers/ForumsHtmlSearchRenderer.class.php	2010-09-23 08:44:18 UTC (rev 10646)
@@ -1,13 +1,27 @@
 <?php
 /**
- * GForge Search Engine
+ * Search Engine
  *
  * Copyright 2004 (c) Dominik Haas, GForge Team
+ * http://fusionforge.org
  *
- * http://gforge.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 $gfwww.'search/include/renderers/HtmlGroupSearchRenderer.class.php';
 require_once $gfcommon.'search/ForumsSearchQuery.class.php';
 	

Modified: trunk/src/www/search/include/renderers/FrsHtmlSearchRenderer.class.php
===================================================================
--- trunk/src/www/search/include/renderers/FrsHtmlSearchRenderer.class.php	2010-09-23 08:12:40 UTC (rev 10645)
+++ trunk/src/www/search/include/renderers/FrsHtmlSearchRenderer.class.php	2010-09-23 08:44:18 UTC (rev 10646)
@@ -1,13 +1,27 @@
 <?php
 /**
- * GForge Search Engine
+ * Search Engine
  *
  * Copyright 2004 (c) Dominik Haas, GForge Team
+ * http://fusionforge.org
  *
- * http://gforge.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 $gfwww.'search/include/renderers/HtmlGroupSearchRenderer.class.php';
 require_once $gfcommon.'search/FrsSearchQuery.class.php';
 			  

Modified: trunk/src/www/search/include/renderers/FullProjectHtmlSearchRenderer.class.php
===================================================================
--- trunk/src/www/search/include/renderers/FullProjectHtmlSearchRenderer.class.php	2010-09-23 08:12:40 UTC (rev 10645)
+++ trunk/src/www/search/include/renderers/FullProjectHtmlSearchRenderer.class.php	2010-09-23 08:44:18 UTC (rev 10646)
@@ -1,12 +1,25 @@
 <?php
-
 /**
- * GForge Search Engine
+ * Search Engine
  *
  * Copyright 2004 (c) Dominik Haas, GForge Team
+ * http://fusionforge.org
  *
- * http://gforge.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 $gfcommon.'include/pre.php';

Modified: trunk/src/www/search/include/renderers/HtmlGroupSearchRenderer.class.php
===================================================================
--- trunk/src/www/search/include/renderers/HtmlGroupSearchRenderer.class.php	2010-09-23 08:12:40 UTC (rev 10645)
+++ trunk/src/www/search/include/renderers/HtmlGroupSearchRenderer.class.php	2010-09-23 08:44:18 UTC (rev 10646)
@@ -1,15 +1,28 @@
 <?php
-
 /**
- * GForge Search Engine
+ * Search Engine
  *
- * Portions Copyright 1999-2001 (c) VA Linux Systems
- * The rest Copyright 2004 (c) Guillaume Smet / Open Wide
+ * Copyright 1999-2001 (c) VA Linux Systems
+ * Copyright 2004 (c) Guillaume Smet / Open Wide
+ * http://fusionforge.org
  *
- * http://gforge.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 $gfwww.'search/include/renderers/HtmlSearchRenderer.class.php';
 
 class HtmlGroupSearchRenderer extends HtmlSearchRenderer {

Modified: trunk/src/www/search/include/renderers/HtmlSearchRenderer.class.php
===================================================================
--- trunk/src/www/search/include/renderers/HtmlSearchRenderer.class.php	2010-09-23 08:12:40 UTC (rev 10645)
+++ trunk/src/www/search/include/renderers/HtmlSearchRenderer.class.php	2010-09-23 08:44:18 UTC (rev 10646)
@@ -1,13 +1,26 @@
 <?php
-
 /**
- * GForge Search Engine
+ * Search Engine
  *
- * Portions Copyright 1999-2001 (c) VA Linux Systems
- * The rest Copyright 2004 (c) Guillaume Smet / Open Wide
+ * Copyright 1999-2001 (c) VA Linux Systems
+ * Copyright 2004 (c) Guillaume Smet / Open Wide
+ * http://fusionforge.org
  *
- * http://gforge.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 $gfwww.'search/include/renderers/SearchRenderer.class.php';

Modified: trunk/src/www/search/include/renderers/NewsHtmlSearchRenderer.class.php
===================================================================
--- trunk/src/www/search/include/renderers/NewsHtmlSearchRenderer.class.php	2010-09-23 08:12:40 UTC (rev 10645)
+++ trunk/src/www/search/include/renderers/NewsHtmlSearchRenderer.class.php	2010-09-23 08:44:18 UTC (rev 10646)
@@ -1,11 +1,25 @@
 <?php
 /**
- * GForge Search Engine
+ * Search Engine
  *
  * Copyright 2004 (c) Dominik Haas, GForge Team
+ * http://fusionforge.org
  *
- * http://gforge.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 $gfwww.'search/include/renderers/HtmlGroupSearchRenderer.class.php';

Modified: trunk/src/www/search/include/renderers/PeopleHtmlSearchRenderer.class.php
===================================================================
--- trunk/src/www/search/include/renderers/PeopleHtmlSearchRenderer.class.php	2010-09-23 08:12:40 UTC (rev 10645)
+++ trunk/src/www/search/include/renderers/PeopleHtmlSearchRenderer.class.php	2010-09-23 08:44:18 UTC (rev 10646)
@@ -1,13 +1,26 @@
 <?php
-
 /**
- * GForge Search Engine
+ * Search Engine
  *
- * Portions Copyright 1999-2001 (c) VA Linux Systems
- * The rest Copyright 2004 (c) Guillaume Smet / Open Wide
+ * Copyright 1999-2001 (c) VA Linux Systems
+ * Copyright 2004 (c) Guillaume Smet / Open Wide
+ * http://fusionforge.org
  *
- * http://gforge.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 $gfwww.'search/include/renderers/HtmlSearchRenderer.class.php';
@@ -66,8 +79,7 @@
 	 * redirectToResult - redirect the user  directly to the result when there is only one matching result
 	 */
 	function redirectToResult() {
-		header('Location: /users/'.$this->getResultId('user_name').'/');
-		exit();
+		session_redirect('/users/'.$this->getResultId('user_name').'/');
 	}
 }
 

Modified: trunk/src/www/search/include/renderers/ProjectHtmlSearchRenderer.class.php
===================================================================
--- trunk/src/www/search/include/renderers/ProjectHtmlSearchRenderer.class.php	2010-09-23 08:12:40 UTC (rev 10645)
+++ trunk/src/www/search/include/renderers/ProjectHtmlSearchRenderer.class.php	2010-09-23 08:44:18 UTC (rev 10646)
@@ -1,13 +1,26 @@
 <?php
-
 /**
- * GForge Search Engine
+ * Search Engine
  *
- * Portions Copyright 1999-2001 (c) VA Linux Systems
- * The rest Copyright 2004 (c) Guillaume Smet / Open Wide
+ * Copyright 1999-2001 (c) VA Linux Systems
+ * Copyright 2004 (c) Guillaume Smet / Open Wide
+ * http://fusionforge.org
  *
- * http://gforge.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 $gfwww.'search/include/renderers/HtmlSearchRenderer.class.php';
@@ -87,7 +100,7 @@
 		}
 		
 		if ($this->getResultId('type') == 2) {
-			header('Location: /foundry/'.$project_name.'/');
+			session_redirect('/foundry/'.$project_name.'/');
 		} else {
 			header('Location: '.util_make_url_g($project_name,$project_id));
 		}

Modified: trunk/src/www/search/include/renderers/ProjectRssSearchRenderer.class.php
===================================================================
--- trunk/src/www/search/include/renderers/ProjectRssSearchRenderer.class.php	2010-09-23 08:12:40 UTC (rev 10645)
+++ trunk/src/www/search/include/renderers/ProjectRssSearchRenderer.class.php	2010-09-23 08:44:18 UTC (rev 10646)
@@ -1,13 +1,26 @@
 <?php
-
 /**
- * GForge Search Engine
+ * Search Engine
  *
  * Portions Copyright 1999-2001 (c) VA Linux Systems
  * The rest Copyright 2004 (c) Guillaume Smet / Open Wide
+ * http://fusionforge.org
  *
- * http://gforge.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 $gfwww.'search/include/renderers/RssSearchRenderer.class.php';

Modified: trunk/src/www/search/include/renderers/RssSearchRenderer.class.php
===================================================================
--- trunk/src/www/search/include/renderers/RssSearchRenderer.class.php	2010-09-23 08:12:40 UTC (rev 10645)
+++ trunk/src/www/search/include/renderers/RssSearchRenderer.class.php	2010-09-23 08:44:18 UTC (rev 10646)
@@ -1,13 +1,26 @@
 <?php
-
 /**
- * GForge Search Engine
+ * Search Engine
  *
- * Portions Copyright 1999-2001 (c) VA Linux Systems
- * The rest Copyright 2004 (c) Guillaume Smet / Open Wide
+ * Copyright 1999-2001 (c) VA Linux Systems
+ * Copyright 2004 (c) Guillaume Smet / Open Wide
+ * http://fusionforge.org
  *
- * http://gforge.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 $gfwww.'search/include/renderers/SearchRenderer.class.php';
@@ -46,7 +59,7 @@
 			echo '<channel></channel>';
 		} else {		
 			$searchQuery->executeQuery();
-			include_once $GLOBALS['gfwww'].'export/rss_utils.inc';
+			include_once $gfwww.'export/rss_utils.inc';
 	
 			rss_dump_project_result_set(
 				$searchQuery->getResult(),

Modified: trunk/src/www/search/include/renderers/SearchRenderer.class.php
===================================================================
--- trunk/src/www/search/include/renderers/SearchRenderer.class.php	2010-09-23 08:12:40 UTC (rev 10645)
+++ trunk/src/www/search/include/renderers/SearchRenderer.class.php	2010-09-23 08:44:18 UTC (rev 10646)
@@ -1,4 +1,25 @@
 <?php
+/**
+ * Search Engine
+ *
+ * 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
+ */
 
 class SearchRenderer extends Error {
 	

Modified: trunk/src/www/search/include/renderers/SkillHtmlSearchRenderer.class.php
===================================================================
--- trunk/src/www/search/include/renderers/SkillHtmlSearchRenderer.class.php	2010-09-23 08:12:40 UTC (rev 10645)
+++ trunk/src/www/search/include/renderers/SkillHtmlSearchRenderer.class.php	2010-09-23 08:44:18 UTC (rev 10646)
@@ -1,13 +1,26 @@
 <?php
-
 /**
- * GForge Search Engine
+ * Search Engine
  *
- * Portions Copyright 1999-2001 (c) VA Linux Systems
- * The rest Copyright 2004 (c) Guillaume Smet / Open Wide
+ * Copyright 1999-2001 (c) VA Linux Systems
+ * Copyright 2004 (c) Guillaume Smet / Open Wide
+ * http://fusionforge.org
  *
- * http://gforge.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 $gfwww.'search/include/renderers/HtmlSearchRenderer.class.php';
@@ -89,9 +102,7 @@
 	 * redirectToResult - redirect the user  directly to the result when there is only one matching result
 	 */
 	function redirectToResult() {
-		/* TODO : use util_make_url_u */
-		header('Location: /users/'.$this->getResultId('user_name').'/');
-		exit();
+		session_redirect('/users/'.$this->getResultId('user_name').'/');
 	}
 }
 

Modified: trunk/src/www/search/include/renderers/TasksHtmlSearchRenderer.class.php
===================================================================
--- trunk/src/www/search/include/renderers/TasksHtmlSearchRenderer.class.php	2010-09-23 08:12:40 UTC (rev 10645)
+++ trunk/src/www/search/include/renderers/TasksHtmlSearchRenderer.class.php	2010-09-23 08:44:18 UTC (rev 10646)
@@ -1,11 +1,25 @@
 <?php
 /**
- * GForge Search Engine
+ * Search Engine
  *
  * Copyright 2004 (c) Dominik Haas, GForge Team
+ * http://fusionforge.org
  *
- * http://gforge.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 $gfwww.'search/include/renderers/HtmlGroupSearchRenderer.class.php';

Modified: trunk/src/www/search/include/renderers/TrackersHtmlSearchRenderer.class.php
===================================================================
--- trunk/src/www/search/include/renderers/TrackersHtmlSearchRenderer.class.php	2010-09-23 08:12:40 UTC (rev 10645)
+++ trunk/src/www/search/include/renderers/TrackersHtmlSearchRenderer.class.php	2010-09-23 08:44:18 UTC (rev 10646)
@@ -1,11 +1,25 @@
 <?php
 /**
- * GForge Search Engine
+ * Search Engine
  *
  * Copyright 2004 (c) Dominik Haas, GForge Team
+ * http://fusionforge.org
  *
- * http://gforge.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 $gfwww.'search/include/renderers/HtmlGroupSearchRenderer.class.php';




More information about the Fusionforge-commits mailing list