Browse Source

Merge pull request #77 from scombat/configuration

Update config file for readability and comprehension
develop
Emre Akay 10 years ago
parent
commit
c8a144e6c2
  1. 203
      application/config/aauth.php

203
application/config/aauth.php

@ -1,85 +1,124 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); <?php
defined('BASEPATH') OR exit('No direct script access allowed');
/* /*
| ------------------------------------------------------------------- | -------------------------------------------------------------------
| Aauth Config | Aauth Config
| ------------------------------------------------------------------- | -------------------------------------------------------------------
| A library Basic Authorization for CodeIgniter 2.x | A library Basic Authorization for CodeIgniter 2+
*/ |
| -------------------------------------------------------------------
| EXPLANATION
// Config variables | -------------------------------------------------------------------
|
// if user don't have permisssion to see the page he will be | See http://codeigniter-aauth-test.readthedocs.org/en/latest/
// redirected the page spesificed below | for more details and explainations
$config['aauth']['no_permission'] = FALSE; |
//name of admin group |
$config['aauth']['admin_group'] = 'admin'; | ['no_permission'] If user don't have permisssion to see the page he will be redirected the page spesificed.
//name of default group, the new user is added in it |
$config['aauth']['default_group'] = 'default'; | ['admin_group'] Name of admin group
// public group , people who not logged in | ['default_group'] Name of default group, the new user is added in it
$config['aauth']['public_group'] = 'public'; | ['public_group'] Public group , people who not logged in
// The table which contains users |
$config['aauth']['db_profile'] = 'default'; | ['db_profile'] The configuration database profile (see config/database.php)
|
$config['aauth']['users'] = 'aauth_users'; | ['users'] The table which contains users
// the group table | ['groups'] The table which contains groups
$config['aauth']['groups'] = 'aauth_groups'; | ['user_to_group'] The table which contains join of users and groups
// | ['perms'] The table which contains permissions
$config['aauth']['user_to_group'] = 'aauth_user_to_group'; | ['perm_to_group'] The table which contains permissions for groups
// permitions | ['perm_to_user'] The table which contains permissions for users
$config['aauth']['perms'] = 'aauth_perms'; | ['pms'] The table which contains private messages
// perms to group | ['system_variables'] The table which contains Aauth system variables
$config['aauth']['perm_to_group'] = 'aauth_perm_to_group'; | ['user_variables'] The table which contains users variables
// perms to group |
$config['aauth']['perm_to_user'] = 'aauth_perm_to_user'; | ['remember'] Remember time elapsed after connecting and automatic LogOut
// pm table |
$config['aauth']['pms'] = 'aauth_pms'; | ['max'] Maximum char long for Password
// system variables | ['min'] Minimum char long for Password
$config['aauth']['system_variables'] = 'aauth_system_variables'; |
// user variables | ['valid_chars'] Valid chars for username. Non alphanumeric characters that are allowed by default
$config['aauth']['user_variables'] = 'aauth_user_variables'; |
| ['ddos_protection'] If it is true, the user will be banned temporary when he exceed the login 'try'
// remember time |
$config['aauth']['remember'] = ' +3 days'; | ['recaptcha_active'] Enable reCAPTCHA (see www.google.com/recaptcha/admin)
| ['recaptcha_login_attempts'] :
// pasword maximum char long | ['recaptcha_siteKey'] The reCAPTCHA siteKey
$config['aauth']['max'] = 13; | ['recaptcha_secret'] The reCAPTCHA secretKey
// pasword minimum char long |
$config['aauth']['min'] = 5; | ['totp_active'] The Time-based One-time Password Algorithm
| ['totp_only_on_ip_change'] TOTP only on IP Change
// non alphanumeric characters that are allowed in a name | ['totp_reset_over_reset_password'] TOTP reset over reset Password
$config['aauth']['valid_chars'] = array(); |
| ['max_login_attempt'] Login attempts time interval (default 20 times in one hour)
// ddos protection, |
//if it is true, the user will be banned temporary when he exceed the login 'try' | ['login_with_name'] Login Identificator, if TRUE username needed to login else email address.
$config['aauth']['ddos_protection'] = true; |
| ['use_cookies'] FALSE only on CI3
$config['aauth']['recaptcha_active'] = false; |
$config['aauth']['recaptcha_login_attempts'] = 4; | ['email'] Sender email address, used for remind_password, send_verification and reset_password
$config['aauth']['recaptcha_siteKey'] = ''; | ['name'] Sender name, used for remind_password, send_verification and reset_password
$config['aauth']['recaptcha_secret'] = ''; |
| ['verification'] User Verification, if TRUE sends a verification email on account creation.
$config['aauth']['totp_active'] = false; | ['verification_link'] Link for verification without site_url or base_url
$config['aauth']['totp_only_on_ip_change'] = false; | ['reset_password_link'] Link for reset_password without site_url or base_url
$config['aauth']['totp_reset_over_reset_password'] = false; |
// login attempts time interval */
// default 20 times in one hour $config_aauth = array();
$config['aauth']['max_login_attempt'] = 10;
$config_aauth["default"] = array(
// to register email verifitaion need? true / false ['no_permission'] = FALSE,
$config['aauth']['verification'] = false;
['admin_group'] = 'admin',
$config['aauth']['login_with_name'] = false; ['default_group'] = 'default',
$config['aauth']['use_cookies'] = true; // FALSE only on CI3 ['public_group'] = 'public',
// system email. ['db_profile'] = 'default',
$config['aauth']['email'] = 'admin@admin.com';
$config['aauth']['name'] = 'Emre Akay'; ['users'] = 'aauth_users',
['groups'] = 'aauth_groups',
// Link for verification without site_url or base_url ['user_to_group'] = 'aauth_user_to_group',
$config['aauth']['verification_link'] = '/account/verification/'; ['perms'] = 'aauth_perms',
// Link for reset_password without site_url or base_url ['perm_to_group'] = 'aauth_perm_to_group',
$config['aauth']['reset_password_link'] = '/account/reset_password/'; ['perm_to_user'] = 'aauth_perm_to_user',
['pms'] = 'aauth_pms',
['system_variables'] = 'aauth_system_variables',
['user_variables'] = 'aauth_user_variables',
['remember'] = ' +3 days',
['max'] = 13,
['min'] = 5,
['valid_chars'] = array(),
['ddos_protection'] = true,
['recaptcha_active'] = false,
['recaptcha_login_attempts'] = 4,
['recaptcha_siteKey'] = '',
['recaptcha_secret'] = '',
['totp_active'] = false,
['totp_only_on_ip_change'] = false,
['totp_reset_over_reset_password'] = false,
['max_login_attempt'] = 10,
['login_with_name'] = false,
['use_cookies'] = true,
['email'] = 'admin@admin.com',
['name'] = 'Emre Akay',
['verification'] = false,
['verification_link'] = '/account/verification/',
['reset_password_link'] = '/account/reset_password/'
);
$config['aauth'] = $config_aauth['default'];
/* End of file aauth.php */ /* End of file aauth.php */
/* Location: ./application/config/aauth.php */ /* Location: ./application/config/aauth.php */
Loading…
Cancel
Save