[Fusionforge-commits] r12156 - in trunk/src/common/docman: actions views

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Fri Feb 4 14:35:59 CET 2011


Author: nerville
Date: 2011-02-04 14:35:57 +0100 (Fri, 04 Feb 2011)
New Revision: 12156

Modified:
   trunk/src/common/docman/actions/addfile.php
   trunk/src/common/docman/views/addfile.php
Log:
add missing copyrights

Modified: trunk/src/common/docman/actions/addfile.php
===================================================================
--- trunk/src/common/docman/actions/addfile.php	2011-02-04 13:21:02 UTC (rev 12155)
+++ trunk/src/common/docman/actions/addfile.php	2011-02-04 13:35:57 UTC (rev 12156)
@@ -5,6 +5,7 @@
  * Copyright 2000, Quentin Cregan/Sourceforge
  * Copyright 2002-2003, Tim Perdue/GForge, LLC
  * Copyright 2010-2011, Franck Villaume - Capgemini
+ * Copyright 2011, Roland Mas
  * http://fusionforge.org
  *
  * This file is part of FusionForge.
@@ -123,7 +124,7 @@
 			session_redirect('/docman/?group_id='.$group_id.'&error_msg='.urlencode($return_msg));
 		}
 		
-		$incoming = forge_get_config('groupdir_prefix')."/".$g->getUnixName()."/incoming" ;
+		$incoming = forge_get_config('groupdir_prefix')."/".$g->getUnixName()."/incoming";
 		$filename = $incoming.'/'.$manual_path;
 
 		if (!util_is_valid_filename($manual_path) || !is_file($filename)) {

Modified: trunk/src/common/docman/views/addfile.php
===================================================================
--- trunk/src/common/docman/views/addfile.php	2011-02-04 13:21:02 UTC (rev 12155)
+++ trunk/src/common/docman/views/addfile.php	2011-02-04 13:35:57 UTC (rev 12156)
@@ -5,6 +5,7 @@
  * Copyright 2000, Quentin Cregan/Sourceforge
  * Copyright 2002-2003, Tim Perdue/GForge, LLC
  * Copyright 2010, Franck Villaume - Capgemini
+ * Copyright 2011, Roland Mas
  * http://fusionforge.org
  *
  * This file is part of FusionForge.
@@ -99,13 +100,13 @@
 						<strong>'. _('Type of Document') .'</strong>'.utils_requiredField()
 					.'</td><td>
 					<input type="radio" name="type" value="httpupload" onClick="javascript:displayRowFile()" />'. _('File') .'<input type="radio" name="type" value="pasteurl" onClick="javascript:displayRowUrl()" />'. _('URL');
-			if (forge_get_config('use_manual_uploads')) {
-				echo '<input type="radio" name="type" value="manualupload" onClick="javascript:displayRowManual()" />'. _('Already-uploaded file');
-			}
-			if ($g->useCreateOnline()) {
-				echo '<input type="radio" name="type" value="editor" onClick="javascript:displayRowEditor()" />'. _('Create online');
-			}
-			echo '		</td>
+	if (forge_get_config('use_manual_uploads')) {
+					echo '<input type="radio" name="type" value="manualupload" onClick="javascript:displayRowManual()" />'. _('Already-uploaded file');
+	}
+	if ($g->useCreateOnline()) {
+					echo '<input type="radio" name="type" value="editor" onClick="javascript:displayRowEditor()" />'. _('Create online');
+	}
+	echo '				</td>
 				</tr>
 				<tr id="filerow" style="display:none">
 					<td style="text-align:right;">
@@ -125,13 +126,13 @@
 					<td style="text-align:right;">
 						<strong>'. _('File') .'</strong>'. utils_requiredField() . '</td><td>';
 
-			$incoming = forge_get_config('groupdir_prefix')."/".$g->getUnixName()."/incoming" ;
-			$manual_files_arr=ls($incoming,true);
-			echo html_build_select_box_from_arrays($manual_files_arr,$manual_files_arr,'manual_path','');
-			echo '<br />';
+	$incoming = forge_get_config('groupdir_prefix')."/".$g->getUnixName()."/incoming";
+	$manual_files_arr = ls($incoming, true);
+	echo html_build_select_box_from_arrays($manual_files_arr, $manual_files_arr, 'manual_path', '');
+	echo '			<br />';
 			printf(_('Pick a file already uploaded (by SFTP or SCP) to the <a href="%2$s">project\'s incoming directory</a> (%1$s).'),
-			       $incoming, "sftp://" . forge_get_config ('web_host') . $incoming . "/");
-			echo '
+				$incoming, "sftp://" . forge_get_config('web_host') . $incoming . "/");
+	echo '
 					</td>
 				</tr>
 				<tr id="editnamerow" style="display:none">
@@ -143,7 +144,7 @@
 				</tr>
 				<tr id="editrow" style="display:none">
 					<td colspan="2">';
-	$GLOBALS['editor_was_set_up']=false;
+	$GLOBALS['editor_was_set_up'] = false;
 	$params = array() ;
 	/* name must be details !!! if name = data then nothing is displayed */
 	$params['name'] = 'details';
@@ -151,7 +152,7 @@
 	$params['height'] = "300";
 	$params['body'] = "";
 	$params['group'] = $group_id;
-	plugin_hook("text_editor",$params);
+	plugin_hook("text_editor", $params);
 	if (!$GLOBALS['editor_was_set_up']) {
 		echo '<textarea name="details" rows="5" cols="80"></textarea>';
 	}
@@ -160,7 +161,7 @@
 					</td>
 				</tr>';
 	if ($dirid) {
-		echo '<input type="hidden" name="doc_group" value="'.$dirid.'">';
+		echo '		<input type="hidden" name="doc_group" value="'.$dirid.'">';
 	} else {
 		echo '
 				<tr>




More information about the Fusionforge-commits mailing list