Skip to content
This repository was archived by the owner on Jul 14, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
da8acd1
Fixes and Translate Code Builder to Russian
nkondrashov Jan 29, 2015
6c479eb
Translate Activities
nkondrashov Jan 29, 2015
1256684
Fixes
nkondrashov Jan 29, 2015
c1545f0
Merge pull request #1093 from nkondrashov/master
mwhitneysdsu Jan 29, 2015
0b314d2
Revert "Fixes and Translate Code Builder to Russian"
mwhitneysdsu Jan 29, 2015
f67018f
Merge pull request #1094 from ci-bonfire/revert-1093-master
mwhitneysdsu Jan 29, 2015
3727369
Merge pull request #1102 from ci-bonfire/develop
mwhitneysdsu Apr 10, 2015
ce85f3c
Merge pull request #1111 from ci-bonfire/develop
mwhitneysdsu May 8, 2015
0c4a1ef
Merge pull request #1120 from ci-bonfire/develop
mwhitneysdsu Jun 8, 2015
de52257
Fix #1118: Error when password options are not selected in security s…
mwhitneysdsu Jun 10, 2015
c5304a0
Fix #1128 [Builder] Load string helper before using strip_slashes()
mwhitneysdsu Jun 29, 2015
68fc36d
Fix #1131 [Modules Library] modules_locations not loaded from applica…
mwhitneysdsu Jun 29, 2015
9e7be82
#1133 composer.json syntax fix/version
mwhitneysdsu Jul 1, 2015
57b57b2
Fix #1136 MySQL explain update fails on older versions
mwhitneysdsu Jul 2, 2015
67271e8
#1136 [Profiler] MySQL doesn't permit EXPLAIN DELETE before 5.6.3
mwhitneysdsu Jul 2, 2015
2f38206
Update paths in installation docs to reflect 0.6+ directories
mwhitneysdsu Jul 6, 2015
3c340aa
[Builder] note about routing on create_context page
mwhitneysdsu Jul 7, 2015
cc84a44
#1137 Remove extra closing paren
mwhitneysdsu Jul 8, 2015
0a26651
[Installer] fix error checking writable directories in Windows APPPATH
mwhitneysdsu Jul 9, 2015
e376482
[Contexts] Fix links when using $top_level_only parameter in render_m…
mwhitneysdsu Jul 13, 2015
52c64b3
CI upgraded to v2.2.3
mwhitneysdsu Jul 14, 2015
707a176
Prep for 0.7.5 release
mwhitneysdsu Jul 14, 2015
26e2724
Prep 0.7.6-dev
mwhitneysdsu Jul 14, 2015
6489bd5
Fix #1142 [Builder]: undefined property: Modulebuilder::$load
mwhitneysdsu Jul 20, 2015
3e47ff1
Fix #1144 [Emailer]: lang entries missing when sending mail from user…
mwhitneysdsu Jul 21, 2015
e03b9ee
Fix #1147 [Roles]: unique validation fails on existing role
mwhitneysdsu Jul 21, 2015
bcd90d9
Fix #1149: Blog Tutorial defined `$modified_field` without default value
mwhitneysdsu Jul 27, 2015
6a5d987
Fix #1151 [BF_Router] call to undefined method `_set_404override_cont…
mwhitneysdsu Aug 3, 2015
fcbd33d
Fix #1150: Changing Role name breaks permissions
mwhitneysdsu Aug 3, 2015
f8930a3
Prep for 0.7.6 Release
mwhitneysdsu Aug 5, 2015
031f347
Prep 0.7-dev branch for 0.7.7-dev
mwhitneysdsu Aug 5, 2015
67a3163
MY_*_helper files can now override BF_*_helper files
mwhitneysdsu Aug 6, 2015
9e68acd
Upgraded CI3 to 3.0.1
mwhitneysdsu Aug 7, 2015
15658fa
Updated CLI error templates from CI 3.0.1
mwhitneysdsu Aug 10, 2015
c61c784
Config updates for CI 3.0.1
mwhitneysdsu Aug 10, 2015
f54bdec
Fix #1153 "Undefined index: user_agent" Update MX_Loader
mwhitneysdsu Aug 11, 2015
6b69619
users/user_meta view PHP7 compatibility improvements
mwhitneysdsu Aug 18, 2015
92134f8
Merge pull request #1155 from dipu/controller-name-case-fix-in-codebu…
mwhitneysdsu Aug 19, 2015
c0c09fa
Upgraded CI2 to 2.2.4
mwhitneysdsu Aug 21, 2015
ad7cae7
0.7.7 prep for release
mwhitneysdsu Aug 21, 2015
45fe086
Update changelog.md
mwhitneysdsu Aug 21, 2015
3491d49
Update ci3.md
mwhitneysdsu Aug 21, 2015
d2d3409
Merge pull request #1157 from ci-bonfire/0.7.7
mwhitneysdsu Aug 21, 2015
61275f8
Prep for 0.7.8-dev
mwhitneysdsu Aug 21, 2015
42cf286
Update CI2 to 2.2.5
mwhitneysdsu Oct 8, 2015
4edaf21
Update CI3 support to 3.0.2
mwhitneysdsu Oct 8, 2015
6628b2f
Changes from #1164 submitted by @JbalTero
mwhitneysdsu Oct 16, 2015
5a9b2b9
Updated docs for #1164
mwhitneysdsu Oct 16, 2015
6472dab
Update CodeIgniter to 3.0.3 and 2.2.6
mwhitneysdsu Nov 10, 2015
987f8f2
Fix constants config (from CI PR)
mwhitneysdsu Jan 13, 2016
2530e45
Update changelog for 987f8f2f79be3989f49e77875e83e2a65c776511
mwhitneysdsu Jan 13, 2016
5f298cd
Fix #1209 incorrect error message when deactivating user(s)
mwhitneysdsu Jan 25, 2016
dfa8db2
Upgrade CI to 3.0.6, prep for final 0.7.x release
mwhitneysdsu May 17, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions application/config/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
* Bonfire
*
* An open source project to allow developers to jumpstart their development of
* CodeIgniter applications
* CodeIgniter applications.
*
* @package Bonfire
* @author Bonfire Dev Team
* @copyright Copyright (c) 2011 - 2014, 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
Expand All @@ -19,16 +19,15 @@
*/
$config['site.default_user_timezone'] = 'UM8';

