ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

0
Date Submitted Thu. Oct. 30th, 2008 1:01 PM
Revision 1
Beginner nostromo
Tags "mysql"
Comments 0 comments
Get only a number of chars from field and concat '...'

if long field is empty return nothing
if long field is less than number return field
else return number of chars in field and '...'
6
Date Submitted Sun. Sep. 24th, 2006 5:23 PM
Revision 1
Helper kahotep
Tags "authentication" | "ldap" | "mysql" | "php"
Comments 1 comments
The following program was written for my company's time keeping system which utilizes an LDAP database for authentication and a MySQL database for time-keeping, account access control, etc.

If a user has >= 5 unsuccessful logins, it locks the account for 5 minutes. Once a successful LDAP bind has occured, the $_SESSION vars are set and the authorization process is bypassed until the user logs out or the session expires.