This repository has been archived by the owner on Jul 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 524
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1111 from ci-bonfire/develop
Release 0.7.3
- Loading branch information
Showing
89 changed files
with
5,428 additions
and
4,839 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,38 @@ | ||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); | ||
<?php defined('BASEPATH') || exit('No direct script access allowed'); | ||
|
||
/** | ||
* Authenticated Controller | ||
* | ||
* Provides a base class for all controllers that must check user login | ||
* status. | ||
* Provides a base class for all controllers that must check user login status. | ||
* | ||
* @package Bonfire\Core\Controllers | ||
* @category Controllers | ||
* @author Bonfire Dev Team | ||
* @link http://guides.cibonfire.com/helpers/file_helpers.html | ||
* @package Bonfire\Core\Controllers\Authenticated_Controller | ||
* @category Controllers | ||
* @author Bonfire Dev Team | ||
* @link http://cibonfire.com/docs | ||
* | ||
*/ | ||
class Authenticated_Controller extends Base_Controller | ||
{ | ||
|
||
protected $require_authentication = true; | ||
protected $require_authentication = true; | ||
|
||
//-------------------------------------------------------------------------- | ||
|
||
//-------------------------------------------------------------------- | ||
/** | ||
* Class constructor setup login restriction and load various libraries | ||
* | ||
* @return void | ||
*/ | ||
public function __construct() | ||
{ | ||
$this->autoload['helpers'][] = 'form'; | ||
$this->autoload['libraries'][] = 'Template'; | ||
$this->autoload['libraries'][] = 'Assets'; | ||
$this->autoload['libraries'][] = 'form_validation'; | ||
|
||
/** | ||
* Class constructor setup login restriction and load various libraries | ||
* | ||
*/ | ||
public function __construct() | ||
{ | ||
$this->autoload['helpers'][] = 'form'; | ||
$this->autoload['libraries'][] = 'Template'; | ||
$this->autoload['libraries'][] = 'Assets'; | ||
$this->autoload['libraries'][] = 'form_validation'; | ||
|
||
parent::__construct(); | ||
|
||
$this->form_validation->set_error_delimiters('', ''); | ||
|
||
}//end construct() | ||
|
||
//-------------------------------------------------------------------- | ||
parent::__construct(); | ||
|
||
$this->form_validation->CI =& $this; | ||
$this->form_validation->set_error_delimiters('', ''); | ||
} | ||
} | ||
|
||
/* End of file Authenticated_Controller.php */ | ||
/* Location: ./application/core/Authenticated_Controller.php */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php defined('BASEPATH') || exit('No direct script access allowed'); | ||
/** | ||
* Bonfire | ||
* | ||
* An open source project to allow developers to jumpstart their development of | ||
* CodeIgniter applications | ||
* | ||
* @package Bonfire | ||
* @author Bonfire Dev Team | ||
* @copyright Copyright (c) 2011 - 2015, Bonfire Dev Team | ||
* @license http://opensource.org/licenses/MIT The MIT License | ||
* @link http://cibonfire.com | ||
* @since Version 1.0 | ||
*/ | ||
|
||
/** | ||
* Bonfire Form Validation language file (English) | ||
* | ||
* Localization strings used by Bonfire | ||
* | ||
* @package Bonfire\Application\Language\bf_form_validation | ||
* @author Bonfire Dev Team | ||
* @link http://cibonfire.com/docs/developer | ||
*/ | ||
|
||
$lang['form_validation_is_array'] = 'The {field} field must be an array.'; | ||
|
||
$lang['form_validation_bf_email'] = 'Email'; | ||
$lang['form_validation_bf_language'] = 'Language'; | ||
$lang['form_validation_bf_username'] = 'Username'; | ||
$lang['form_validation_bf_password'] = 'Password'; | ||
$lang['form_validation_bf_password_confirm'] = 'Password (again)'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.