//--------------------------------------------------------------------
//------------------------------------------------------------------------------
// Module Locations
//--------------------------------------------------------------------
// These paths are checked in the order listed whenever a module is
// attempting to be located, whether it's loading a library, helper,
// or routes file.
//------------------------------------------------------------------------------
// These paths are checked in the order listed when attempting to locate a module,
// whether loading a library, helper, or routes file.
//
$config['modules_locations'] = array(
realpath(APPPATH) . '/modules/' => '../../application/modules/',
realpath(APPPATH . '../bonfire') . '/modules/' => '../../bonfire/modules/',
realpath(BFPATH) . '/modules/' => '../../bonfire/modules/',
);

//------------------------------------------------------------------------------
Expand Down
21 changes: 8 additions & 13 deletions application/config/autoload.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') || exit('No direct script access allowed');
defined('BASEPATH') OR exit('No direct script access allowed');

/*
| -------------------------------------------------------------------
Expand Down Expand Up @@ -39,7 +39,6 @@
| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
|
*/

$autoload['packages'] = array(
realpath(APPPATH .'../bonfire'), // Bonfire Core
APPPATH . 'third_party', // App -specific 3rd-party libs.
Expand All @@ -49,8 +48,9 @@
| -------------------------------------------------------------------
| Auto-load Libraries
| -------------------------------------------------------------------
| These are the classes located in the system/libraries folder
| or in your application/libraries folder.
| These are the classes located in system/libraries/ or your
| application/libraries/ directory, with the addition of the
| 'database' library, which is somewhat of a special case.
|
| Prototype:
|
Expand All @@ -61,23 +61,22 @@
|
| $autoload['libraries'] = array('user_agent' => 'ua');
*/

$autoload['libraries'] = array('database');


/*
| -------------------------------------------------------------------
| Auto-load Drivers
| -------------------------------------------------------------------
| These classes are located in the system/libraries folder or in your
| application/libraries folder within their own subdirectory. They
| These classes are located in system/libraries/ or in your
| application/libraries/ directory, but are also placed inside their
| own subdirectory and they extend the CI_Driver_Library class. They
| offer multiple interchangeable driver options.
|
| Prototype:
|
| $autoload['drivers'] = array('cache');
*/

$autoload['drivers'] = array();

/*
Expand All @@ -88,7 +87,6 @@
|
| $autoload['helper'] = array('url', 'file');
*/

$autoload['helper'] = array('url', 'language');

/*
Expand All @@ -103,7 +101,6 @@
| config files. Otherwise, leave it blank.
|
*/

$autoload['config'] = array('application');

/*
Expand All @@ -118,7 +115,6 @@
| "codeigniter_lang.php" would be referenced as array('codeigniter');
|
*/

$autoload['language'] = array();

/*
Expand All @@ -127,12 +123,11 @@
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['model'] = array('model1', 'model2');
| $autoload['model'] = array('first_model', 'second_model');
|
| You can also supply an alternative model name to be assigned
| in the controller:
|
| $autoload['model'] = array('first_model' => 'first');
*/

$autoload['model'] = array();
49 changes: 31 additions & 18 deletions application/config/config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') || exit('No direct script access allowed');
defined('BASEPATH') OR exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -37,15 +37,16 @@
|--------------------------------------------------------------------------
|
| This item determines which server global should be used to retrieve the
| URI string. The default setting of 'AUTO' works for most servers.
| URI string. The default setting of 'REQUEST_URI' works for most servers.
| If your links do not seem to work, try one of the other delicious flavors:
|
| 'AUTO' Default - auto detects
| 'AUTO' auto detects
| 'CLI' or 'argv' Uses $_SERVER['argv'] (for php-cli only) // CI3
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
*/
$config['uri_protocol'] = 'AUTO';

Expand Down Expand Up @@ -192,8 +193,6 @@
| Error Logging Threshold
|--------------------------------------------------------------------------
|
| If you have enabled error logging, you can set an error threshold to
| determine what gets logged. Threshold options are:
| You can enable error logging by setting a threshold over zero. The
| threshold determines what gets logged. Threshold options are:
|
Expand All @@ -203,7 +202,7 @@
| 3 = Informational Messages
| 4 = All Messages
|
| You can also pass in a array with threshold levels to show individual error types
| You can also pass an array with threshold levels to show individual error types
|
| array(2) = Debug Messages, without Error Messages
|
Expand Down Expand Up @@ -272,7 +271,6 @@
*/
$config['error_views_path'] = '';


/*
|--------------------------------------------------------------------------
| Cache Directory Path
Expand All @@ -289,8 +287,15 @@
| Cache Include Query String (CI3)
|--------------------------------------------------------------------------
|
| Set this to TRUE if you want to use different cache files depending on the
| URL query string. Please be aware this might result in numerous cache files.
| Whether to take the URL query string into consideration when generating
| output cache files. Valid options are:
|
| FALSE = Disabled
| TRUE = Enabled, take all query parameters into account.
| Please be aware that this may result in numerous cache
| files generated for the same page over and over again.
| array('q') = Enabled, but only take into account the specified list
| of query parameters.
|
*/
$config['cache_query_string'] = false;
Expand All @@ -309,9 +314,9 @@
$config['encryption_key'] = "58f62e7a5c072527eb00fad7ccb6f547";

/*
|------------------------------------------------------------------------------
|--------------------------------------------------------------------------
| Session Variables
|------------------------------------------------------------------------------
|--------------------------------------------------------------------------
| (CI2)
| 'sess_cookie_name' = the name you want for the cookie
| 'sess_expiration' = the number of SECONDS you want the session to last.
Expand Down Expand Up @@ -342,7 +347,7 @@
|
| 'sess_save_path'
|
| The location to save sessions to, driver dependant.
| The location to save sessions to, driver dependent.
|
| For the 'files' driver, it's a path to a writable directory.
| WARNING: Only absolute paths are supported!
Expand All @@ -352,10 +357,17 @@
|
| IMPORTANT: You are REQUIRED to set a valid save path!
|
| Bonfire note: If you use a different database table name in 'sess_save_path', update
| /bonfire/migrations/043_Add_ci3_sessions.php
| accordingly or create the table manually.
|
| 'sess_match_ip'
|
| Whether to match the user's IP address when reading the session data.
|
| WARNING: If you're using the database driver, don't forget to update
| your session table's PRIMARY KEY when changing this setting.
|
| 'sess_time_to_update'
|
| How many seconds between CI regenerating the session ID.
Expand Down Expand Up @@ -386,10 +398,6 @@
// CI 3 Session Variables
$config['sess_driver'] = 'database';
$config['sess_regenerate_destroy'] = false;

// If you use a different database table name, update
// /bonfire/migrations/043_Add_ci3_sessions.php
// accordingly or create the table manually.
$config['sess_save_path'] = 'ci3_sessions';

/*
Expand Down Expand Up @@ -419,7 +427,7 @@
|--------------------------------------------------------------------------
|
| Determines whether to standardize newline characters in input data,
| meaning to replace \r\n, \r, \n occurences with the PHP_EOL value.
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
| This is particularly useful for portability between UNIX-based OSes,
| (usually \n) and Windows (\r\n).
Expand All @@ -434,6 +442,9 @@
|
| Determines whether the XSS filter is always active when GET, POST or
| COOKIE data is encountered
|
| WARNING: This feature is DEPRECATED in CI3 and currently available only
| for backwards compatibility purposes!
|
*/
$config['global_xss_filtering'] = false;
Expand Down Expand Up @@ -502,6 +513,8 @@
| If your PHP installation does not have short tag support enabled CI
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
| in your view files. Options are TRUE or FALSE (boolean)
|
| Note: You need to have eval() enabled for this to work.
|
*/
$config['rewrite_short_tags'] = false;
Expand Down
67 changes: 33 additions & 34 deletions application/config/constants.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
defined('BASEPATH') || exit('No direct script access allowed');
defined('BASEPATH') OR exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
Expand All @@ -14,10 +14,10 @@
| always be used to set the mode correctly.
|
*/
define('FILE_READ_MODE', 0644);
define('FILE_WRITE_MODE', 0666);
define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0777);
defined('FILE_READ_MODE') || define('FILE_READ_MODE', 0644);
defined('FILE_WRITE_MODE') || define('FILE_WRITE_MODE', 0666);
defined('DIR_READ_MODE') || define('DIR_READ_MODE', 0755);
defined('DIR_WRITE_MODE') || define('DIR_WRITE_MODE', 0775);

