Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
skunkbad committed Oct 17, 2014
0 parents commit 5d0ad44
Show file tree
Hide file tree
Showing 523 changed files with 106,693 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# MAKE SURE TO LEAVE THE NEXT TWO LINES HERE.
# BEGIN DENY LIST --
# END DENY LIST --

Options -Indexes

RewriteEngine On
RewriteBase /

# Remove WWW
#RewriteCond %{HTTP_HOST} !^your-domain\.com$ [NC]
#RewriteCond %{HTTPS} !=on
#RewriteRule ^(.*)$ http://your-domain.com/$1 [L,R=301]

RewriteRule ^(system|application|cgi-bin) - [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# NORMAL SERVER ( COMMENT OUT IF GODADDY )
RewriteRule .* index.php/$0 [PT,L]

# SPECIAL GODADDY LINE ( UNCOMMENT IF GODADDY )
#RewriteRule ^(.*)$ /index.php?/$1 [L]
1 change: 1 addition & 0 deletions application/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Deny from all
1 change: 1 addition & 0 deletions application/cache/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
deny from all
10 changes: 10 additions & 0 deletions application/cache/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>

<p>Directory access is forbidden.</p>

</body>
</html>
262 changes: 262 additions & 0 deletions application/config/authentication.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,262 @@
<?php if( ! defined('BASEPATH') ) exit('No direct script access allowed');
/**
* Community Auth - Authentication Config
*
* Community Auth is an open source authentication application for CodeIgniter 2.2.0
*
* @package Community Auth
* @author Robert B Gottier
* @copyright Copyright (c) 2011 - 2014, Robert B Gottier. (http://brianswebdesign.com/)
* @license BSD - http://www.opensource.org/licenses/BSD-3-Clause
* @link http://community-auth.com
*/

/*
| -----------------------------------------------------------------
| DISABLE INSTALLER
| -----------------------------------------------------------------
| If set to TRUE, the init controller is disabled.
| If set to FALSE, the init controller is enabled, and you will
| be able to populate the database, create an admin, and create
| test users.
|
*/

$config['disable_installer'] = TRUE;

/*
| -----------------------------------------------------------------
| LEVELS AND ROLES
| -----------------------------------------------------------------
| This definition sets the levels and roles that will be used for authentication.
|
| Admin should remain being called "admin", but the key may be changed.
| Keep in mind that if you change the number to higher than 9, then the
| user_level field of the users table will need to be adjusted.
|
| No user level should ever be set with a key of 0.
|
*/

$config['levels_and_roles'] = array(
'1' => 'customer',
'6' => 'manager',
'9' => 'admin'
);

/*
| -----------------------------------------------------------------
| GROUPS
| -----------------------------------------------------------------
| This definition sets the groups of roles that will be used for authentication.
|
*/

$config['groups'] = array(
'employees' => 'manager,admin'
);

/*
| -----------------------------------------------------------------
| MAX_ALLOWED_ATTEMPTS
| -----------------------------------------------------------------
| This definition sets the maximum amount of failed login attempts
| or failed password recovery attempts before the IP or username is
| placed on hold.
|
*/

$config['max_allowed_attempts'] = 5;

/*
| -----------------------------------------------------------------
| DENY_ACCESS
| -----------------------------------------------------------------
| If for some reason login attempts exceed the max_login_attempts
| value, then when they reach the number held in this definition,
| their IP address is added to the deny list in the local Apache
| configuration file.
|
| SET TO ZERO TO DISABLE THIS FUNCTIONALITY
|
*/

$config['deny_access'] = 10;

/*
| -----------------------------------------------------------------
| DENIED ACCESS REASON
| -----------------------------------------------------------------
| The reasons why an IP address may be in the deny list
|
*/

$config['denied_access_reason'] = array(
'0' => 'Not Specified',
'1' => 'Login Attempts',
'2' => 'Malicious User',
'3' => 'Hacking Attempt',
'4' => 'Spam',
'5' => 'Obscene Language',
'6' => 'Threatening Language'
);

/*
| -----------------------------------------------------------------
| APACHE CONFIG FILE LOCATION
| -----------------------------------------------------------------
| The location, including filename, or your Apache config file.
|
*/

$config['apache_config_file_location'] = FCPATH . '.htaccess';

/*
| -----------------------------------------------------------------
| SECONDS_ON_HOLD
| -----------------------------------------------------------------
| This definition sets the amount of time an IP or username is on
| hold if the maximum amount of failed login attempts or failed
| password recovery attempts is reached.
|
| 600 seconds is 10 minutes
|
*/

$config['seconds_on_hold'] = 600;

/*
| -----------------------------------------------------------------
| DISALLOW_MULTIPLE_LOGINS
| -----------------------------------------------------------------
| This setting attempts to either allow or disallow an account to be
| logged in by the same user on more than one device, or with more
| than one browser on the same device.
|
*/

$config['disallow_multiple_logins'] = TRUE;

/*
| -----------------------------------------------------------------
| ALLOW REMEMBER ME
| -----------------------------------------------------------------
| This setting allows you to turn on and off the ability to have
| a persistant login where users may choose to stay logged in
| even after the browser has closed.
|
*/

$config['allow_remember_me'] = FALSE;

/*
| -----------------------------------------------------------------
| REMEMBER ME COOKIE NAME
| -----------------------------------------------------------------
| This setting allows you to choose the name of the remember me cookie.
| Remember that Internet Explorer doesn't like underscores.
|
*/

$config['remember_me_cookie_name'] = 'rememberMe';

/*
| -----------------------------------------------------------------
| REMEMBER ME EXPIRATION
| -----------------------------------------------------------------
| How long (in seconds) the remember me funcationality allows the session to last.
|
*/

$config['remember_me_expiration'] = 93062220;

/*
| -----------------------------------------------------------------
| HTTP USER COOKIE NAME
| -----------------------------------------------------------------
| This setting allows you to choose the name of the http user cookie.
| While the authentication cookie is handled in the session, the
| http user cookie allows for the user data to be stored so that
| the user is semi-identifiable, or for other general purpose use
| related to the logged in user. DO NOT USE FOR AUTHENTICATION!
|
*/

$config['http_user_cookie_name'] = 'httpUser';

/*
| -----------------------------------------------------------------
| TOKEN COOKIES CONFIG
| -----------------------------------------------------------------
| This setting allows you to choose the name of the http token cookie,
| and also the name of the https token cookie.
|
| The token jar size is the amount of tokens that can be held in each cookie.
|
| The token name is the name of the form element holding the token value.
|
*/

$config['http_tokens_cookie'] = 'httpTokens';
$config['https_tokens_cookie'] = 'httpsTokens';
$config['token_jar_size'] = 32;
$config['token_name'] = 'token';

/*
| -----------------------------------------------------------------
| SELECTED PROFILE COLUMNS
| -----------------------------------------------------------------
| An array of profile data to select when logging in or checking login.
| Anything in this array should exist in all user profile tables.
| The data is made available in the HTTP user cookie, in views, and in
| config items. Leave the array empty if you don't want to select any
| of the logged in user's profile data.
|
*/

$config['selected_profile_columns'] = array(
'first_name',
'last_name'
);

/*
| -----------------------------------------------------------------
| RECOVERY CODE EXPIRATION
| -----------------------------------------------------------------
| How long (in seconds) the password recovery code is good for.
| The default is two hours.
|
*/

$config['recovery_code_expiration'] = 60 * 60 * 2;

/*
| -----------------------------------------------------------------
| DELETE SESSION COOKIE ON LOGOUT
| -----------------------------------------------------------------
| When the user logs out, their session cookie can either have
| the userdata unset, or you can choose to have the cookie completely
| deleted. Set to FALSE to keep the cookie, TRUE to delete it.
| By default, CodeIgniter just deletes the userdata, so set to
| FALSE if you want to maintain this behavior.
|
| Note: unless you set 'show_login_form_on_logout' to FALSE,
| the session cookie is immediately re-created.
*/

$config['delete_session_cookie_on_logout'] = FALSE;

/*
| -----------------------------------------------------------------
| SHOW LOGIN FORM ON LOGOUT
| -----------------------------------------------------------------
| When the user logs out, they can be presented with a login form
| on the logout page, or else just show the logout confirmation page.
| The default (TRUE) is to show the login form.
*/

$config['show_login_form_on_logout'] = TRUE;


/* End of file authentication.php */
/* Location: /application/config/authentication.php */
66 changes: 66 additions & 0 deletions application/config/auto_populate/example.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?php if( ! defined('BASEPATH') ) exit('No direct script access allowed');
/**
* Community Auth - Example Config for Auto Population of Form Selects
*
* Community Auth is an open source authentication application for CodeIgniter 2.2.0
*
* @package Community Auth
* @author Robert B Gottier
* @copyright Copyright (c) 2011 - 2014, Robert B Gottier. (http://brianswebdesign.com/)
* @license BSD - http://www.opensource.org/licenses/BSD-3-Clause
* @link http://community-auth.com
*/

$config['example'] = array(

/**
* Levels array has database table columns that become the visible text in the options.
*/
'levels' => array(
'type',
'make',
'model',
'color'
),

/**
* Keys are the database column names that become the values of the options.
* If left empty, the options will have a value that is the same as the visible text.
* You only need to start keys at the second level. So for instance, if the vehicle
* make had an ID, and you wanted to use that as the dropdown option value,
* you would put the name of the ID field as the first array element.
* See array elements that are commented out.
*/
'keys' => array(
//'make_id',
//'model_id',
//'color_id'
),

/**
* Methods are the methods in the model that apply for levels 2 and up.
* The specific model is not currently a config option, so these methods
* are found in the auto_populate_model.php.
*/
'methods' => array(
'get_makes_in_type',
'get_models_in_make',
'get_colors_in_model'
),

/**
* These are the default values of the dropdown options.
*/
'defaults' => array(
// Default option for second dropdown when first is ready
'-- Select Type --',
// Default option for third dropdown when second is ready
'-- Select Make --',
// Default option for fourth dropdown when third is ready
'-- Select Model --'
)

);

/* End of file example.php */
/* Location: /application/config/auto_populate/example.php */
Loading

0 comments on commit 5d0ad44

Please sign in to comment.