Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sucs-site
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Osian Smith
sucs-site
Commits
3bd7df35
Commit
3bd7df35
authored
13 years ago
by
Thomas Lake
Browse files
Options
Downloads
Patches
Plain Diff
More GID change fixes and some other minor corrections
parent
ec9fcc03
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/member_functions.php
+1
-1
1 addition, 1 deletion
lib/member_functions.php
lib/validation.php
+3
-3
3 additions, 3 deletions
lib/validation.php
with
4 additions
and
4 deletions
lib/member_functions.php
+
1
−
1
View file @
3bd7df35
...
...
@@ -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
=
113
0
;
$homebase
=
"society"
;
}
elseif
(
$type
==
5
){
...
...
This diff is collapsed.
Click to expand it.
lib/validation.php
+
3
−
3
View file @
3bd7df35
...
...
@@ -165,7 +165,7 @@ function validSID($SID,$override){
return
false
;
}
elseif
(
sidUsed
(
$SID
)){
$error
=
"A user with that student ID already ex
s
ists, 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 format
t
ed, 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 me
a
nt 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
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment