[Fusionforge-commits] r6930 - trunk/gforge/plugins/scmccase/common

Roland Mas lolando at libremir.placard.fr.eu.org
Wed Feb 4 21:07:12 CET 2009


Author: lolando
Date: 2009-02-04 21:07:12 +0100 (Wed, 04 Feb 2009)
New Revision: 6930

Modified:
   trunk/gforge/plugins/scmccase/common/CCasePlugin.class.php
   trunk/gforge/plugins/scmccase/common/scmccase-init.php
Log:
Reindenting according to current style

Modified: trunk/gforge/plugins/scmccase/common/CCasePlugin.class.php
===================================================================
--- trunk/gforge/plugins/scmccase/common/CCasePlugin.class.php	2009-02-04 19:58:54 UTC (rev 6929)
+++ trunk/gforge/plugins/scmccase/common/CCasePlugin.class.php	2009-02-04 20:07:12 UTC (rev 6930)
@@ -1,26 +1,25 @@
 <?php
-/** Clear Case plugin for Gforge
- * Copyright 2003 Roland Mas <lolando at debian.org>
- * Copyright 2004 Roland Mas <roland at gnurandal.com> 
- *                The Gforge Group, LLC <http://gforgegroup.com/>
- * Based on the CVS plugin, which was derived from Gforge, which was
- * derived from Sourceforge
+/** FusionForge ClearCase plugin
  *
- * This file is not part of Gforge
+ * Copyright 2003-2009, Roland Mas
+ * Copyright 2004, GForge, LLC
  *
- * This plugin, like Gforge, 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.
+ * This file is part of FusionForge.
  *
- * GForge 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.
+ * 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 GForge; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  US
+ * along with FusionForge; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ * USA
  */
 
 class CCasePlugin extends SCM {
@@ -79,73 +78,57 @@
 		if ($project->usesPlugin ("scmccase")) {
 			$vob_tag = ereg_replace ("GROUPNAME", $project->getUnixName (), $this->tag_pattern) ;
 	
-		 print '<h2>Clear Case</h2>
-		                <p>Documentation for Clear Case is probably available somewhere.
+			print '<h2>ClearCase</h2>
+		                <p>Documentation for ClearCase is probably available somewhere.
                                 </p>' ;
 
+			// Table for summary info
 
-// ######################## table for summary info
+			print '<table width="100%"><tr valign="top"><td width="65%">' ;
 
-?>
-<table width="100%">
-	<tr valign="top">
-		<td width="65%">
-<?php
-// ############################ developer access
+			// Developer access
 			
-	 echo "<b>".print(_('Clear Case Access'))."</b>" ;
+			echo "<b>".print(_('ClearCase Access'))."</b>" ;
 
-	 print "<p>Either mount the VOB with <tt>cleartool mount $vob_tag</tt> or
-	 select the <tt>$vob_tag</tt> VOB in your Clear Case Explorer.
-	 </p>" ;
+			print "<p>" ;
+			printf (_('Either mount the VOB with <tt>cleartool mount %1$s</tt> or select the <tt>%1$s</tt> VOB in your ClearCase Explorer.'),
+				$vob_tag) ;
+			print "</p>" ;
 
-// ################## summary info
+			// Summary info
 
-?>
+			print '</td><td width="35%">' ;
 
-		</td>
-		<td width="35%">
+			// CCase Browsing
 
-<?php
+			$anonymous = 1;
+			if (session_loggedin()) {
+				$perm =& $project->getPermission(session_get_user());
+				$anonymous = !$perm->isMember();
+			}
+			
+			if ($project->enableAnonCVS() || !$anonymous) {
+				echo $HTML->boxTop(_('History'));
+				
+				echo '<b>'._('Browse the ClearCase tree').'</b><p>'._('Browsing the ClearCase tree gives you a great view into the current status of this project\'s code. You may also view the complete histories of any file in the repository.').'</p>' ;
+				
+				$browse_url = "http://" . $this->GetGroupServer($group_id) . "/ccweb" ;
+				// $browse_url = $browse_url . "?vob_tag=".$vob_tag ;
+				echo "<p>" ;
+				printf (_('<a href="%1$s">Browse</a> CCase tree'),
+					$browse_url) ;
+				echo "</p>" ;
 
-// ############################## CCase Browsing
+				echo $HTML->boxBottom();
+			}
 
-$anonymous = 1;
-if (session_loggedin()) {
-   $perm =& $project->getPermission(session_get_user());
-   $anonymous = !$perm->isMember();
-}
- 
-if ($project->enableAnonCVS() || !$anonymous) {
-	echo $HTML->boxTop(_('History'));
-
-	echo '<b>'._('Browse the Clear Case tree').'</b><p>'._('Browsing the Clear Case tree gives you a great view into the current status of this project\'s code. You may also view the complete histories of any file in the repository.').'</p>' ;
-
-	$browse_url = "http://" . $this->GetGroupServer($group_id) . "/ccweb" ;
-	// $browse_url = $browse_url . "?vob_tag=".$vob_tag ;
-	echo "<p><a href=\"$browse_url\">Browse</a> CCase tree</p>" ;
-
-       echo $HTML->boxBottom();
-}
-
-?>
-		</td>
-	</tr>
-</table>
-
-<?php
-
-// ************************************************
-
-
-
+			print '</td></tr></table>' ;
 		}
-
 	}
