From 3bd7df35ba0749f7f2e7fa58cdf11b72f2e7440c Mon Sep 17 00:00:00 2001
From: Tom Lake <tswsl1989@sucs.org>
Date: Mon, 6 Feb 2012 11:32:06 +0000
Subject: [PATCH] More GID change fixes and some other minor corrections

---
 lib/member_functions.php | 2 +-
 lib/validation.php       | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/member_functions.php b/lib/member_functions.php
index 36b687e..799131d 100644
--- a/lib/member_functions.php
+++ b/lib/member_functions.php
@@ -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){
diff --git a/lib/validation.php b/lib/validation.php
index 7aad3c6..cef6388 100644
--- a/lib/validation.php
+++ b/lib/validation.php
@@ -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
  *
-- 
GitLab