Advertisement
Guest User

Untitled

a guest
Jan 17th, 2012
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.64 KB | None | 0 0
  1. <?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. /**
  3. * Name:  Ion Auth Config
  4. *
  5. * Author: Ben Edmunds
  6. *     ben.edmunds@gmail.com
  7. *         @benedmunds
  8. *          
  9. * Added Awesomeness: Phil Sturgeon
  10. *
  11. * Location: http://github.com/benedmunds/CodeIgniter-Ion-Auth/
  12. *          
  13. * Created:  10.01.2009
  14. *
  15. * Description:  Modified auth system based on redux_auth with extensive customization.  This is basically what Redux Auth 2 should be.
  16. * Original Author name has been kept but that does not mean that the method has not been modified.
  17. *
  18. */
  19.  
  20.     /**
  21.      * Tables.
  22.      **/
  23.     $config['tables']['groups']  = 'groups';
  24.     $config['tables']['users']   = 'users';
  25.     $config['tables']['meta']    = 'meta';
  26.    
  27.     /**
  28.      * Site Title, example.com
  29.      */
  30.     $config['site_title']          = "localhost";
  31.    
  32.     /**
  33.      * Admin Email, admin@example.com
  34.      */
  35.     $config['admin_email']         = "william.roberts@thebytes.net";
  36.    
  37.     /**
  38.      * Default group, use name
  39.      */
  40.     $config['default_group']       = 'members';
  41.    
  42.     /**
  43.      * Default administrators group, use name
  44.      */
  45.     $config['admin_group']         = 'admin';
  46.      
  47.     /**
  48.      * Meta table column you want to join WITH.
  49.      * Joins from users.id
  50.      **/
  51.     $config['join']                = 'user_id';
  52.    
  53.     /**
  54.      * Columns in your meta table,
  55.      * id not required.
  56.      **/
  57.     $config['columns']             = array('first_name', 'last_name');
  58.    
  59.     /**
  60.      * A database column which is used to
  61.      * login with.
  62.      **/
  63.     $config['identity']            = 'email';
  64.          
  65.     /**
  66.      * Minimum Required Length of Password
  67.      **/
  68.     $config['min_password_length'] = 8;
  69.    
  70.     /**
  71.      * Maximum Allowed Length of Password
  72.      **/
  73.     $config['max_password_length'] = 20;
  74.  
  75.     /**
  76.      * Email Activation for registration
  77.      **/
  78.     $config['email_activation']    = false;
  79.    
  80.     /**
  81.      * Allow users to be remembered and enable auto-login
  82.      **/
  83.     $config['remember_users']      = true;
  84.    
  85.     /**
  86.      * How long to remember the user (seconds)
  87.      **/
  88.     $config['user_expire']         = 86500;
  89.    
  90.     /**
  91.      * Extend the users cookies everytime they auto-login
  92.      **/
  93.     $config['user_extend_on_login'] = true;
  94.    
  95.     /**
  96.      * Type of email to send (HTML or text)
  97.      * Default : html
  98.      **/
  99.     $config['email_type'] = 'html';
  100.    
  101.     /**
  102.      * Folder where email templates are stored.
  103.      * Default : auth/
  104.      **/
  105.     $config['email_templates']     = 'auth/email/';
  106.    
  107.     /**
  108.      * activate Account Email Template
  109.      * Default : activate.tpl.php
  110.      **/
  111.     $config['email_activate']   = 'activate.tpl.php';
  112.    
  113.     /**
  114.      * Forgot Password Email Template
  115.      * Default : forgot_password.tpl.php
  116.      **/
  117.     $config['email_forgot_password']   = 'forgot_password.tpl.php';
  118.  
  119.     /**
  120.      * Forgot Password Complete Email Template
  121.      * Default : new_password.tpl.php
  122.      **/
  123.     $config['email_forgot_password_complete']   = 'new_password.tpl.php';
  124.    
  125.     /**
  126.      * Salt Length
  127.      * Salt length needs to be at least as long
  128.      * as the minimum password length.
  129.      **/
  130.     $config['salt_length'] = 10;
  131.  
  132.     /**
  133.      * Should the salt be stored in the database?
  134.      * This will change your password encryption algorithm,
  135.      * default password, 'password', changes to
  136.      * fbaa5e216d163a02ae630ab1a43372635dd374c0 with default salt.
  137.      **/
  138.     $config['store_salt'] = false;
  139.    
  140.     /**
  141.      * Message Start Delimiter
  142.      **/
  143.     $config['message_start_delimiter'] = '<p>';
  144.    
  145.     /**
  146.      * Message End Delimiter
  147.      **/
  148.     $config['message_end_delimiter'] = '</p>';
  149.    
  150.     /**
  151.      * Error Start Delimiter
  152.      **/
  153.     $config['error_start_delimiter'] = '<p>';
  154.    
  155.     /**
  156.      * Error End Delimiter
  157.      **/
  158.     $config['error_end_delimiter'] = '</p>';
  159.    
  160. /* End of file ion_auth.php */
  161. /* Location: ./system/application/config/ion_auth.php */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement