[Fusionforge-commits] r10587 - trunk/src/www/include

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Tue Sep 21 12:57:49 CEST 2010


Author: nerville
Date: 2010-09-21 12:57:48 +0200 (Tue, 21 Sep 2010)
New Revision: 10587

Modified:
   trunk/src/www/include/Layout.class.php
   trunk/src/www/include/features_boxes.php
   trunk/src/www/include/graph_lib.php
   trunk/src/www/include/help.php
   trunk/src/www/include/html.php
   trunk/src/www/include/logger.php
   trunk/src/www/include/note.php
   trunk/src/www/include/plugins_utils.php
   trunk/src/www/include/project_home.php
   trunk/src/www/include/project_summary.php
   trunk/src/www/include/stats_function.php
   trunk/src/www/include/tool_reports.php
   trunk/src/www/include/unicode.php
   trunk/src/www/include/user_home.php
   trunk/src/www/include/vote_function.php
Log:
exit functions migration

Modified: trunk/src/www/include/Layout.class.php
===================================================================
--- trunk/src/www/include/Layout.class.php	2010-09-21 10:50:40 UTC (rev 10586)
+++ trunk/src/www/include/Layout.class.php	2010-09-21 10:57:48 UTC (rev 10587)
@@ -2,6 +2,28 @@
 /**
  * Base layout class.
  *
+ * Copyright 1999-2001 (c) VA Linux Systems
+ * http://fusionforge.org
+ *
+ * This file is part of FusionForge.
+ *
+ * FusionForge is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with FusionForge; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+/**
+ *
  * Extends the basic Error class to add HTML functions
  * for displaying all site dependent HTML, while allowing
  * extendibility/overriding by themes via the Theme class.
@@ -9,8 +31,6 @@
  * Make sure browser.php is included _before_ you create an instance
  * of this object.
  *
- * Geoffrey Herteg, August 29, 2000
- *
  */
 
 require_once $gfcommon.'include/constants.php';

Modified: trunk/src/www/include/features_boxes.php
===================================================================
--- trunk/src/www/include/features_boxes.php	2010-09-21 10:50:40 UTC (rev 10586)
+++ trunk/src/www/include/features_boxes.php	2010-09-21 10:57:48 UTC (rev 10587)
@@ -1,10 +1,27 @@
 <?php
+/**
+ *
+ * Copyright 1999-2001 (c) VA Linux Systems
+ * http://fusionforge.org
+ *
+ * This file is part of FusionForge.
+ *
+ * FusionForge is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with FusionForge; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
 
-//
-// SourceForge: Breaking Down the Barriers to Open Source Development
-// Copyright 1999-2001 (c) VA Linux Systems
-// http://sourceforge.net
-//
+
 // Attempt to set up the include path, to fix problems with relative includes
 
 require_once $gfcommon.'include/FusionForge.class.php';

Modified: trunk/src/www/include/graph_lib.php
===================================================================
--- trunk/src/www/include/graph_lib.php	2010-09-21 10:50:40 UTC (rev 10586)
+++ trunk/src/www/include/graph_lib.php	2010-09-21 10:57:48 UTC (rev 10587)
@@ -2,10 +2,24 @@
 /**
  * Graphing class
  *
- * SourceForge: Breaking Down the Barriers to Open Source Development
  * Copyright 1999-2001 (c) VA Linux Systems
- * http://sourceforge.net
+ * http://fusionforge.org
  *
+ * This file is part of FusionForge.
+ *
+ * FusionForge is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with FusionForge; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 class Graph {

Modified: trunk/src/www/include/help.php
===================================================================
--- trunk/src/www/include/help.php	2010-09-21 10:50:40 UTC (rev 10586)
+++ trunk/src/www/include/help.php	2010-09-21 10:57:48 UTC (rev 10587)
@@ -2,10 +2,24 @@
 /**
  * Misc help page functions
  *
- * SourceForge: Breaking Down the Barriers to Open Source Development
  * Copyright 1999-2001 (c) VA Linux Systems
- * http://sourceforge.net
+ * http://fusionforge.org
  *
+ * This file is part of FusionForge.
+ *
+ * FusionForge is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with FusionForge; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 /**

Modified: trunk/src/www/include/html.php
===================================================================
--- trunk/src/www/include/html.php	2010-09-21 10:50:40 UTC (rev 10586)
+++ trunk/src/www/include/html.php	2010-09-21 10:57:48 UTC (rev 10587)
@@ -1,6 +1,6 @@
 <?php
 /**
- * FusionForge Misc HTML functions
+ * Misc HTML functions
  *
  * Copyright 1999-2001 (c) VA Linux Systems
  * Copyright 2010 (c) FusionForge Team

Modified: trunk/src/www/include/logger.php
===================================================================
--- trunk/src/www/include/logger.php	2010-09-21 10:50:40 UTC (rev 10586)
+++ trunk/src/www/include/logger.php	2010-09-21 10:57:48 UTC (rev 10587)
@@ -1,11 +1,23 @@
 <?php
 /**
- * logger.php
- *
- * SourceForge: Breaking Down the Barriers to Open Source Development
  * Copyright 1999-2001 (c) VA Linux Systems
- * http://sourceforge.net
+ * http://fusionforge.org
  *
+ * This file is part of FusionForge.
+ *
+ * FusionForge is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with FusionForge; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 /*

Modified: trunk/src/www/include/note.php
===================================================================
--- trunk/src/www/include/note.php	2010-09-21 10:50:40 UTC (rev 10586)
+++ trunk/src/www/include/note.php	2010-09-21 10:57:48 UTC (rev 10587)
@@ -1,19 +1,20 @@
 <?php
-
 /**
- * GForge Notepad Facility
+ * Notepad Facility
  *
  * Copyright 2003 FUJITSU PRIME SOFTWARE TECHNOLOGIES LIMITED
+ * By Hidenari Miwa, FUJITSU PRIME SOFTWARE TECHNOLOGIES LIMITED, 09/2003
  * http://www.pst.fujitsu.com/
+ * 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.
@@ -22,10 +23,7 @@
  * along with GForge; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
-/**
- * GForge Notepad Window
- * By Hidenari Miwa, FUJITSU PRIME SOFTWARE TECHNOLOGIES LIMITED, 09/2003
- */
+
 require_once $gfwww.'include/html.php';
 
 /**

Modified: trunk/src/www/include/plugins_utils.php
===================================================================
--- trunk/src/www/include/plugins_utils.php	2010-09-21 10:50:40 UTC (rev 10586)
+++ trunk/src/www/include/plugins_utils.php	2010-09-21 10:57:48 UTC (rev 10587)
@@ -1,18 +1,31 @@
 <?php
 /**
  * Copyright 2010 (c) Mélanie Le Bail
+ * 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
  */
 