/*
|--------------------------------------------------------------------------
Expand All @@ -27,15 +27,14 @@
| These modes are used when working with fopen()/popen()
|
*/

define('FOPEN_READ', 'rb');
define('FOPEN_READ_WRITE', 'r+b');
define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
define('FOPEN_WRITE_CREATE', 'ab');
define('FOPEN_READ_WRITE_CREATE', 'a+b');
define('FOPEN_WRITE_CREATE_STRICT', 'xb');
define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
defined('FOPEN_READ') || define('FOPEN_READ', 'rb');
defined('FOPEN_READ_WRITE') || define('FOPEN_READ_WRITE', 'r+b');
defined('FOPEN_WRITE_CREATE_DESTRUCTIVE') || define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
defined('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE') || define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
defined('FOPEN_WRITE_CREATE') || define('FOPEN_WRITE_CREATE', 'ab');
defined('FOPEN_READ_WRITE_CREATE') || define('FOPEN_READ_WRITE_CREATE', 'a+b');
defined('FOPEN_WRITE_CREATE_STRICT') || define('FOPEN_WRITE_CREATE_STRICT', 'xb');
defined('FOPEN_READ_WRITE_CREATE_STRICT') || define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');

// -----------------------------------------------------------------------------
// CI3 Constants - These may not be honored by the system (especially SHOW_DEBUG_BACKTRACE),
Expand All @@ -52,7 +51,8 @@
| of this setting
|
*/
define('SHOW_DEBUG_BACKTRACE', true);
defined('SHOW_DEBUG_BACKTRACE') || define('SHOW_DEBUG_BACKTRACE', true);

