Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ability to store global site settings in CacheBox with admin panel cusomizations
- Loading branch information
Showing
6 changed files
with
100 additions
and
37 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
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
55f3676
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi luis,
I think this commit breaks installer.
After dsn verify when the script redirect to installer, the ratelimiter checks for existence of setting
and try to access cacheprovider variable.
The problem is cacheprovider that does not exists.
Event: contentbox-ui:blog.index
Routed URL: /
Layout: N/A (Module: )
View: N/A
Timestamp: 01/24/2016 02:18:29 AM
Type: expression
Messages: variable [cacheprovider] doesn't exist
Tag Context:
Template: E:\ColdfusionBuilder\Network\cc\modules\contentbox\models\system\SettingService.cfc
LINE: 325: }
326: // lazy load it.
327: variables.cacheProviderName = cacheprovider.getValue();
328: }
329: }
Template: E:\ColdfusionBuilder\Network\cc\modules\contentbox\models\system\SettingService.cfc
LINE: 125: */
126: function getAllSettings( boolean asStruct=false ){
127: var cache = getSettingsCacheProvider();
128: var cacheKey = getSettingsCacheKey();
129: // retrieve all settings from cache
Template: E:\ColdfusionBuilder\Network\cc\modules\contentbox\models\system\SettingService.cfc
LINE: 104: */
105: function getSetting( required name, defaultValue ){
106: var s = getAllSettings( asStruct=true );
107: if( structKeyExists( s, arguments.name ) ){
108: return s[ arguments.name ];
Template: E:\ColdfusionBuilder\Network\cc\modules\contentbox\models\security\RateLimiter.cfc
LINE: 42: function onRequestCapture( event, interceptData, buffer ){
43: // If turned off, just exist
44: if( !settingService.getSetting( "cb_security_rate_limiter", false ) ){ return false; }
45: // do we limit bot OR normal requests as well?
46: if( !len( cgi.http_cookie ) OR !settingService.getSetting( "cb_security_rate_limiter_bots_only" ) ) {
Template: E:\ColdfusionBuilder\Network\cc\coldbox\system\web\context\InterceptorState.cfc
LINE: 368:
369:
370:
371:
372: <!--- Log It --->