[evolvis-commits] r16093: Use group in lowercase.

mirabilos at evolvis.org mirabilos at evolvis.org
Tue Mar 1 00:52:04 CET 2011


Author: mirabilos
Date: 2011-03-01 00:52:04 +0100 (Tue, 01 Mar 2011)
New Revision: 16093

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/www/mail/admin/index.php
Log:
Use group in lowercase.

Modified: trunk/gforge_base/evolvisforge-5.1/src/www/mail/admin/index.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/mail/admin/index.php	2011-02-28 23:51:59 UTC (rev 16092)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/mail/admin/index.php	2011-02-28 23:52:04 UTC (rev 16093)
@@ -37,12 +37,12 @@
 $feedback = getStringFromRequest('feedback');
 
 if ($group_id) {
-	$Group =& group_get_object($group_id);
-	if (!$Group || !is_object($Group) || $Group->isError()) {
+	$group =& group_get_object($group_id);
+	if (!$group || !is_object($group) || $group->isError()) {
 		exit_no_group();
 	}
 	
-	session_require_perm ('project_admin', $Group->getID()) ;
+	session_require_perm ('project_admin', $group->getID()) ;
 	
 	//
 	//	Post Changes to database
@@ -53,8 +53,8 @@
 		//
 		if (getStringFromRequest('add_list') == 'y') {
 
-			if (check_email_available($Group, $Group->getUnixName() . '-' . getStringFromPost('list_name'), $error_msg)) {
-				$mailingList = new MailingList($Group);
+			if (check_email_available($group, $group->getUnixName() . '-' . getStringFromPost('list_name'), $error_msg)) {
+				$mailingList = new MailingList($group);
 			
 				if (!form_key_is_valid(getStringFromRequest('form_key'))) {
 					exit_form_double_submit('mail');
@@ -85,7 +85,7 @@
 		//	Change status
 		//
 		} elseif (getStringFromPost('change_status') == 'y') {
-			$mailingList = new MailingList($Group, getIntFromGet('group_list_id'));
+			$mailingList = new MailingList($group, getIntFromGet('group_list_id'));
 			
 			if(!$mailingList || !is_object($mailingList)) {
 				exit_error(_('Error getting the list'),'mail');
@@ -108,7 +108,7 @@
 	//	Reset admin password
 	//
 	if (getIntFromRequest('reset_pw') == 1) {
-		$mailingList = new MailingList($Group, getIntFromGet('group_list_id'));
+		$mailingList = new MailingList($group, getIntFromGet('group_list_id'));
 		
 		if(!$mailingList || !is_object($mailingList)) {
 			exit_error(_('Error getting the list'),'mail');
@@ -138,7 +138,7 @@
 			'title' => _('Add a Mailing List')));
 		printf(_('<p>Lists are named in this manner:<br /><strong>projectname-listname@%1$s</strong></p><p>It will take <span class="important">6-24 Hours</span> for your list to be created.</p>'), forge_get_config('lists_host'));
 		
-		$mlFactory = new MailingListFactory($Group);
+		$mlFactory = new MailingListFactory($group);
 		if (!$mlFactory || !is_object($mlFactory) || $mlFactory->isError()) {
 			exit_error($mlFactory->getErrorMessage(),'mail');
 		}
@@ -182,7 +182,7 @@
 			<input type="hidden" name="add_list" value="y" />
 			<input type="hidden" name="form_key" value="<?php echo form_generate_key();?>" />
 			<p><strong><?php echo _('Mailing List Name:'); ?></strong><br />
-			<strong><?php echo $Group->getUnixName(); ?>-<input type="text" name="list_name" value="" size="10" maxlength="12" />@<?php echo forge_get_config('lists_host'); ?></strong><br /></p>
+			<strong><?php echo $group->getUnixName(); ?>-<input type="text" name="list_name" value="" size="10" maxlength="12" />@<?php echo forge_get_config('lists_host'); ?></strong><br /></p>
 			<p>
 			<strong><?php echo _('Is Public?'); ?></strong><br />
 			<input type="radio" name="is_public" value="<?php echo MAIL__MAILING_LIST_IS_PUBLIC; ?>" checked="checked" /> <?php echo _('Yes'); ?><br />
@@ -199,7 +199,7 @@
 //	Form to modify list
 //
 	} elseif(getIntFromGet('change_status') && getIntFromGet('group_list_id')) {
-		$mailingList = new MailingList($Group, getIntFromGet('group_list_id'));
+		$mailingList = new MailingList($group, getIntFromGet('group_list_id'));
 			
 		if(!$mailingList || !is_object($mailingList)) {
 			exit_error(_('Error getting the list'),'mail');
@@ -217,7 +217,7 @@
 			<p>
 			<strong><?php echo _('Is Public?'); ?></strong><br />
 			<input type="radio" name="is_public" value="<?php echo MAIL__MAILING_LIST_IS_PUBLIC; ?>"<?php echo ($mailingList->isPublic() == MAIL__MAILING_LIST_IS_PUBLIC ? ' checked="checked"' : ''); ?> /> <?php echo _('Yes'); ?><br />
-			<input type="radio" name="is_public" value="<?php echo MAIL__MAILING_LIST_IS_PRIVATE; ?>"<?php echo ($mailingList->isPublic() == MAIL__MAILING_LIST_IS_PRIVATE ? ' checked="checked"' : ''); ?> /> <?php echo _('No'); ?><br />
+			<input type="radio" name="is_public" value="<?php echo MAIL__MAILING_LIST_IS_PRIVATE; ?>"<?php echo ($mailingList->isPublic() == MAIL__MAILING_LIST_IS_PRIVATE ? ' checked="checked"' : ''); ?> /> <?php echo _('No'); ?>
 			</p>
 			<p><strong><?php echo _('Description:'); ?></strong><br />
 			<input type="text" name="description" value="<?php echo inputSpecialChars($mailingList->getDescription()); ?>" size="40" maxlength="80" /><br /></p>
@@ -231,7 +231,7 @@
 //
 //	Show lists
 //
-		$mlFactory = new MailingListFactory($Group);
+		$mlFactory = new MailingListFactory($group);
 		if (!$mlFactory || !is_object($mlFactory) || $mlFactory->isError()) {
 			exit_error($mlFactory->getErrorMessage(),'mail');
 		}
@@ -243,7 +243,7 @@
 		$mlArray =& $mlFactory->getMailingLists();
 
 		if ($mlFactory->isError()) {
-			echo '<p>'._('Error').' '.sprintf(_('Unable to get the list %s'), $Group->getPublicName()) .'</p>';
+			echo '<p>'._('Error').' '.sprintf(_('Unable to get the list %s'), $group->getPublicName()) .'</p>';
 			echo '<div class="error">'.$mlFactory->getErrorMessage().'</div>';
 			mail_footer(array());
 			exit;
@@ -273,14 +273,14 @@
 					echo '<tr '. $HTML->boxGetAltRowStyle($i) . '><td width="60%">'.
 					'<strong>'.$currentList->getName().'</strong><br />'.
 					htmlspecialchars($currentList->getDescription()).'</td>'.
-						'<td width="15%" style="text-align:center"><a href="'.getStringFromServer('PHP_SELF').'?group_id='.$group_id.'&group_list_id='.$currentList->getID().'&change_status=1">'._('Update').'</a></td>' ;
-					echo '<td width="15%" style="text-align:center">';
+					'<td style="text-align:center"><a href="'.getStringFromServer('PHP_SELF').'?group_id='.$group_id.'&group_list_id='.$currentList->getID().'&change_status=1">'._('Update').'</a></td>' ;
+					echo '<td style="text-align:center">';
 					if($currentList->getStatus() == MAIL__MAILING_LIST_IS_REQUESTED) {
 						echo _('Not activated yet');
 					} else {
 						echo '<a href="'.$currentList->getExternalAdminUrl().'">'._('Administrate').'</a></td>';
 					}
-					echo '<td width="15%" style="text-align:center">';
+					echo '<td style="text-align:center">';
 					if($currentList->getStatus() == MAIL__MAILING_LIST_IS_CONFIGURED) {
 						print '<a href="'.getStringFromServer('PHP_SELF').'?group_id='.$group_id.'&group_list_id='.$currentList->getID().'&reset_pw=1">'._('Reset admin password').'</a></td>' ;
 



More information about the evolvis-commits mailing list