/*
|--------------------------------------------------------------------------
| Exit Status Codes
Expand All @@ -78,29 +78,28 @@
| http://tldp.org/LDP/abs/html/exitcodes.html
|
*/
define('EXIT_SUCCESS', 0); // no errors
define('EXIT_ERROR', 1); // generic error
define('EXIT_CONFIG', 3); // configuration error
define('EXIT_UNKNOWN_FILE', 4); // file not found
define('EXIT_UNKNOWN_CLASS', 5); // unknown class
define('EXIT_UNKNOWN_METHOD', 6); // unknown class member
define('EXIT_USER_INPUT', 7); // invalid user input
define('EXIT_DATABASE', 8); // database error
define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code
define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code
defined('EXIT_SUCCESS') || define('EXIT_SUCCESS', 0); // no errors
defined('EXIT_ERROR') || define('EXIT_ERROR', 1); // generic error
defined('EXIT_CONFIG') || define('EXIT_CONFIG', 3); // configuration error
defined('EXIT_UNKNOWN_FILE') || define('EXIT_UNKNOWN_FILE', 4); // file not found
defined('EXIT_UNKNOWN_CLASS') || define('EXIT_UNKNOWN_CLASS', 5); // unknown class
defined('EXIT_UNKNOWN_METHOD') || define('EXIT_UNKNOWN_METHOD', 6); // unknown class member
defined('EXIT_USER_INPUT') || define('EXIT_USER_INPUT', 7); // invalid user input
defined('EXIT_DATABASE') || define('EXIT_DATABASE', 8); // database error
defined('EXIT__AUTO_MIN') || define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code
defined('EXIT__AUTO_MAX') || define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code

