<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1-alpha-2475" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
		>
	<channel>
		<title>Post Topic &#187; Tag: database - Recent Topics</title>
		<link>http://posttopic.com/tags/database</link>
		<description>Open For Discussion</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Sep 2010 10:14:49 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1-alpha-2475</generator>
				<atom:link href="http://posttopic.com/rss/tags/database/topics" rel="self" type="application/rss+xml" />

		<item>
			<title>Chad Smith on "PHP Login Script"</title>
			<link>http://posttopic.com/topic/php-login-script#post-8</link>
			<pubDate>Tue, 06 Jan 2009 20:23:08 +0000</pubDate>
			<dc:creator>Chad Smith</dc:creator>
			<guid isPermaLink="false">8@http://posttopic.com/</guid>
			<description><![CDATA[<p><strong>phpMyLogin</strong></p>
<p>Several sites I made required some kind of authentication using PHP, but since the sites were entirely custom coded - and needed to be to serve their purpose - I was unable to use a CMS just to have user registration and sign-ins.</p>
<p>The <a href="http://phpmylogin.com/download">enclosed code</a> is a PHP script I came up with to enable secure logins on any site it's dropped into. Some configuration is required, but as you will see, it's fast, secure, easy to set up, and most of all gets the job done.</p>
<p>This version uses MySQL to read and write user information. If you ask nicely, I might add the same functionality back into the initial SQLite version.</p>
<p><strong>Requirements</strong><br />
<pre><code>- PHP5+
- MySQL Database
- Apache
    - mod_rewrite enabled</code></pre>
<p>View the README file (it's in the zip) for instructions on installing and configuring the script for your site.</p>
<p><strong>Contents</strong></p>
<pre><code>example
    .htaccess - .htaccess file (place in root or add contents to your own)
    auth.php - example page that requires authentication
    change.php - example change/recover password page
    index.php - example index page
    login.css - example stylesheet (place in root or add to your own stylesheet)
    login.php - example login page
    manage.php - example change email page (requires authentication)
    signup.php - example registration page
root
    config.php - configuration file
    includes
        templates
            email
                activation.php - activation/welcome e-mail sent to new users
                change-password.php - change password e-mail sent to users
                html-dtd.php - valid xhtml 1.0 for html e-mails (can be modified
                to effect all emails)
                login-notification.php - user login notification sent to the site admin
                signup-notification.php - new user notification sent to the site admin
            forms
                change-email.php - the change e-mail form
                change-password.php - the new password form (used after e-mail link is
                clicked)
                login.php - the login form
                recover-password.php - the password recovery form
                signup.php - exactly what you think it is
    common.php - common functions, edit this code first
    db.functions.php - the database class, standalone at ezdb.org
    extend.php - set of plugin &#38; notification functions, edit this code second
    functions.php - the main functions for the login system
    plugin.functions.php - functions for action handling and plugins (borrowed from
    wordpress)
CHANGELOG - list of version changes
COPYING - license details
README - the thing you&#39;re reading</code></pre>
<p><strong>Features</strong></p>
<ul>
<li>Authentication using PHP and MySQL</li>
<li>Expiring nonces to deter spam and session hijacking</li>
<li>Salted passwords and sessions</li>
<li>Secured against SQL Injection</li>
<li>Built in change password, e-mail address, &#38; password recovery</li>
<li>Account activation &#38; user registration notification</li>
<li>User meta for profiles or additional data</li>
<li>Extendable using plugins</li>
<li>Easily integrates into other services</li>
<li>Easy to use templating system for customizing forms and e-mails</li>
<li>Valid XHTML 1.0 Strict</li>
</ul>
<p><code></code><br />
<strong><a href="http://phpmylogin.com/">Demo</a></strong></p>
<p><strong><a href="http://phpmylogin.com/download">Download</a></strong></p>
<p><strong><a href="http://phpmylogin.com/donate">Donate</a></strong></p>
<p><strong>Summary</strong></p>
<p>I initially wrote my own login script so I could fix all the bugs and security flaws of the scripts that already exist, and so there would be something that can easily be extended using plugins.</p>
<p>If you find any bugs or have any questions, let me know.  The next things I am working on for this include plugns for profiles and analytics, and OAuth and OpenID versions. The script as is provides a secure system of login, registration, and account management.
</p>]]></description>
					</item>

	</channel>
</rss>
