WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : PHP5 Security System
Categories : PHP, PHP Classes, Security Click here to Update Your Picture
Joseph Crawford
Date : Jun 03rd 2004
Grade : 5 of 5 (graded 1 times)
Viewed : 10464
File : 3904.zip
Images : No Images for this code example.
Search : More code by Joseph Crawford
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
Like this code?
Show the author your appreciation.
 

This code example assumes you know how to use Objects, Classes and Interfaces, if you do not
please take a look at these articles i wrote to help people understand these topics.

Classes & Objects: http://www.weberdev.com/ViewArticle/405
PHP 5 Interfaces: http://www.weberdev.com/ViewArticle/407

I have not included an example here because it would mean that i would need to include all code in this text as well, however the code is extremely commented with very descriptive comments.

This is a small example of what you can do with PHP 5, ofcourse you could do all of this with
previous versions of PHP however this example will get you off and running with PHP 5.

Before you can use this example you need to do a few things.

1.) Create a database called 'security'
2.) Import the data using the included security.sql file
3.) Place the directory structure in your web directory
4.) Edit the global.php file and change the 2 define statements SITE_URL and SITE_PATH
5.) Add a user to the members table in the database.
6.) Add the user to roles.
7.) login using the email, password you used when you setup the user.

NOTE: You can login using

username: user@domain.com
password: test

This is a pre-setup user i have created for you to play with.


When adding a user to roles, you need to add the users id and the roles id to the members_roles
table.

Any questions or need help, just post comments and i will get back to you ;)

Joe Crawford Jr.



A damaged image generator (class) for validating text. CAPTCHA - Completely Automated Public Turing test to tell Computers and Humans Apart
Categories : PHP, PHP Classes, Security, GD image library, Security
Generating and Matching Secure and Strong Password Hash
Categories : PHP, PHP Classes, Cryptography, Security
Password Creator: This PHP code exmaple shows how to use bitwise operations on a single variable and using it as a flagged variable. The class generates passwords of a given length using specified characters and the flags.
Categories : PHP, PHP Classes, Algorithms, Security
Function to generate readable/remeberable random password
Categories : PHP, Security, Security
Use of bitmasks to represent permissions
Categories : PHP, Authentication, Bitwise Operators, Security, PHP Classes
Scan Apache access log files and report possible worms attack
Categories : PHP, PHP Classes, Security, Apache, Log Files
Scramble Eggs - php class to scramble/encode
Categories : PHP, PHP Classes, Security, Encryption
Antispoof - a class to help prevent people hi-jacking and misusing parts of a website
Categories : PHP, PHP Classes, Security
Forms protected from XSS attacks (FOPAXSS)
Categories : PHP, PHP Classes, Form Processing, Security
Remote Archive (Zip, Tar, Gzip) downloader with FTP and local extration support
Categories : PHP, FTP, Filesystem, PHP Classes, Compression
DbObject - A PHP wrapper for working with various databases
Categories : Databases, PHP, PHP Classes
Authorize.net AIM Interface Class v1.0.0
Categories : PHP, PHP Classes, Ecommerce, Payment Gateways
Browser Detecor Class
Categories : PHP Classes, PHP, HTML
filesplit : Split big text files in multiple small ones
Categories : PHP, Log Files, Filesystem, PHP Classes
A File Browser Class.To Read Drives,Directories and Files .Files writing is also possible
Categories : PHP, PHP Classes, Filesystem