Subversion Repositories cheapmusic

Rev

Rev 25 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 25 Rev 26
Line 138... Line 138...
138
		<p class="summary">UserSocialLoginSystem is a readymade user login system that allows integrating user registration and login system with social account (Facebook, Google, and Twitter) in PHP web application within minutes.</p>
138
		<p class="summary">UserSocialLoginSystem is a readymade user login system that allows integrating user registration and login system with social account (Facebook, Google, and Twitter) in PHP web application within minutes.</p>
139
	</div>
139
	</div>
140
	<div class="container">
140
	<div class="container">
141
		<h2>Files Structure</h2>
141
		<h2>Files Structure</h2>
142
<pre style="background:#f9f9f9;color:#080808">php_login_system<span style="color:#794938">/</span>
142
<pre style="background:#f9f9f9;color:#080808">php_login_system<span style="color:#794938">/</span>
143
├── index.php
143
├── login.php
144
├── registration.php
144
├── registration.php
145
├── account.php
145
├── account.php
146
├── edit-account.php
146
├── editAccount.php
147
├── settings.php
147
├── resetPassword.php
148
├── forgotPassword.php
148
├── forgotPassword.php
149
├── resetPassword.php
149
├── resetPassword.php
150
├── userAccount.php
150
├── userAccount.php
151
├── includes<span style="color:#794938">/</span>
151
├── includes<span style="color:#794938">/</span>
152
│   ├── PHPMailer<span style="color:#794938">/</span>
152
│   ├── PHPMailer<span style="color:#794938">/</span>
Line 170... Line 170...
170
</pre>
170
</pre>
171
</div>
171
</div>
172
	<div class="container terms">		
172
	<div class="container terms">		
173
		<h2>Files Details & Functionality</h2>
173
		<h2>Files Details & Functionality</h2>
174
		<ol>
174
		<ol>
175
            <li><p><strong>index.php</strong></p>
175
            <li><p><strong>login.php</strong></p>
176
				<p>Initially index.php file is loaded with login form and registration page link.</p>
176
				<p>Initially login.php file is loaded with login form and registration page link.</p>
177
			</li>
177
			</li>
178
            <li><p><strong>registration.php</strong></p>
178
            <li><p><strong>registration.php</strong></p>
179
				<p>This file contains registration form HTML and the form is submitted to the userAccount.php file with a signup request.</p>
179
				<p>This file contains registration form HTML and the form is submitted to the userAccount.php file with a signup request.</p>
180
			</li>
180
			</li>
181
            <li><p><strong>account.php</strong></p>
181
            <li><p><strong>account.php</strong></p>
182
				<p>After login, the user ID is available in session and the respective user details are shown using the User class. Also, a logout link will appear if the user already logged in.</p>
182
				<p>After login, the user ID is available in session and the respective user details are shown using the User class. Also, a logout link will appear if the user already logged in.</p>
183
			</li>
183
			</li>
184
			<li><p><strong>edit-account.php</strong></p>
184
			<li><p><strong>editAccount.php</strong></p>
185
				<p>This file is used to update the user profile information. On form submit, the update request is submitted to the userAccount.php file.</p>
185
				<p>This file is used to update the user profile information. On form submit, the update request is submitted to the userAccount.php file.</p>
186
			</li>
186
			</li>
187
			<li><p><strong>settings.php</strong></p>
187
			<li><p><strong>changePassword.php</strong></p>
188
				<p>This file is used to update the login password. On form submit, the password update request is submitted to the userAccount.php file.</p>
188
				<p>This file is used to update the login password. On form submit, the password update request is submitted to the userAccount.php file.</p>
189
			</li>
189
			</li>
190
            <li><p><strong>forgotPassword.php</strong></p>
190
            <li><p><strong>forgotPassword.php</strong></p>
191
				<p>This file is loaded when user forgot their account password. On form submit, the reset password request is submitted to the userAccount.php file.</p>
191
				<p>This file is loaded when user forgot their account password. On form submit, the reset password request is submitted to the userAccount.php file.</p>
192
			</li>
192
			</li>
193
            <li><p><strong>resetPassword.php</strong></p>
193
            <li><p><strong>resetPassword.php</strong></p>
194
				<p>This file is used to reset the new password. On form submit, the new password update request is submitted to the userAccount.php file.</p>
194
				<p>This file is used to reset the new password. On form submit, the new password update request is submitted to the userAccount.php file.</p>
195
			</li>
195
			</li>
196
            <li><p><strong>userAccount.php</strong></p>
196
            <li><p><strong>userAccount.php</strong></p>
197
				<p>This file controls the registration, login, logout, forgot & reset password, email verification, profile update and password update request. These requests are comes from index.php, registration.php, profile.php, settings.php, forgotPassword.php, and resetPassword.php. The User Class is used to get, insert, and update user details to the users table. Also, PHP Sessions are used to hold the login status of the user.</p>
197
				<p>This file controls the registration, login, logout, forgot & reset password, email verification, profile update and password update request. These requests are comes from login.php, registration.php, profile.php, changePassword.php, forgotPassword.php, and resetPassword.php. The User Class is used to get, insert, and update user details to the users table. Also, PHP Sessions are used to hold the login status of the user.</p>
198
			</li>
198
			</li>
199
            <li><p><strong>includes/</p></strong>
199
            <li><p><strong>includes/</p></strong>
200
				<p>All the helper files which are used by the main files are stored here.</p>
200
				<p>All the helper files which are used by the main files are stored here.</p>
201
                <ol>
201
                <ol>
202
					<li><p><strong>includes/PHPMailer/</p></strong>
202
					<li><p><strong>includes/PHPMailer/</p></strong>