Skip to content
Snippets Groups Projects
Commit 3bd7df35 authored by Thomas Lake's avatar Thomas Lake :wrench:
Browse files

More GID change fixes and some other minor corrections

parent ec9fcc03
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ function generateLdif($uid, $password, $type, $realname, $username){
$ldif .= "uidNumber: ".$uid."\n";
// make some society specific changes
if($type==2){
$gid=113;
$gid=1130;
$homebase="society";
}
elseif($type==5){
......
......@@ -165,7 +165,7 @@ function validSID($SID,$override){
return false;
}
elseif(sidUsed($SID)){
$error = "A user with that student ID already exsists, email <a href=\"mailto:admin@sucs.org\">admin@sucs.org</a> if this is an error.";
$error = "A user with that student ID already exists, email <a href=\"mailto:admin@sucs.org\">admin@sucs.org</a> if this is an error.";
return false;
}
elseif(lookupSID($SID)==" "){
......@@ -198,7 +198,7 @@ function validRealName($realName,$override){
//check for a sane realname, see comment below
elseif (!preg_match("/^([A-Z]([.]+ +[A-Z])*([\']+[A-Z])*[a-z]+[ -]*)+$/", $realName))
{
$error = "Name incorrectly formated, email <a href=\"mailto:admin@sucs.org\">admin@sucs.org</a> if this is an error.";
$error = "Name incorrectly formatted, email <a href=\"mailto:admin@sucs.org\">admin@sucs.org</a> if this is an error.";
return false;
}
/*
......@@ -219,7 +219,7 @@ function validRealName($realName,$override){
* Robin M. O'Leary is valid
* Robin M O'Leary is not
* Robin M. OLeary is Not
* Robin M. O'LeaRy is valid (though its not ment to be.. bad side effect of not requireing at least one space...)
* Robin M. O'LeaRy is valid (though its not meant to be.. bad side effect of not requireing at least one space...)
* BUT... this alows for McSmith's... which is rather nice :)... and of course delibrate
* RObin M O'Leary is not
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment