Basic Login is a basic PHP login script that can be downloaded used and modified under the general user public license provisions. This is not a PHP login script for a government institution or fortune 500 company as it uses standard encryption and cookie based user identification that a determined hacker might exploit. It is, however, perfect for a standard website that would benefit from a basic PHP to MySQL login script that is easy to deploy and uses standard methods of restricting access and granting permissions.
After writing countless PHP login scripts using various combinations of standard components tailored to the needs of the sites for which they were designed, I finally compiled the elements that I use most frequently into a basic
application that can be easily uploaded and deployed on any PHP project. While there are no grand inventions happening here, Basic Login should do what you need it to do right out of the gate. Features, functions and components are as follows:
Latest updates / bug fixes: 02/04/2010
Basic Login Setup
Protect your pages: Recent Updates: 02/04/10: Updated traffic.php with pagination for those who want to use it. Requires the following table: CREATE TABLE `traffic` ( Then put something like this on pages you want to track: <? //Query Block Tracking: WHERE '$ip' != '69.254.101.167' $query = "INSERT INTO `traffic` (`date`,`ip`,`link`,`notes`,`site`,`type`,`page`) To track links put something like this in front of the link you want to track: linktick.php?site=some_sitet&link= So a tracked link would look like this <a href="linktick.php?site=basiclogint&link=http://www.basiclogin.com">Tracked Link</a> 02/04/10: Fixed permission issue in sample_page.php that may have confused some people when they set up their first test account. It had somehow gotten changed to permission level 5 so all test accounts would have bounced back to the login page. 12/18/09: Thanks to Richard who pointed out a problem with the most recent zip file on some computers due to a freeware zip program that I was using so that I didn't have to pay the $29 to WinZip to renew my licence. Anyway, I went back and paid and recompiled the files so we should be back in business. 12/10/09: A user named Jeehan pointed out that the system doesn't stop someone from entering a blank username. A simple fix has been added to the download version, or if you simply want to replace the two affected files, here is the code 09/16/09: Basic Login PHP is listed on hotscripts.com, cnet.com, Scripts.com™ - Get the best scripts NOW! and other coding repositories. 09/15/09: Stupid mistake detected. Anyone who downloaded Basic Login in the last two days would have a version with the wrong login.php file. The problem has been fixed. I encourage you to re-download or copy the source code from this page if you have not already created your own login.php file. Sorry for the error! Thanks to Jeehan for bringing to our attention. 09/14/09: With Basic Login PHP, it is now easy to build in conditional content or events that are based on a particular users permission level. Just use a simple if then statement like this: if($conditional_content_permissions>2) Just set the number to the right permission level. 09/10/2009: Addition of user edit screens that allow for changes to user information and permission levels. Also allows for user delete. Linked to admin_index.php Send Questions, Comments or Suggestions to info@basiclogin.com
|