-
-
- 
 $GLOBALS['mailman_bin_dir'] =  '/usr/lib/mailman/bin';
 $GLOBALS['mailman_lib_dir'] = '/var/lib/mailman';
 $GLOBALS['forumml_arch'] = '/var/lib/mailman/archives';
 $GLOBALS['forumml_tmp'] = '/var/spool/forumml';
 $GLOBALS['forumml_dir'] = '/var/lib/gforge/forumml';
 $GLOBALS['sys_lf'] = "\n"; 
-global $html;
 
 function isLogged(){
         

Modified: trunk/src/www/include/project_home.php
===================================================================
--- trunk/src/www/include/project_home.php	2010-09-21 10:50:40 UTC (rev 10586)
+++ trunk/src/www/include/project_home.php	2010-09-21 10:57:48 UTC (rev 10587)
@@ -1,5 +1,4 @@
 <?php 
-
 /**
  * FusionForge Project Home
  *

Modified: trunk/src/www/include/project_summary.php
===================================================================
--- trunk/src/www/include/project_summary.php	2010-09-21 10:50:40 UTC (rev 10586)
+++ trunk/src/www/include/project_summary.php	2010-09-21 10:57:48 UTC (rev 10587)
@@ -1,11 +1,26 @@
 <?php
 /**
- * project_summary.php
+ * Project Summary
  *
- * SourceForge: Breaking Down the Barriers to Open Source Development
- * Copyright 1999-2001 (c) VA Linux Systems
- * http://sourceforge.net
+ * Copyright 1999-2001 (c) VA Linux Systems 
+ * Copyright 2010, FusionForge Team
+ * 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
  */
 
 $project_agg_arr=array();

Modified: trunk/src/www/include/stats_function.php
===================================================================
--- trunk/src/www/include/stats_function.php	2010-09-21 10:50:40 UTC (rev 10586)
+++ trunk/src/www/include/stats_function.php	2010-09-21 10:57:48 UTC (rev 10587)
@@ -1,11 +1,25 @@
 <?php
 /**
- * stats_function.php
  *
- * SourceForge: Breaking Down the Barriers to Open Source Development
- * Copyright 1999-2001 (c) VA Linux Systems
- * http://sourceforge.net
+ * Copyright 1999-2001 (c) VA Linux Systems 
+ * Copyright 2010, FusionForge Team
+ * 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 $gfwww.'include/HTML_Graphs.php';
@@ -23,7 +37,7 @@
 
 	if (!$result || $rows < 1) {
 		echo '<h1>Stats Problem</h1>';
-		echo db_error();
+		echo '<div class="error">'.db_error().'</div>';
 	} else {
 		$j=0;
 		for ($i=0; $i<$rows; $i++) {
@@ -56,7 +70,7 @@
 
 	if (!$result || $rows < 1) {
 		echo '<h1>Stats Problem</h1>';
-		echo db_error();
+		echo '<div class="error">'.db_error().'</div>';
 	} else {
 		$count=array();
 		$dates=array();
@@ -79,7 +93,7 @@
 
 	if (!$result || $rows < 1) {
 		echo '<h1>Stats Problem</h1>';
-		echo db_error();
+		echo '<div class="error">'.db_error().'</div>';
 	} else {
 		$count=array();
 		$dates=array();
@@ -110,7 +124,7 @@
 
 	if (!$result || $rows < 1) {
 		echo '<h1>Stats Problem</h1>';
-		echo db_error();
+		echo '<div class="error">'.db_error().'</div>';
 	} else {
 		GraphResult($result,'Logo Showings By Day');
 	}
@@ -127,7 +141,7 @@
 
 	if (!$result || $rows < 1) {
 		echo '<h1>Stats Problem</h1>';
-		echo db_error();
+		echo '<div class="error">'.db_error().'</div>';
 	} else {
 		GraphResult($result,'Logo Showings By Project');
 	}
@@ -151,7 +165,7 @@
 
 	if (!$result || $rows < 1) {
 		echo '<h1>Stats Problem</h1>';
-		echo db_error();
+		echo '<div class="error">'.db_error().'</div>';
 	} else {
 		GraphResult($result,'Page Views By Browser');
 	}
@@ -167,7 +181,7 @@
 
 	if (!$result || $rows < 1) {
 		echo '<h1>Stats Problem</h1>';
-		echo db_error();
+		echo '<div class="error">'.db_error().'</div>';
 	} else {
 		GraphResult($result,'Page Views By Platform');
 	}
@@ -183,7 +197,7 @@
 
 	if (!$result || $rows < 1) {
 		echo '<h1>Stats Problem</h1>';
-		echo db_error();
+		echo '<div class="error">'.db_error().'</div>';
 	} else {
 		ShowResultSet($result,'Page Views By Platform/Browser Version');
 	}

Modified: trunk/src/www/include/tool_reports.php
===================================================================
--- trunk/src/www/include/tool_reports.php	2010-09-21 10:50:40 UTC (rev 10586)
+++ trunk/src/www/include/tool_reports.php	2010-09-21 10:57:48 UTC (rev 10587)
@@ -1,14 +1,27 @@
 <?php
 /**
- * tool_reports.php
  *
- * SourceForge: Breaking Down the Barriers to Open Source Development
- * Copyright 1999-2001 (c) VA Linux Systems
- * http://sourceforge.net
+ * Copyright 1999-2001 (c) VA Linux Systems 
+ * Copyright 2010, FusionForge Team
+ * 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
  */
 
-
 /**
  * reports_quick_graph() - Show a quick graph of data.
  *
@@ -54,7 +67,7 @@
 		print '<p />';
 //      		GraphResult($result,$title);
 	} else {
-		echo "<h2>"._('No data found to report')."</h2>";
+		echo "<div class='warning'>"._('No data found to report')."</div>";
 	}
 }
 

Modified: trunk/src/www/include/unicode.php
===================================================================
--- trunk/src/www/include/unicode.php	2010-09-21 10:50:40 UTC (rev 10586)
+++ trunk/src/www/include/unicode.php	2010-09-21 10:57:48 UTC (rev 10587)
@@ -1,9 +1,25 @@
 <?php
 /**
- * GForge Project 
  *
  * fabio bertagnin fbertagnin at mail.transiciel.com
+ * Copyright 2010, FusionForge Team
+ * 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
  */
 
 if (!defined('UNICODE.PHP'))

Modified: trunk/src/www/include/user_home.php
===================================================================
--- trunk/src/www/include/user_home.php	2010-09-21 10:50:40 UTC (rev 10586)
+++ trunk/src/www/include/user_home.php	2010-09-21 10:57:48 UTC (rev 10587)
@@ -1,16 +1,32 @@
 <?php
 /**
- * user_home.php
  * Developer Info Page
- * Assumes $user object for displayed user is present
  *
- * SourceForge: Breaking Down the Barriers to Open Source Development
- * Copyright 1999-2001 (c) VA Linux Systems
- * http://sourceforge.net
+ * Copyright 1999-2001 (c) VA Linux Systems 
+ * Copyright 2010, FusionForge Team
+ * http://fusionforge.org
  *
- * @author		Drew Streib <dtype at valinux.com>
+ * 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
  */
 
+/**
+ * Assumes $user object for displayed user is present
+ */
+
 require_once $gfwww.'include/vote_function.php';
 
 $HTML->header(array('title'=>_('Developer Profile')));

Modified: trunk/src/www/include/vote_function.php
===================================================================
--- trunk/src/www/include/vote_function.php	2010-09-21 10:50:40 UTC (rev 10586)
+++ trunk/src/www/include/vote_function.php	2010-09-21 10:57:48 UTC (rev 10587)
@@ -2,10 +2,25 @@
 /**
  * vote_function.php
  *
- * SourceForge: Breaking Down the Barriers to Open Source Development
- * Copyright 1999-2001 (c) VA Linux Systems
- * http://sourceforge.net
+ * Copyright 1999-2001 (c) VA Linux Systems 
+ * Copyright 2010, FusionForge Team
+ * 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
  */
 
 /**




More information about the Fusionforge-commits mailing list