-
+	
 	function scm_admin_update ($params) {
 		$group =& group_get_object($params['group_id']);
-
+		
 		if ($params['scmccase_ccase_server'] && $params['scmccase_ccase_server'] != "") {
 			$this->SetGroupServer ($params['group_id'], $params['scmccase_ccase_server']) ;
 		} else {
@@ -155,11 +138,9 @@
 
 	function display_scm_admin_page ($params) {
 		$group =& group_get_object($params['group_id']);
-
+		
 		if ( $group->usesPlugin ( $this->name ) ) {
-?>
-			<input type="text" name="scmccase_ccase_server" value="<?php echo $this->GetGroupServer ($params['group_id']) ?>"> <strong>Clear Case server</strong><br /><br />
-<?php
+			print '<input type="text" name="scmccase_ccase_server" value="'.$this->GetGroupServer ($params['group_id']).'"> <strong>'._('ClearCase server').'</strong><br /><br />' ;
 		}
 	}
 
@@ -183,7 +164,7 @@
 		printf(ngettext("commit","commits",$commit_count),$commit_count);
 		echo ', <strong>'.$add_count.'</strong> '; 
 		printf(ngettext("add","adds",$add_count),$add_count);
-		echo ' )';
+		echo ')';
 	}
 	
 
@@ -214,7 +195,7 @@
 		$res = db_query($sql);
 		db_commit () ;
 	}
-}
+  }
 
 // Local Variables:
 // mode: php

Modified: trunk/gforge/plugins/scmccase/common/scmccase-init.php
===================================================================
--- trunk/gforge/plugins/scmccase/common/scmccase-init.php	2009-02-04 19:58:54 UTC (rev 6929)
+++ trunk/gforge/plugins/scmccase/common/scmccase-init.php	2009-02-04 20:07:12 UTC (rev 6930)
@@ -1,26 +1,25 @@
 <?php
-/** Clear Case plugin for Gforge
- * Copyright 2003 Roland Mas <lolando at debian.org>
- * Copyright 2004 Roland Mas <roland at gnurandal.com> 
- *                The Gforge Group, LLC <http://gforgegroup.com/>
- * Based on the CVS plugin, which was derived from Gforge, which was
- * derived from Sourceforge
+/** FusionForge ClearCase plugin
  *
- * This file is not part of Gforge
+ * Copyright 2003-2009, Roland Mas
+ * Copyright 2004, GForge, LLC
  *
- * This plugin, like Gforge, 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.
+ * This file is part of FusionForge.
  *
- * GForge 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.
+ * 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 GForge; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  US
+ * along with FusionForge; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ * USA
  */
 
 global $gfplugins;




More information about the Fusionforge-commits mailing list