Zend - The PHP Company




Code Gallery: fphilipe


Convert height and width to your specific height and width  

Type: code fragment
Added by: fphilipe
Entered: 10/05/2004
Last modified: 05/12/2003
Rating: - (fewer than 3 votes)
Views: 6076
Convert height and width to your specific height and width. This code returns the relative height to the width and otherwise too.


user authentication class with cookies sessions and mysql  

Type: class
Added by: fphilipe
Entered: 16/05/2004
Last modified: 05/12/2003
Rating: - (fewer than 3 votes)
Views: 9877
On the login page: If the user is already logged on or if there are cookies or there is a valid session, he will be redirected to the member page. If the log in form isn't complete or the username or the password is wrong, the function will return the error variable. In areas for members only: If the user isn't logged on or there aren't any cookies or the session terminated, the user will be redirected to the login page. In the logout page: The user will be logged out.




Search