• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Online Users library usign DB + Authme

#1
Hello,

I created Online users library using database to store online users data. I integrated it with a developed version from CodeIgniter Authme by Gilbitron.

What's new in Authme:
1. Send activation message to new members.
2. Adding captcha image to the signup page.
3. Adding Users Controller to show members list and member page.
4. Adding control panel for the member to change his info and password.
5. Compatible with CI 3.0.x
6. Compatible with PHP7x.

Online users library features:
1. Using minimal database queries. It will not update user state and location on each page load.
2. You can specify time difference between your time and the server time.
3. You can specify time-out.
4. Store user-agent in the database.
5. Store if the guest is bot or not.

How to install
1. Add the ci folder content to your CI directory (overwrite).

2. Give folder "captcha" 744 permission

3. Edit application/config/datebase.php and modify values.

4. Edit application/config/config.php and modify values don't forget to change the
$config['encryption_key']

5. Edit application/config/authme.php and change these values

Code:
$config['authme_name'] = 'YOUR_DOMAIN';
$config['authme_email'] = 'YOUR_DOMAIN_EMAIL';
$config['onlineusers_timeout'] = 1800;
$config['onlineusers_timeoffset'] = '+0';

Download & Demo at:
http://php-max.com/ci/

I welcome any feedback to improve the code.
Regards,
Reply

#2
I got questions asking about the SQL code for creating the tables.

The tables "online", and "users" will be created automatically when visiting your site at the first time,

If every thing is okay you will see:

"online" table created successfully
"users" table created successfully

Also you can make the tables manually, you will find the SQL code in the end of the file models/Authme_model.php
Reply

#3
(03-03-2016, 10:08 AM)moshair Wrote: 2. Give folder "captcha" 777 permission

Make the "captcha" folder writable for the webserver and NOT world readable, executable, etc...

Cheers  Wink
Reply

#4
Thank you.

(01-28-2017, 08:39 AM)Code4fun Wrote:
(03-03-2016, 10:08 AM)moshair Wrote: 2. Give folder "captcha" 777 permission

Make the "captcha" folder writable for the webserver and NOT world readable, executable, etc...

Cheers  Wink
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.