Premium Login

Authentication System


Thank you for purchasing my script. If you have any questions that are beyond the scope of this help file, please feel free to email via my user page contact form here. Thanks so much!

Watch the video & read the information bellow:

 

The archive contains three folders inlinemodal  and raw each containing a version of the script.

The raw version contains a css-free version of the script an can be styled as you wish.

 

You can chose the one that suits you most.

You can integrate this script with your website or you can build your website on it.

There`s also a raw version(no css at all) an you can work on that and style it however you want.

 

To integrate this script all you need to do is to include the init.php file from the config folder.

<?php require_once 'config/init.php'; ?>

After you verified that the user is logged you can get the user object like this:

$user = Session::Get('current_user');

And then you can access the user`s atributes:

$user->Get('username');
$user->Get('fullname');     

To get the user`s avatar all you have to do is:

$user->GetAvatar();     

Now you can do cool things using the functions that premium login has. Below is a simple example of how to display login and signup buttons and info after the user has logged in.

<?php
if(!Authentication::IsLogged()): ?>
<a href="auth/login.php">Log In</a>
<a href="auth/signup.php">Sign Up</a>
<?php else: $user = Session::Get('current_user');?>
<span><?php echo $user->Get('username') ?></span>
<a href="auth/logout.php"></a>
<?php endif;?>

Premiumlogin uses 10 base clases:

  1. Authentication.php - is the most important class and has auth functions such as:
  1. Avatar.php manages avatar upload and cropping
  1. Config.php - loads config files and manages config settings
  1. Cookie.php - manages cookies
  1. Database.php - manages all interactions with the database(uses method chaining)
  1. Email.php - manages email sending
  1. Error.php - manages errors trown by other classes
  1. Session.php - manages sessions
  1. User.php
  1. Validate.php - manages all validation (uses method chaining)

This script uses the Foundation framework and is RESPONSIVE, also it makes use of dataTables jQuery and JCrop;

BUT, if you can`t integrate this script(BECAUSE OF FONDATION THEME) you ca always use the raw version and style is however it suits you best!

I've used the following libraries:


Once again, thank you so much for purchasing this script. As I said at the beginning, I'd be glad to help you if you have any questions relating to this script. No guarantees, but I'll do my best to assist. 

EdcoreWeb