parent
							
								
									efc412b481
								
							
						
					
					
						commit
						5a5ce6e3a3
					
				| 
						 | 
				
			
			@ -4,6 +4,7 @@
 | 
			
		|||
      street was copied to postal code on modify (938502)
 | 
			
		||||
      underscore was not allowed for host names (934445)
 | 
			
		||||
      deleting postal address or facsimile number failed (948616)
 | 
			
		||||
      smaller fixes on personal settings page
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
21.03.2004 0.4.5
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -245,10 +245,10 @@ $helpArray = array (
 | 
			
		|||
				"447" => array ("ext" => "FALSE", "Headline" => _("Grace inode period"),
 | 
			
		||||
					"Text" => _("Grace inode (files) period. Most filesystems use a fixed maximum value of 7 days."), "SeeAlso" => '<a href="http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Quota.html#ss4.6">'.
 | 
			
		||||
						'Quota How-To</a>'),
 | 
			
		||||
				"448" => array ("ext" => "FALSE", "Headline" => _("Title"),
 | 
			
		||||
					"Text" => _("Title of user, Mr., Ms., ...")),
 | 
			
		||||
				"448" => array ("ext" => "FALSE", "Headline" => _("Job title"),
 | 
			
		||||
					"Text" => _("Job title of user, Vice President, ...")),
 | 
			
		||||
				"449" => array ("ext" => "FALSE", "Headline" => _("Employee type"),
 | 
			
		||||
					"Text" => _("Employee type: worker, student, nurse, ...")),
 | 
			
		||||
					"Text" => _("Employee type: Contractor, Employee, Intern, Temp, External, ...")),
 | 
			
		||||
				"450" => array ("ext" => "FALSE", "Headline" => _("Street"),
 | 
			
		||||
					"Text" => _("Street")),
 | 
			
		||||
				"451" => array ("ext" => "FALSE", "Headline" => _("Postal code"),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -492,7 +492,7 @@ switch ($_POST['select']) {
 | 
			
		|||
		if ( !ereg('^(([0-9]|[A-Z]|[a-z]|[.]|[-]|[_])+[@]([0-9]|[A-Z]|[a-z]|[-])+([.]([0-9]|[A-Z]|[a-z]|[-])+)*)*$', $account_new->personal_mail))  $errors[] = array('ERROR', _('eMail address'), _('Please enter a valid eMail address!'));
 | 
			
		||||
		if ( !ereg('^([0-9]|[A-Z]|[a-z]|[-]|[ ]|[.]|[Ä]|[ä]|[Ö]|[ö]|[Ü]|[ü]|[ß])*$', $account_new->personal_street))  $errors[] = array('ERROR', _('Street'), _('Please enter a valid street name!'));
 | 
			
		||||
		if ( !ereg('^([0-9]|[A-Z]|[a-z]|[ ]|[.]|[Ä]|[ä]|[Ö]|[ö]|[Ü]|[ü]|[ß])*$', $account_new->personal_postalAddress))  $errors[] = array('ERROR', _('Postal address'), _('Please enter a valid postal address!'));
 | 
			
		||||
		if ( !ereg('^([0-9]|[A-Z]|[a-z]|[-]|[ ]|[.]|[Ä]|[ä]|[Ö]|[ö]|[Ü]|[ü]|[ß])*$', $account_new->personal_title))  $errors[] = array('ERROR', _('Title'), _('Please enter a valid title!'));
 | 
			
		||||
		if ( !ereg('^([0-9]|[A-Z]|[a-z]|[-]|[ ]|[.]|[Ä]|[ä]|[Ö]|[ö]|[Ü]|[ü]|[ß])*$', $account_new->personal_title))  $errors[] = array('ERROR', _('Job title'), _('Please enter a valid job title!'));
 | 
			
		||||
		if ( !ereg('^([0-9]|[A-Z]|[a-z]|[ ]|[.]|[Ä]|[ä]|[Ö]|[ö]|[Ü]|[ü]|[ß])*$', $account_new->personal_employeeType))  $errors[] = array('ERROR', _('Employee type'), _('Please enter a valid employee type!'));
 | 
			
		||||
		if ( !ereg('^([0-9]|[A-Z]|[a-z])*$', $account_new->personal_postalCode))  $errors[] = array('ERROR', _('Postal code'), _('Please enter a valid postal code!'));
 | 
			
		||||
		break;
 | 
			
		||||
| 
						 | 
				
			
			@ -1463,7 +1463,7 @@ switch ($select_local) {
 | 
			
		|||
		echo "</fieldset></td></tr></table></td>\n<td valign=\"top\">";
 | 
			
		||||
		echo "<table border=0 width=\"100%\"><tr><td><fieldset class=\"useredit-bright\"><legend class=\"useredit-bright\"><b>"._('Personal properties')."</b></legend>\n";
 | 
			
		||||
		echo "<table border=0 width=\"100%\"><tr><td>";
 | 
			
		||||
		echo _('Title');
 | 
			
		||||
		echo _('Job title');
 | 
			
		||||
		echo '</td>'."\n".'<td>'.
 | 
			
		||||
			'<input name="f_personal_title" type="text" size="10" maxlength="10" value="' . $account_new->personal_title . '"> ';
 | 
			
		||||
		echo $account_new->general_givenname . ' ' . $account_new->general_surname . '</td><td>'.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -358,7 +358,7 @@ switch ($select) {
 | 
			
		|||
		echo "</td>\n<td>";
 | 
			
		||||
		echo _('Primary group').',';
 | 
			
		||||
		echo '</td>'."\n".'<td>';
 | 
			
		||||
		echo _('Title').',';
 | 
			
		||||
		echo _('Job title').',';
 | 
			
		||||
		echo '</td>'."\n".'<td>';
 | 
			
		||||
		echo _('eMail address').',';
 | 
			
		||||
		echo '</td>'."\n".'<td>';
 | 
			
		||||
| 
						 | 
				
			
			@ -571,7 +571,7 @@ function loadfile() {
 | 
			
		|||
			if ( !ereg('^(([0-9]|[A-Z]|[a-z]|[.]|[-]|[_])+[@]([0-9]|[A-Z]|[a-z]|[-])+([.]([0-9]|[A-Z]|[a-z]|[-])+)*)*$', $_SESSION['mass_accounts'][$row2]->personal_mail))  $_SESSION['mass_errors'][$row2][] = array('ERROR', _('eMail address'), _('Please enter a valid eMail address!'));
 | 
			
		||||
			if ( !ereg('^([0-9]|[A-Z]|[a-z]|[ ]|[.]|[ä]|[Ä]|[ö]|[Ö]|[ü]|[Ü]|[ß])*$', $_SESSION['mass_accounts'][$row2]->personal_street))  $_SESSION['mass_errors'][$row2][] = array('ERROR', _('Street'), _('Please enter a valid street name!'));
 | 
			
		||||
			if ( !ereg('^([0-9]|[A-Z]|[a-z]|[ ]|[.]|[ä]|[Ä]|[ö]|[Ö]|[ü]|[Ü]|[ß])*$', $_SESSION['mass_accounts'][$row2]->personal_postalAddress))  $_SESSION['mass_errors'][$row2][] = array('ERROR', _('Postal address'), _('Please enter a valid postal address!'));
 | 
			
		||||
			if ( !ereg('^([0-9]|[A-Z]|[a-z]|[ ]|[.]|[ä]|[Ä]|[ö]|[Ö]|[ü]|[Ü]|[ß])*$', $_SESSION['mass_accounts'][$row2]->personal_title))  $_SESSION['mass_errors'][$row2][] = array('ERROR', _('Title'), _('Please enter a valid title!'));
 | 
			
		||||
			if ( !ereg('^([0-9]|[A-Z]|[a-z]|[ ]|[.]|[ä]|[Ä]|[ö]|[Ö]|[ü]|[Ü]|[ß])*$', $_SESSION['mass_accounts'][$row2]->personal_title))  $_SESSION['mass_errors'][$row2][] = array('ERROR', _('Job title'), _('Please enter a valid job title!'));
 | 
			
		||||
			if ( !ereg('^([0-9]|[A-Z]|[a-z]|[ ]|[.]|[ä]|[Ä]|[ö]|[Ö]|[ü]|[Ü]|[ß])*$', $_SESSION['mass_accounts'][$row2]->personal_employeeType))  $_SESSION['mass_errors'][$row2][] = array('ERROR', _('Employee type'), _('Please enter a valid employee type!'));
 | 
			
		||||
			if ( !ereg('^([0-9]|[A-Z]|[a-z])*$', $_SESSION['mass_accounts']->personal_postalCode))  $_SESSION['mass_errors'][$row2][] = array('ERROR', _('Postal code'), _('Please enter a valid postal code!'));
 | 
			
		||||
			}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -137,7 +137,7 @@ if ($_POST['apply']) {
 | 
			
		|||
			}
 | 
			
		||||
		}
 | 
			
		||||
	// Check personal settings
 | 
			
		||||
	if ( !eregi('^([a-z öüäß\\.-])*$', $_POST['f_personal_title']))  $errors2[] = array('ERROR', _('Title'), _('Please enter a valid title!'));
 | 
			
		||||
	if ( !eregi('^([a-z öüäß\\.-])*$', $_POST['f_personal_title']))  $errors2[] = array('ERROR', _('Job title'), _('Please enter a valid job title!'));
 | 
			
		||||
		else $_SESSION['mass_accounts'][$row]->personal_title = $_POST['f_personal_title'];
 | 
			
		||||
	if ( !eregi('^([a-z0-9 öüäß\\.-])*$', $_POST['f_personal_employeeType']))  $errors2[] = array('ERROR', _('Employee type'), _('Please enter a valid employee type!'));
 | 
			
		||||
		else $_SESSION['mass_accounts'][$row]->personal_employeeType = $_POST['f_personal_employeeType'];
 | 
			
		||||
| 
						 | 
				
			
			@ -217,7 +217,7 @@ switch ($select) {
 | 
			
		|||
			'</td><td>'.
 | 
			
		||||
			'<a href="help.php?HelpNumber=400" target="lamhelp">'._('Help').'</a>'.
 | 
			
		||||
			'</td></tr>'."\n".'<tr><td>';
 | 
			
		||||
		echo _('Title');
 | 
			
		||||
		echo _('Job title');
 | 
			
		||||
		echo '</td>'."\n".'<td>'.
 | 
			
		||||
			'<input name="f_personal_title" type="text" size="10" maxlength="10" value="' . $_SESSION['mass_accounts'][$row]->personal_title . '"> ';
 | 
			
		||||
		echo $_SESSION['mass_accounts']->general_surname . ' ' . $_SESSION['mass_accounts']->general_givenname . '</td><td>'.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue