123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <?php
- /**
- * Fuel is a fast, lightweight, community driven PHP5 framework.
- *
- * @package Fuel
- * @version 1.5
- * @author Fuel Development Team
- * @license MIT License
- * @copyright 2010 - 2013 Fuel Development Team
- * @link http://fuelphp.com
- */
- /**
- * NOTICE:
- *
- * If you need to make modifications to the default configuration, copy
- * this file to your app/config folder, and make them in there.
- *
- * This will allow you to upgrade fuel without losing your custom config.
- */
- return array(
- /**
- * DB connection, leave null to use default
- */
- 'db_connection' => null,
- /**
- * DB table name for the user table
- */
- 'table_name' => 'users',
- /**
- * Choose which columns are selected, must include: username, password, email, last_login,
- * login_hash, group & profile_fields
- */
- 'table_columns' => array('*'),
- /**
- * This will allow you to use the group & acl driver for non-logged in users
- */
- 'guest_login' => true,
- /**
- * Groups as id => array(name => <string>, roles => <array>)
- */
- 'groups' => array(
- /**
- * Examples
- * ---
- *
- * -1 => array('name' => 'Banned', 'roles' => array('banned')),
- * 0 => array('name' => 'Guests', 'roles' => array()),
- * 1 => array('name' => 'Users', 'roles' => array('user')),
- * 50 => array('name' => 'Moderators', 'roles' => array('user', 'moderator')),
- * 100 => array('name' => 'Administrators', 'roles' => array('user', 'moderator', 'admin')),
- */
- ),
- /**
- * Roles as name => array(location => rights)
- */
- 'roles' => array(
- /**
- * Examples
- * ---
- *
- * Regular example with role "user" given create & read rights on "comments":
- * 'user' => array('comments' => array('create', 'read')),
- * And similar additional rights for moderators:
- * 'moderator' => array('comments' => array('update', 'delete')),
- *
- * Wildcard # role (auto assigned to all groups):
- * '#' => array('website' => array('read'))
- *
- * Global disallow by assigning false to a role:
- * 'banned' => false,
- *
- * Global allow by assigning true to a role (use with care!):
- * 'super' => true,
- */
- ),
- /**
- * Salt for the login hash
- */
- 'login_hash_salt' => 'put_some_salt_in_here',
- /**
- * $_POST key for login username
- */
- 'username_post_key' => 'username',
- /**
- * $_POST key for login password
- */
- 'password_post_key' => 'password',
- );
|