@@ -1,34 +1,34 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Sprint |
|
| 4 | - * |
|
| 5 | - * A set of power tools to enhance the CodeIgniter framework and provide consistent workflow. |
|
| 6 | - * |
|
| 7 | - * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
| 8 | - * of this software and associated documentation files (the "Software"), to deal |
|
| 9 | - * in the Software without restriction, including without limitation the rights |
|
| 10 | - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
| 11 | - * copies of the Software, and to permit persons to whom the Software is |
|
| 12 | - * furnished to do so, subject to the following conditions: |
|
| 13 | - * |
|
| 14 | - * The above copyright notice and this permission notice shall be included in |
|
| 15 | - * all copies or substantial portions of the Software. |
|
| 16 | - * |
|
| 17 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 18 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 19 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
| 20 | - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 21 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
| 22 | - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
| 23 | - * THE SOFTWARE. |
|
| 24 | - * |
|
| 25 | - * @package Sprint |
|
| 26 | - * @author Lonnie Ezell |
|
| 27 | - * @copyright Copyright 2014-2015, New Myth Media, LLC (http://newmythmedia.com) |
|
| 28 | - * @license http://opensource.org/licenses/MIT (MIT) |
|
| 29 | - * @link http://sprintphp.com |
|
| 30 | - * @since Version 1.0 |
|
| 31 | - */ |
|
| 3 | + * Sprint |
|
| 4 | + * |
|
| 5 | + * A set of power tools to enhance the CodeIgniter framework and provide consistent workflow. |
|
| 6 | + * |
|
| 7 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
| 8 | + * of this software and associated documentation files (the "Software"), to deal |
|
| 9 | + * in the Software without restriction, including without limitation the rights |
|
| 10 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
| 11 | + * copies of the Software, and to permit persons to whom the Software is |
|
| 12 | + * furnished to do so, subject to the following conditions: |
|
| 13 | + * |
|
| 14 | + * The above copyright notice and this permission notice shall be included in |
|
| 15 | + * all copies or substantial portions of the Software. |
|
| 16 | + * |
|
| 17 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 18 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 19 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
| 20 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 21 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
| 22 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
| 23 | + * THE SOFTWARE. |
|
| 24 | + * |
|
| 25 | + * @package Sprint |
|
| 26 | + * @author Lonnie Ezell |
|
| 27 | + * @copyright Copyright 2014-2015, New Myth Media, LLC (http://newmythmedia.com) |
|
| 28 | + * @license http://opensource.org/licenses/MIT (MIT) |
|
| 29 | + * @link http://sprintphp.com |
|
| 30 | + * @since Version 1.0 |
|
| 31 | + */ |
|
| 32 | 32 | if (!defined('BASEPATH')) exit('No direct script access allowed'); |
| 33 | 33 | |
| 34 | 34 | //-------------------------------------------------------------------- |
@@ -37,22 +37,22 @@ discard block |
||
| 37 | 37 | // We can automatically run any outstanding migrations in the core, |
| 38 | 38 | // the application and the modules themselves if this is set to TRUE. |
| 39 | 39 | // |
| 40 | - $config['auto_migrate'] = array( |
|
| 40 | + $config['auto_migrate'] = array( |
|
| 41 | 41 | // 'app', // Comment this line out to turn off auto-migrations. |
| 42 | - ); |
|
| 42 | + ); |
|
| 43 | 43 | |
| 44 | 44 | //-------------------------------------------------------------------- |
| 45 | 45 | // Site Information |
| 46 | 46 | //-------------------------------------------------------------------- |
| 47 | 47 | // |
| 48 | - $config['site.name'] = 'Sprint PHP'; |
|
| 49 | - $config['site.auth_email'] = '[email protected]'; |
|
| 48 | + $config['site.name'] = 'Sprint PHP'; |
|
| 49 | + $config['site.auth_email'] = '[email protected]'; |
|
| 50 | 50 | |
| 51 | 51 | //-------------------------------------------------------------------- |
| 52 | 52 | // Profiler |
| 53 | 53 | //-------------------------------------------------------------------- |
| 54 | 54 | // |
| 55 | - $config['show_profiler'] = true; |
|
| 55 | + $config['show_profiler'] = true; |
|
| 56 | 56 | |
| 57 | 57 | //-------------------------------------------------------------------- |
| 58 | 58 | // PHP Error |
@@ -79,15 +79,15 @@ discard block |
||
| 79 | 79 | // The cache types can be overriedden as class values within each |
| 80 | 80 | // controller. |
| 81 | 81 | // |
| 82 | - $config['cache_type'] = 'dummy'; |
|
| 83 | - $config['backup_cache_type'] = 'dummy'; |
|
| 82 | + $config['cache_type'] = 'dummy'; |
|
| 83 | + $config['backup_cache_type'] = 'dummy'; |
|
| 84 | 84 | |
| 85 | 85 | //-------------------------------------------------------------------- |
| 86 | 86 | // Themer |
| 87 | 87 | //-------------------------------------------------------------------- |
| 88 | 88 | // Sets the Themer Engine to use. |
| 89 | 89 | // |
| 90 | - $config['active_themer'] = '\Myth\Themers\ViewThemer'; |
|
| 90 | + $config['active_themer'] = '\Myth\Themers\ViewThemer'; |
|
| 91 | 91 | |
| 92 | 92 | //-------------------------------------------------------------------- |
| 93 | 93 | // Theme Paths |
@@ -95,12 +95,12 @@ discard block |
||
| 95 | 95 | // The aliases and paths to the theme folders. The key of each element |
| 96 | 96 | // is the alias name. This is used to reference within the 'display' |
| 97 | 97 | // method of the |
| 98 | - $config['theme.paths'] = array( |
|
| 99 | - 'bootstrap' => FCPATH .'themes/bootstrap3', |
|
| 100 | - 'foundation' => FCPATH .'themes/foundation5', |
|
| 101 | - 'docs' => FCPATH .'themes/docs', |
|
| 102 | - 'email' => FCPATH .'themes/email' |
|
| 103 | - ); |
|
| 98 | + $config['theme.paths'] = array( |
|
| 99 | + 'bootstrap' => FCPATH .'themes/bootstrap3', |
|
| 100 | + 'foundation' => FCPATH .'themes/foundation5', |
|
| 101 | + 'docs' => FCPATH .'themes/docs', |
|
| 102 | + 'email' => FCPATH .'themes/email' |
|
| 103 | + ); |
|
| 104 | 104 | |
| 105 | 105 | //-------------------------------------------------------------------- |
| 106 | 106 | // Variants |
@@ -112,10 +112,10 @@ discard block |
||
| 112 | 112 | // The key is the name the variant is referenced by. |
| 113 | 113 | // The value is the string that is added to the view name. |
| 114 | 114 | // |
| 115 | - $config['theme.variants'] = array( |
|
| 116 | - 'phone' => '+phone', |
|
| 117 | - 'tablet' => '+tablet', |
|
| 118 | - ); |
|
| 115 | + $config['theme.variants'] = array( |
|
| 116 | + 'phone' => '+phone', |
|
| 117 | + 'tablet' => '+tablet', |
|
| 118 | + ); |
|
| 119 | 119 | |
| 120 | 120 | //-------------------------------------------------------------------- |
| 121 | 121 | // AutoDetect Variants? |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | // mobile phone, or tablet to browse the site. This is then set |
| 126 | 126 | // in the Themer so it will attempt to use variant files. |
| 127 | 127 | // |
| 128 | - $config['theme.autodetect_variant'] = true; |
|
| 128 | + $config['theme.autodetect_variant'] = true; |
|
| 129 | 129 | |
| 130 | 130 | //-------------------------------------------------------------------- |
| 131 | 131 | // Default Theme |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | // This is the name of the folder that holds the default theme parts. |
| 134 | 134 | // This can be overridden in each controller via the $theme class variable. |
| 135 | 135 | // |
| 136 | - $config['theme.default_theme'] = 'bootstrap'; |
|
| 136 | + $config['theme.default_theme'] = 'bootstrap'; |
|
| 137 | 137 | |
| 138 | 138 | //-------------------------------------------------------------------- |
| 139 | 139 | // Use A UIKit? |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | // If defined, this should be the full name (with namespaces) of |
| 142 | 142 | // the UIKit to use within your views. |
| 143 | 143 | // |
| 144 | - $config['theme.uikit'] = '\Myth\UIKits\Bootstrap'; |
|
| 144 | + $config['theme.uikit'] = '\Myth\UIKits\Bootstrap'; |
|
| 145 | 145 | |
| 146 | 146 | //-------------------------------------------------------------------- |
| 147 | 147 | // Parse Views? |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | // |
| 160 | 160 | // This can be overridden on a per-call basis. |
| 161 | 161 | // |
| 162 | - $config['theme.auto_escape'] = true; |
|
| 162 | + $config['theme.auto_escape'] = true; |
|
| 163 | 163 | |
| 164 | 164 | //-------------------------------------------------------------------- |
| 165 | 165 | // Settings Stores |
@@ -172,10 +172,10 @@ discard block |
||
| 172 | 172 | // The 'key' is the alias the store can be referenced by later. |
| 173 | 173 | // The 'value' is the fully namespaced class name for the store. |
| 174 | 174 | // |
| 175 | - $config['settings.stores'] = [ |
|
| 176 | - 'db' => '\Myth\Settings\DatabaseStore', |
|
| 177 | - 'config' => '\Myth\Settings\ConfigStore' |
|
| 178 | - ]; |
|
| 175 | + $config['settings.stores'] = [ |
|
| 176 | + 'db' => '\Myth\Settings\DatabaseStore', |
|
| 177 | + 'config' => '\Myth\Settings\ConfigStore' |
|
| 178 | + ]; |
|
| 179 | 179 | |
| 180 | 180 | //-------------------------------------------------------------------- |
| 181 | 181 | // Default Settigns Store |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | // The default datastore to use if none is specified. This primarily |
| 184 | 184 | // is used for saving items and findBy, but does apply to all. |
| 185 | 185 | // |
| 186 | - $config['settings.default_store'] = 'db'; |
|
| 186 | + $config['settings.default_store'] = 'db'; |
|
| 187 | 187 | |
| 188 | 188 | |
| 189 | 189 | //-------------------------------------------------------------------- |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | // The default MailService to use when sending any emails through |
| 193 | 193 | // Myth\Mail\Mail commands. Must include the full namespace of the class. |
| 194 | 194 | // |
| 195 | - $config['mail.default_service'] = '\Myth\Mail\LogMailService'; |
|
| 195 | + $config['mail.default_service'] = '\Myth\Mail\LogMailService'; |
|
| 196 | 196 | |
| 197 | 197 | //-------------------------------------------------------------------- |
| 198 | 198 | // Mail: Pretend to send |
@@ -201,4 +201,4 @@ discard block |
||
| 201 | 201 | // emails and simply return a successful send. Useful during |
| 202 | 202 | // certain stages of testing. |
| 203 | 203 | // |
| 204 | - $config['mail.pretend'] = FALSE; |
|
| 204 | + $config['mail.pretend'] = FALSE; |
|
@@ -1,34 +1,34 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Sprint |
|
| 4 | - * |
|
| 5 | - * A set of power tools to enhance the CodeIgniter framework and provide consistent workflow. |
|
| 6 | - * |
|
| 7 | - * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
| 8 | - * of this software and associated documentation files (the "Software"), to deal |
|
| 9 | - * in the Software without restriction, including without limitation the rights |
|
| 10 | - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
| 11 | - * copies of the Software, and to permit persons to whom the Software is |
|
| 12 | - * furnished to do so, subject to the following conditions: |
|
| 13 | - * |
|
| 14 | - * The above copyright notice and this permission notice shall be included in |
|
| 15 | - * all copies or substantial portions of the Software. |
|
| 16 | - * |
|
| 17 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 18 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 19 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
| 20 | - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 21 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
| 22 | - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
| 23 | - * THE SOFTWARE. |
|
| 24 | - * |
|
| 25 | - * @package Sprint |
|
| 26 | - * @author Lonnie Ezell |
|
| 27 | - * @copyright Copyright 2014-2015, New Myth Media, LLC (http://newmythmedia.com) |
|
| 28 | - * @license http://opensource.org/licenses/MIT (MIT) |
|
| 29 | - * @link http://sprintphp.com |
|
| 30 | - * @since Version 1.0 |
|
| 31 | - */ |
|
| 3 | + * Sprint |
|
| 4 | + * |
|
| 5 | + * A set of power tools to enhance the CodeIgniter framework and provide consistent workflow. |
|
| 6 | + * |
|
| 7 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
| 8 | + * of this software and associated documentation files (the "Software"), to deal |
|
| 9 | + * in the Software without restriction, including without limitation the rights |
|
| 10 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
| 11 | + * copies of the Software, and to permit persons to whom the Software is |
|
| 12 | + * furnished to do so, subject to the following conditions: |
|
| 13 | + * |
|
| 14 | + * The above copyright notice and this permission notice shall be included in |
|
| 15 | + * all copies or substantial portions of the Software. |
|
| 16 | + * |
|
| 17 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 18 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 19 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
| 20 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 21 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
| 22 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
| 23 | + * THE SOFTWARE. |
|
| 24 | + * |
|
| 25 | + * @package Sprint |
|
| 26 | + * @author Lonnie Ezell |
|
| 27 | + * @copyright Copyright 2014-2015, New Myth Media, LLC (http://newmythmedia.com) |
|
| 28 | + * @license http://opensource.org/licenses/MIT (MIT) |
|
| 29 | + * @link http://sprintphp.com |
|
| 30 | + * @since Version 1.0 |
|
| 31 | + */ |
|
| 32 | 32 | if (!defined('BASEPATH')) exit('No direct script access allowed'); |
| 33 | 33 | |
| 34 | 34 | //-------------------------------------------------------------------- |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | // you might not want the extra risk associated with this cookie-based |
| 77 | 77 | // solution. |
| 78 | 78 | // |
| 79 | - $config['auth.allow_remembering'] = true; |
|
| 79 | + $config['auth.allow_remembering'] = true; |
|
| 80 | 80 | |
| 81 | 81 | //-------------------------------------------------------------------- |
| 82 | 82 | // Remember Me Salt |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | // If you are using Remember Me functionality, you should consider |
| 87 | 87 | // changing this value to be unique to your site. |
| 88 | 88 | // |
| 89 | - $config['auth.salt'] = 'ASimpleSalt'; |
|
| 89 | + $config['auth.salt'] = 'ASimpleSalt'; |
|
| 90 | 90 | |
| 91 | 91 | //-------------------------------------------------------------------- |
| 92 | 92 | // Remember Length |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | // 6 months - 14515200 |
| 107 | 107 | // 1 year - 29030400 |
| 108 | 108 | // |
| 109 | - $config['auth.remember_length'] = 1209600; |
|
| 109 | + $config['auth.remember_length'] = 1209600; |
|
| 110 | 110 | |
| 111 | 111 | |
| 112 | 112 | |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | // Throttling exponentially increases the time between allowed login |
| 124 | 124 | // attempts. |
| 125 | 125 | // |
| 126 | - $config['auth.allow_throttling'] = true; |
|
| 126 | + $config['auth.allow_throttling'] = true; |
|
| 127 | 127 | |
| 128 | 128 | //-------------------------------------------------------------------- |
| 129 | 129 | // Max Throttling Time |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | // |
| 135 | 135 | // This is the number of SECONDS max. |
| 136 | 136 | // |
| 137 | - $config['auth.max_throttle_time'] = 50; |
|
| 137 | + $config['auth.max_throttle_time'] = 50; |
|
| 138 | 138 | |
| 139 | 139 | //-------------------------------------------------------------------- |
| 140 | 140 | // Start Throttling After |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | // Throttling will start after X number of attempts. Before this, |
| 143 | 143 | // the user can make attempts like normal. |
| 144 | 144 | // |
| 145 | - $config['auth.allowed_login_attempts'] = 5; |
|
| 145 | + $config['auth.allowed_login_attempts'] = 5; |
|
| 146 | 146 | |
| 147 | 147 | //-------------------------------------------------------------------- |
| 148 | 148 | // Distributed Brute Force Checks |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | // The amount to multiply the average daily logins over the last 3 months |
| 151 | 151 | // by to determine if we might be under a distributed brute force attempt. |
| 152 | 152 | // |
| 153 | - $config['auth.dbrute_multiplier'] = 3; |
|
| 153 | + $config['auth.dbrute_multiplier'] = 3; |
|
| 154 | 154 | |
| 155 | 155 | //-------------------------------------------------------------------- |
| 156 | 156 | // Additional Suspension Time for Distributed Brute Force Attempts |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | // This is the number of SECONDS that will be added to all login |
| 159 | 159 | // attempts that are being throttled. |
| 160 | 160 | // |
| 161 | - $config['auth.distributed_brute_add_time'] = 45; |
|
| 161 | + $config['auth.distributed_brute_add_time'] = 45; |
|
| 162 | 162 | |
| 163 | 163 | |
| 164 | 164 | //-------------------------------------------------------------------- |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | // - 30 bits of entropy = minimum for a web service with business critical applications (e.g. SAAS). |
| 177 | 177 | // - 40 bits of entropy = minimum for a bank or other financial service. |
| 178 | 178 | // |
| 179 | - $config['auth.min_password_strength'] = 18; |
|
| 179 | + $config['auth.min_password_strength'] = 18; |
|
| 180 | 180 | |
| 181 | 181 | //-------------------------------------------------------------------- |
| 182 | 182 | // Use Dictionary |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | // dictionary to eliminate common words and their variations that would |
| 186 | 186 | // be pretty simply for a hacking attempt to guess? |
| 187 | 187 | // |
| 188 | - $config['auth.use_dictionary'] = false; |
|
| 188 | + $config['auth.use_dictionary'] = false; |
|
| 189 | 189 | |
| 190 | 190 | //-------------------------------------------------------------------- |
| 191 | 191 | // PASSWORD HASHING COST |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | // - 'email' The are sent an email with an activation link/code |
| 209 | 209 | // - 'manual' Requires manual approval by a site administrator. |
| 210 | 210 | // |
| 211 | - $config['auth.activation_method'] = 'auto'; |
|
| 211 | + $config['auth.activation_method'] = 'auto'; |
|
| 212 | 212 | |
| 213 | 213 | |
| 214 | 214 | //-------------------------------------------------------------------- |
@@ -220,4 +220,4 @@ discard block |
||
| 220 | 220 | //-------------------------------------------------------------------- |
| 221 | 221 | // Sets the Default role id to use when creating new users. |
| 222 | 222 | // |
| 223 | - $config['auth.default_role_id'] = 3; |
|
| 223 | + $config['auth.default_role_id'] = 3; |
|
@@ -6,8 +6,8 @@ |
||
| 6 | 6 | //-------------------------------------------------------------------- |
| 7 | 7 | |
| 8 | 8 | $config['modules_locations'] = array( |
| 9 | - APPPATH .'modules/', |
|
| 10 | - MYTHPATH .'CIModules/' |
|
| 9 | + APPPATH .'modules/', |
|
| 10 | + MYTHPATH .'CIModules/' |
|
| 11 | 11 | ); |
| 12 | 12 | |
| 13 | 13 | /* |
@@ -1,34 +1,34 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Sprint |
|
| 4 | - * |
|
| 5 | - * A set of power tools to enhance the CodeIgniter framework and provide consistent workflow. |
|
| 6 | - * |
|
| 7 | - * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
| 8 | - * of this software and associated documentation files (the "Software"), to deal |
|
| 9 | - * in the Software without restriction, including without limitation the rights |
|
| 10 | - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
| 11 | - * copies of the Software, and to permit persons to whom the Software is |
|
| 12 | - * furnished to do so, subject to the following conditions: |
|
| 13 | - * |
|
| 14 | - * The above copyright notice and this permission notice shall be included in |
|
| 15 | - * all copies or substantial portions of the Software. |
|
| 16 | - * |
|
| 17 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 18 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 19 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
| 20 | - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 21 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
| 22 | - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
| 23 | - * THE SOFTWARE. |
|
| 24 | - * |
|
| 25 | - * @package Sprint |
|
| 26 | - * @author Lonnie Ezell |
|
| 27 | - * @copyright Copyright 2014-2015, New Myth Media, LLC (http://newmythmedia.com) |
|
| 28 | - * @license http://opensource.org/licenses/MIT (MIT) |
|
| 29 | - * @link http://sprintphp.com |
|
| 30 | - * @since Version 1.0 |
|
| 31 | - */ |
|
| 3 | + * Sprint |
|
| 4 | + * |
|
| 5 | + * A set of power tools to enhance the CodeIgniter framework and provide consistent workflow. |
|
| 6 | + * |
|
| 7 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
| 8 | + * of this software and associated documentation files (the "Software"), to deal |
|
| 9 | + * in the Software without restriction, including without limitation the rights |
|
| 10 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
| 11 | + * copies of the Software, and to permit persons to whom the Software is |
|
| 12 | + * furnished to do so, subject to the following conditions: |
|
| 13 | + * |
|
| 14 | + * The above copyright notice and this permission notice shall be included in |
|
| 15 | + * all copies or substantial portions of the Software. |
|
| 16 | + * |
|
| 17 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 18 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 19 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
| 20 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 21 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
| 22 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
| 23 | + * THE SOFTWARE. |
|
| 24 | + * |
|
| 25 | + * @package Sprint |
|
| 26 | + * @author Lonnie Ezell |
|
| 27 | + * @copyright Copyright 2014-2015, New Myth Media, LLC (http://newmythmedia.com) |
|
| 28 | + * @license http://opensource.org/licenses/MIT (MIT) |
|
| 29 | + * @link http://sprintphp.com |
|
| 30 | + * @since Version 1.0 |
|
| 31 | + */ |
|
| 32 | 32 | if (!defined('BASEPATH')) exit('No direct script access allowed'); |
| 33 | 33 | |
| 34 | 34 | use \Myth\Events\Events as Events; |
@@ -51,12 +51,12 @@ discard block |
||
| 51 | 51 | // Send New User Registration Email |
| 52 | 52 | Events::on('didRegisterUser', function($data) { |
| 53 | 53 | |
| 54 | - if ($data['method'] != 'email') |
|
| 55 | - { |
|
| 56 | - return true; |
|
| 57 | - } |
|
| 54 | + if ($data['method'] != 'email') |
|
| 55 | + { |
|
| 56 | + return true; |
|
| 57 | + } |
|
| 58 | 58 | |
| 59 | - return Mail::deliver('UserMailer:didRegister', [$data]); |
|
| 59 | + return Mail::deliver('UserMailer:didRegister', [$data]); |
|
| 60 | 60 | |
| 61 | 61 | }, EVENTS_PRIORITY_NORMAL); |
| 62 | 62 | |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | // Send Forgotten Password email |
| 66 | 66 | Events::on('didRemindUser', function($user, $token) { |
| 67 | 67 | |
| 68 | - return Mail::deliver('UserMailer:remindUser', [$user, $token]); |
|
| 68 | + return Mail::deliver('UserMailer:remindUser', [$user, $token]); |
|
| 69 | 69 | |
| 70 | 70 | }, EVENTS_PRIORITY_NORMAL); |
| 71 | 71 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | // Send Reset Password notice |
| 75 | 75 | Events::on('didResetPassword', function($user) { |
| 76 | 76 | |
| 77 | - return Mail::deliver('UserMailer:resetPassword', [$user]); |
|
| 77 | + return Mail::deliver('UserMailer:resetPassword', [$user]); |
|
| 78 | 78 | |
| 79 | 79 | }, EVENTS_PRIORITY_NORMAL); |
| 80 | 80 | |
@@ -1,34 +1,34 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Sprint |
|
| 4 | - * |
|
| 5 | - * A set of power tools to enhance the CodeIgniter framework and provide consistent workflow. |
|
| 6 | - * |
|
| 7 | - * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
| 8 | - * of this software and associated documentation files (the "Software"), to deal |
|
| 9 | - * in the Software without restriction, including without limitation the rights |
|
| 10 | - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
| 11 | - * copies of the Software, and to permit persons to whom the Software is |
|
| 12 | - * furnished to do so, subject to the following conditions: |
|
| 13 | - * |
|
| 14 | - * The above copyright notice and this permission notice shall be included in |
|
| 15 | - * all copies or substantial portions of the Software. |
|
| 16 | - * |
|
| 17 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 18 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 19 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
| 20 | - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 21 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
| 22 | - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
| 23 | - * THE SOFTWARE. |
|
| 24 | - * |
|
| 25 | - * @package Sprint |
|
| 26 | - * @author Lonnie Ezell |
|
| 27 | - * @copyright Copyright 2014-2015, New Myth Media, LLC (http://newmythmedia.com) |
|
| 28 | - * @license http://opensource.org/licenses/MIT (MIT) |
|
| 29 | - * @link http://sprintphp.com |
|
| 30 | - * @since Version 1.0 |
|
| 31 | - */ |
|
| 3 | + * Sprint |
|
| 4 | + * |
|
| 5 | + * A set of power tools to enhance the CodeIgniter framework and provide consistent workflow. |
|
| 6 | + * |
|
| 7 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
| 8 | + * of this software and associated documentation files (the "Software"), to deal |
|
| 9 | + * in the Software without restriction, including without limitation the rights |
|
| 10 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
| 11 | + * copies of the Software, and to permit persons to whom the Software is |
|
| 12 | + * furnished to do so, subject to the following conditions: |
|
| 13 | + * |
|
| 14 | + * The above copyright notice and this permission notice shall be included in |
|
| 15 | + * all copies or substantial portions of the Software. |
|
| 16 | + * |
|
| 17 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 18 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 19 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
| 20 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 21 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
| 22 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
| 23 | + * THE SOFTWARE. |
|
| 24 | + * |
|
| 25 | + * @package Sprint |
|
| 26 | + * @author Lonnie Ezell |
|
| 27 | + * @copyright Copyright 2014-2015, New Myth Media, LLC (http://newmythmedia.com) |
|
| 28 | + * @license http://opensource.org/licenses/MIT (MIT) |
|
| 29 | + * @link http://sprintphp.com |
|
| 30 | + * @since Version 1.0 |
|
| 31 | + */ |
|
| 32 | 32 | if (!defined('BASEPATH')) exit('No direct script access allowed'); |
| 33 | 33 | |
| 34 | 34 | //-------------------------------------------------------------------- |
@@ -37,10 +37,10 @@ discard block |
||
| 37 | 37 | // Before any _generators are run, the current environment will be |
| 38 | 38 | // tested to verify it's an allowed environment. |
| 39 | 39 | // |
| 40 | - $config['forge.allowed_environments'] = [ |
|
| 41 | - 'development', |
|
| 42 | - 'travis' |
|
| 43 | - ]; |
|
| 40 | + $config['forge.allowed_environments'] = [ |
|
| 41 | + 'development', |
|
| 42 | + 'travis' |
|
| 43 | + ]; |
|
| 44 | 44 | |
| 45 | 45 | //-------------------------------------------------------------------- |
| 46 | 46 | // Themer to Use |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | // Define the themer to use when rendering our template files. |
| 49 | 49 | // This should include the fully namespaced classname. |
| 50 | 50 | // |
| 51 | - $config['forge.themer'] = '\Myth\Themers\ViewThemer'; |
|
| 51 | + $config['forge.themer'] = '\Myth\Themers\ViewThemer'; |
|
| 52 | 52 | |
| 53 | 53 | //-------------------------------------------------------------------- |
| 54 | 54 | // Generator Collections |
@@ -60,6 +60,6 @@ discard block |
||
| 60 | 60 | // |
| 61 | 61 | // The 'keys' are aliases that can be used to reference the view from. |
| 62 | 62 | // |
| 63 | - $config['forge.collections'] = [ |
|
| 64 | - 'sprint' => MYTHPATH .'_generators/' |
|
| 65 | - ]; |
|
| 66 | 63 | \ No newline at end of file |
| 64 | + $config['forge.collections'] = [ |
|
| 65 | + 'sprint' => MYTHPATH .'_generators/' |
|
| 66 | + ]; |
|
| 67 | 67 | \ No newline at end of file |
@@ -8,8 +8,8 @@ discard block |
||
| 8 | 8 | // |
| 9 | 9 | |
| 10 | 10 | $config['meta'] = [ |
| 11 | - 'x-ua-compatible' => 'ie=edge', |
|
| 12 | - 'viewport' => 'width=device-width, initial-scale=1', |
|
| 11 | + 'x-ua-compatible' => 'ie=edge', |
|
| 12 | + 'viewport' => 'width=device-width, initial-scale=1', |
|
| 13 | 13 | ]; |
| 14 | 14 | |
| 15 | 15 | //-------------------------------------------------------------------- |
@@ -20,5 +20,5 @@ discard block |
||
| 20 | 20 | // |
| 21 | 21 | |
| 22 | 22 | $config['http-equiv'] = [ |
| 23 | - 'x-dns-prefetch-control' |
|
| 23 | + 'x-dns-prefetch-control' |
|
| 24 | 24 | ]; |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | | The key is the alias that you will refer to when running migrations. |
| 84 | 84 | */ |
| 85 | 85 | $config['migration_paths'] = array( |
| 86 | - 'app' => APPPATH . 'database/migrations/' |
|
| 86 | + 'app' => APPPATH . 'database/migrations/' |
|
| 87 | 87 | ); |
| 88 | 88 | |
| 89 | 89 | |
@@ -4,28 +4,28 @@ |
||
| 4 | 4 | |
| 5 | 5 | class MY_Loader extends HMVC_Loader { |
| 6 | 6 | |
| 7 | - /** |
|
| 8 | - * Does the same thing that load->view does except ensures that the |
|
| 9 | - * view file is treated as a path so that it can be found outside of |
|
| 10 | - * the standard view paths. |
|
| 11 | - * |
|
| 12 | - * @param $view |
|
| 13 | - * @param array $vars |
|
| 14 | - * @param bool $return |
|
| 15 | - * @return object|void |
|
| 16 | - */ |
|
| 17 | - public function view_path($view, $vars = array(), $return = FALSE) |
|
| 18 | - { |
|
| 19 | - $view .= '.php'; |
|
| 7 | + /** |
|
| 8 | + * Does the same thing that load->view does except ensures that the |
|
| 9 | + * view file is treated as a path so that it can be found outside of |
|
| 10 | + * the standard view paths. |
|
| 11 | + * |
|
| 12 | + * @param $view |
|
| 13 | + * @param array $vars |
|
| 14 | + * @param bool $return |
|
| 15 | + * @return object|void |
|
| 16 | + */ |
|
| 17 | + public function view_path($view, $vars = array(), $return = FALSE) |
|
| 18 | + { |
|
| 19 | + $view .= '.php'; |
|
| 20 | 20 | |
| 21 | - // If the file can't be found, then use the regular view method... |
|
| 22 | - if (file_exists($view)) { |
|
| 23 | - return $this->_ci_load(array('_ci_path' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return)); |
|
| 24 | - } |
|
| 25 | - else { |
|
| 26 | - return $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return)); |
|
| 27 | - } |
|
| 28 | - } |
|
| 21 | + // If the file can't be found, then use the regular view method... |
|
| 22 | + if (file_exists($view)) { |
|
| 23 | + return $this->_ci_load(array('_ci_path' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return)); |
|
| 24 | + } |
|
| 25 | + else { |
|
| 26 | + return $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return)); |
|
| 27 | + } |
|
| 28 | + } |
|
| 29 | 29 | |
| 30 | - // -------------------------------------------------------------------- |
|
| 30 | + // -------------------------------------------------------------------- |
|
| 31 | 31 | } |
@@ -10,86 +10,86 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | class Migration_create_auth_tables extends CI_Migration { |
| 12 | 12 | |
| 13 | - public function up () |
|
| 14 | - { |
|
| 15 | - // Auth Login Attempts |
|
| 16 | - $fields = [ |
|
| 17 | - 'id' => [ |
|
| 18 | - 'type' => 'int', |
|
| 19 | - 'constraint' => 11, |
|
| 20 | - 'unsigned' => true, |
|
| 21 | - 'auto_increment' => true |
|
| 22 | - ], |
|
| 23 | - 'email' => [ |
|
| 24 | - 'type' => 'varchar', |
|
| 25 | - 'constraint' => 255, |
|
| 26 | - ], |
|
| 27 | - 'datetime' => [ |
|
| 28 | - 'type' => 'datetime', |
|
| 29 | - ] |
|
| 30 | - ]; |
|
| 31 | - $this->dbforge->add_field($fields); |
|
| 32 | - $this->dbforge->add_key('id', true); |
|
| 33 | - $this->dbforge->add_key('email'); |
|
| 13 | + public function up () |
|
| 14 | + { |
|
| 15 | + // Auth Login Attempts |
|
| 16 | + $fields = [ |
|
| 17 | + 'id' => [ |
|
| 18 | + 'type' => 'int', |
|
| 19 | + 'constraint' => 11, |
|
| 20 | + 'unsigned' => true, |
|
| 21 | + 'auto_increment' => true |
|
| 22 | + ], |
|
| 23 | + 'email' => [ |
|
| 24 | + 'type' => 'varchar', |
|
| 25 | + 'constraint' => 255, |
|
| 26 | + ], |
|
| 27 | + 'datetime' => [ |
|
| 28 | + 'type' => 'datetime', |
|
| 29 | + ] |
|
| 30 | + ]; |
|
| 31 | + $this->dbforge->add_field($fields); |
|
| 32 | + $this->dbforge->add_key('id', true); |
|
| 33 | + $this->dbforge->add_key('email'); |
|
| 34 | 34 | |
| 35 | - $this->dbforge->create_table('auth_login_attempts', true, config_item('migration_create_table_attr')); |
|
| 35 | + $this->dbforge->create_table('auth_login_attempts', true, config_item('migration_create_table_attr')); |
|
| 36 | 36 | |
| 37 | - // Auth Logins |
|
| 38 | - $fields = [ |
|
| 39 | - 'id' => [ |
|
| 40 | - 'type' => 'int', |
|
| 41 | - 'constraint' => 11, |
|
| 42 | - 'unsigned' => true, |
|
| 43 | - 'auto_increment' => true |
|
| 44 | - ], |
|
| 45 | - 'user_id' => [ |
|
| 46 | - 'type' => 'int', |
|
| 47 | - 'constraint' => 11, |
|
| 48 | - ], |
|
| 49 | - 'ip_address' => [ |
|
| 50 | - 'type' => 'varchar', |
|
| 51 | - 'constraint' => 40, |
|
| 52 | - 'null' => true |
|
| 53 | - ], |
|
| 54 | - 'datetime' => [ |
|
| 55 | - 'type' => 'datetime', |
|
| 56 | - ] |
|
| 57 | - ]; |
|
| 58 | - $this->dbforge->add_field($fields); |
|
| 59 | - $this->dbforge->add_key('id', true); |
|
| 60 | - $this->dbforge->add_key('email'); |
|
| 37 | + // Auth Logins |
|
| 38 | + $fields = [ |
|
| 39 | + 'id' => [ |
|
| 40 | + 'type' => 'int', |
|
| 41 | + 'constraint' => 11, |
|
| 42 | + 'unsigned' => true, |
|
| 43 | + 'auto_increment' => true |
|
| 44 | + ], |
|
| 45 | + 'user_id' => [ |
|
| 46 | + 'type' => 'int', |
|
| 47 | + 'constraint' => 11, |
|
| 48 | + ], |
|
| 49 | + 'ip_address' => [ |
|
| 50 | + 'type' => 'varchar', |
|
| 51 | + 'constraint' => 40, |
|
| 52 | + 'null' => true |
|
| 53 | + ], |
|
| 54 | + 'datetime' => [ |
|
| 55 | + 'type' => 'datetime', |
|
| 56 | + ] |
|
| 57 | + ]; |
|
| 58 | + $this->dbforge->add_field($fields); |
|
| 59 | + $this->dbforge->add_key('id', true); |
|
| 60 | + $this->dbforge->add_key('email'); |
|
| 61 | 61 | |
| 62 | - $this->dbforge->create_table('auth_logins', true, config_item('migration_create_table_attr')); |
|
| 62 | + $this->dbforge->create_table('auth_logins', true, config_item('migration_create_table_attr')); |
|
| 63 | 63 | |
| 64 | - // Auth Tokens |
|
| 65 | - $fields = [ |
|
| 66 | - 'email' => [ |
|
| 67 | - 'type' => 'varchar', |
|
| 68 | - 'constraint' => 255, |
|
| 69 | - ], |
|
| 70 | - 'hash' => [ |
|
| 71 | - 'type' => 'char', |
|
| 72 | - 'constraint' => 40 |
|
| 73 | - ], |
|
| 74 | - 'created' => [ |
|
| 75 | - 'type' => 'datetime', |
|
| 76 | - ] |
|
| 77 | - ]; |
|
| 78 | - $this->dbforge->add_field($fields); |
|
| 79 | - $this->dbforge->add_key( ['email', 'hash'] ); |
|
| 64 | + // Auth Tokens |
|
| 65 | + $fields = [ |
|
| 66 | + 'email' => [ |
|
| 67 | + 'type' => 'varchar', |
|
| 68 | + 'constraint' => 255, |
|
| 69 | + ], |
|
| 70 | + 'hash' => [ |
|
| 71 | + 'type' => 'char', |
|
| 72 | + 'constraint' => 40 |
|
| 73 | + ], |
|
| 74 | + 'created' => [ |
|
| 75 | + 'type' => 'datetime', |
|
| 76 | + ] |
|
| 77 | + ]; |
|
| 78 | + $this->dbforge->add_field($fields); |
|
| 79 | + $this->dbforge->add_key( ['email', 'hash'] ); |
|
| 80 | 80 | |
| 81 | - $this->dbforge->create_table('auth_tokens', true, config_item('migration_create_table_attr')); |
|
| 82 | - } |
|
| 81 | + $this->dbforge->create_table('auth_tokens', true, config_item('migration_create_table_attr')); |
|
| 82 | + } |
|
| 83 | 83 | |
| 84 | - //-------------------------------------------------------------------- |
|
| 84 | + //-------------------------------------------------------------------- |
|
| 85 | 85 | |
| 86 | - public function down () |
|
| 87 | - { |
|
| 88 | - $this->dbforge->drop_table('auth_tokens'); |
|
| 89 | - $this->dbforge->drop_table('auth_logins'); |
|
| 90 | - $this->dbforge->drop_table('auth_login_attempts'); |
|
| 91 | - } |
|
| 86 | + public function down () |
|
| 87 | + { |
|
| 88 | + $this->dbforge->drop_table('auth_tokens'); |
|
| 89 | + $this->dbforge->drop_table('auth_logins'); |
|
| 90 | + $this->dbforge->drop_table('auth_login_attempts'); |
|
| 91 | + } |
|
| 92 | 92 | |
| 93 | - //-------------------------------------------------------------------- |
|
| 93 | + //-------------------------------------------------------------------- |
|
| 94 | 94 | |
| 95 | 95 | } |