// -----------------------------------------------------------------------------
// Bonfire-specific Constants
// -----------------------------------------------------------------------------

define('BONFIRE_VERSION', 'v0.7.4');
defined('BONFIRE_VERSION') || define('BONFIRE_VERSION', 'v0.7.8');

// -----------------------------------------------------------------------------
// The 'App Area' allows you to specify the base folder used for all of the contexts
// in the app. By default, this is set to '/admin', but this does not make sense
// for all applications.
// -----------------------------------------------------------------------------
define('SITE_AREA', 'admin');
defined('SITE_AREA') || define('SITE_AREA', 'admin');

// -----------------------------------------------------------------------------
// The 'LOGIN_URL' and 'REGISTER_URL' constant allows changing of the url where
Expand All @@ -116,10 +115,10 @@
// The 'IS_AJAX' constant allows for a quick simple test as to whether the current
// request was made with XHR.
// -----------------------------------------------------------------------------
// @todo Shouldn't this work without the "? true : false" portion?
//
$ajax_request = (! empty($_SERVER['HTTP_X_REQUESTED_WITH'])
&& strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'
) ? true : false;
define('IS_AJAX', $ajax_request);
unset($ajax_request);
if (! defined('IS_AJAX')) {
$ajax_request = ! empty($_SERVER['HTTP_X_REQUESTED_WITH'])
&& strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest';
define('IS_AJAX', $ajax_request);
unset($ajax_request);
}
Loading