https://github.com/davidberriman/form_registration
This project is built on the fgmembersite form registration and improves security, scalability and UI
https://github.com/davidberriman/form_registration
Last synced: about 1 month ago
JSON representation
This project is built on the fgmembersite form registration and improves security, scalability and UI
- Host: GitHub
- URL: https://github.com/davidberriman/form_registration
- Owner: davidberriman
- License: mit
- Created: 2016-08-14T11:21:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-20T21:21:53.000Z (over 6 years ago)
- Last Synced: 2024-11-04T06:35:29.477Z (6 months ago)
- Language: PHP
- Size: 446 KB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-starred - davidberriman/form_registration - This project is built on the fgmembersite form registration and improves security, scalability and UI (others)
README
## Improved Registration Form / Process
Author: David Berriman
This project is by David Berriman and is an improvement on the registration form found at: http://www.html-form-guide.com
which is also available at Github: https://github.com/simfatic/RegistrationFormThis program is distributed in the hope that it will
be useful - WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.The above example had some security issues so this project adds the following:
- Improved security : uses prepared sql statements, password hashing, protection against cross site request forgery, cross site scripting, SQL injection and brute force attacks.
- Improved object oriented design
- Structure improved to MVC architecture
- Basic bootstrap styling
- Utalizes other libraries: JQuery & Bootstrap for error reporting / browser validation
- Error table - logs errors for reporting
- User can delete their account## Installation
The tables generated byt the SQL have been moved to a file which needs running before
the project will operate. The previous project would check the table existed on every
registration which is unnecessary processing. The file to run is: include/sql.txt.Once the database has been set up you need to edit the initialize.php file which holds
info such as admin emails, webste name, database login details etc.*** The code below has been left from the original project but the 'Installation' section doesn't apply ***
# Simple Registration/Login code in PHP
Read more:[PHP registration form](http://www.html-form-guide.com/php-form/php-registration-form.html) [PHP login form](http://www.html-form-guide.com/php-form/php-login-form.html)
## Installation
1. Edit the file `membersite_config.php` in the includes folder and update the configuration information (like your email address, Database login etc)
**Note**
The script will create the table in the database when you submit the registration form the first time.2. Upload the entire 'source' folder to your web site.
3. You can customize the forms and scripts as required.## Files
* register.php
This script displays the registration form. When the user submits the form,
the script sends a confirmation email to the user. The registration is complete only when
the user clicks the confirmation link that they received in the email* confirmreg.php
Confirms a user's email address. The user clicks the confirmation link that they receive at their email address and is send to this script. This script verifies the user and marks the user as confirmed. The user can login only after he has confirmed himself.
* login.php
The user can login through this login page. After successful login, the user is sent to the page login-home.php
* access-controlled.phpThis is a sample accesscontrolled page. If the user is logged in, he can view this page. Else the user is
sent to login.php
* includes/membersite_config.php
Update your confirguration information in this file
* includes/fg_membersite.phpThis file contains the main class that controls all the operations (validations, database updation, emailing etc)
If you want to edit the email message or make changes to the logic, edit this file
* includes/class.phpmailer.phpThis script uses PHPMailer to send emails. See:http://sourceforge.net/projects/phpmailer/
* includes/formvalidator.phpFor form validations on the server side, the PHP form validator from HTML form guide is used See: [PHP form validation] (http://www.html-form-guide.com/php-form/php-form-validation.html)
## License
This program is free software published under the terms of the GNU [Lesser General Public License](http://www.gnu.org/copyleft/lesser.html).
You can freely use it on commercial or non-commercial websites.