Skip to content

Commit 6a955b1

Browse files
committed
3.0.3
1 parent 4bd8ae8 commit 6a955b1

File tree

1,780 files changed

+28124
-32079
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,780 files changed

+28124
-32079
lines changed

CHANGELOG.md

+51-50
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,51 @@
1-
* Bug :: Admin > Categories > Edit > Related Fields - Not showing field type.
2-
* Bug :: Admin > Templates > Default Theme - Setting ID instead of name, fixed.
3-
* New Template Engine
4-
* Template Re-Organization
5-
* Search re-code in Angular
6-
* Elements (most) switched to new template engine
7-
* Finished plugin frontend templates/elements transferred to new engine
8-
* Routes List in Admin Tools
9-
* Admin Ajax Related add changed to update. (handles adding and removing single related articles) JS side of things updated so as soon as you click on one or click to delete one, the article is updated.
10-
* Added disabled status for plugin index - easier to see what are active and what aren’t based on name of plugin.
11-
* Refresh Themes callback after installing/un-installing plugin.
12-
* New Plugin > Contact Form
13-
* New Plugin > Article Ratings
14-
* Bug :: Plugin permissions > not saving correctly
15-
* Bug :: Plugin - Polls > Can vote method should not include user_id where condition if user is not logged in.
16-
* Bugs :: Misc admin add/edit block fixes, removed old code.
17-
* Blocks > Order By Options > New functionality to have a “getBlockOrderByOptions” in your model and return a key/value pair of order by options.
18-
* Bug :: Get Block Data - needed proper setter/getters, was running too many queries.
19-
* Plugin > Article Ratings - Added “Your Rating” functionality.
20-
* Plugin > Polls - Start/end date.
21-
* Plugin > Polls - Attach to article. Now inserted in main article data on article view page. (just call $article[‘Polls’] and loop through the polls or if there is one poll attached, call - {{ article['Polls'][0] }} to render the form/results)
22-
* Model > Article > Bug Fix
23-
* Search > XSS Security Bug fixed - http://packetstormsecurity.com/files/123585/adaptcms301-xss.txt
24-
* View Docs > Renamed *.md to glob.md, due to windows issue.
25-
* Tools > OneCMS Converter
26-
* Upgrade After Method option (3.0.2 moves non-theme templates)
27-
* CakePHP, TinyMCE, CodeMirror, jQuery BlockUI, html5, jQuery Smooth Scroll updated to newest versions.
28-
* Upgrade After Method for 3.0.2 - now moves files/folders for installed/non-installed themes as well.
29-
* Bug :: 5 min/2min timer - when i click on 5 min timer notice, it should also reset 2 min timer.
30-
* Model > Behavior > Delete Behavior - Updated beforeFind to exclude Comment model when deleting, was throwing error.
31-
* Admin Bug Hunting - Categories, Fields, Articles, Comments, Pages, Blocks
32-
* Frontend Bug Hunting - Edit Profile, View Profile, Homepage, Category View, Article View, Comment Post/View, View Page
33-
* Caching Views - The cached views from cake are not rendering the tags from adaptcmsview - added cachedispatcher and cachehelper to get block data and parse for tags, before writing cache.
34-
* Events - Bug fixed in ArticleRatings/Polls, have to make sure plugin is loaded before attaching event.
35-
* Templates - Fixed issue when deleting a template for a theme. (path was wrong)
36-
* Uninstall Plugin - Templates are removed now upon uninstalling a plugin.
37-
* Bug Fix :: Flash message response when refreshing theme or updating default.
38-
* Fix :: Adjusted redirect, model update.
39-
* Fix :: When uninstalling theme, it checks to see if the current theme is the same and if so, re-sets back to default.
40-
* Theme Update :: Gaming layout updated to new template system/routing.
41-
* BUG FIX :: Flash messages - not appearing in admin with cache enabled.
42-
* BUG FIX :: Flash messages not appearing on frontend, nocache areas being cached. (session flash problem was strictly with logout, fixed...fixed view helper not getting routes)
43-
* DONE :: Frontend Bug Hunting - Registration/login/logout
44-
* DONE :: Plugin Bug Hunting (add/edit/delete/view asset, install/uninstall all plugins, settings, permissions)
45-
* DONE :: Theme Bug Hunting -
46-
* DONE :: Admin Bug Hunting - Templates (mess around with adding/editing templates to default theme and custom theme), Themes (add/edit/delete theme files for custom and created themes)
47-
* DONE :: Documentation - Plugins (creating a plugin, advanced configuration, basic management), Roles, Users, System (dev setting in core - miscellaneous, events)
48-
* DONE :: Theme Bug Hunting - Test installation/uninstall of custom themes and any areas they affect, are working correctly. (already know templates are deleted upon uninstall correctly)
49-
* DONE :: View Docs - Update with new template system tags.
50-
* Bug :: Major caching issue, block data was being cached (for everyone).
1+
* Admin > Media Modal - recoded into angularJS - updates to articles add/edit and media add/edit made.
2+
* Admin > Articles > validation - model validation added for required fields.
3+
* Admin > Articles > Revisions - Ability to save up to x amount of revisions per articles. Whenever you update an article a new revision is added (or if a max of x amount, the oldest is replaced). Additionally, there is now a “Quick Save” button on the top right nav bar and an “Auto Save” to save every 1, 2, 5 or 10 minutes. You can preview what a revision looked like (see below) and restore it.
4+
* Admin Articles > Preview - Ability to preview the article changes, can also see what previous revisions looked like.
5+
* Admin > Themes - When installing a theme, option to mark it as the default theme.
6+
* Admin > Plugins - After installing a plugin, redirect to the settings page for it. (if it has settings)
7+
* Admin > Tools - Feeds (a simple page to see a list of RSS feeds for all content and by category and/or limit)
8+
* Admin > Fields - A few minor bugs fixed with hiding/showing elements based on field type.
9+
* Admin > Articles > Custom Fields - Fixed an issue with checkboxes, added an afterFind json_decode so it decodes automatically.
10+
* Admin > Users > Forgot Password - When activating forgot password, security question/answer is on the page.
11+
* Admin > Articles > Media Libraries - Functionality to add libraries to article and retrieve on frontend. (view doc for article view pages also updated to include full usage)
12+
* Model > Media > Optimized - Wasn’t aware I could have a MediaFile model to query off of for counts and getting newest file - queries updated to use this.
13+
* BUG :: Media Index/Admin Media Index - Counts were incorrect if files were deleted.
14+
* Admin - Boostrap 3 full integrated
15+
* Plugins > Links - Updated to support new media modal.
16+
* Admin > Fields - Filter by type bug fixed.
17+
* Admin > Media Modal - Misc minor css fixes.
18+
* Admin - Misc css fixes.
19+
* Admin > Users > Add Users - If validation fails, on post, module data values are not retained.
20+
* Admin > Users > Add Users - Module values not created correctly.
21+
* Admin > Templates > Global Tags - Deletes cached templates and views upon update.
22+
* Admin > Menus - Index - Updated php tag to new template format.
23+
* Plugin > AdaptBB > Index - Reworked query so deleted forums do not show.
24+
* CakePHP 2.4.3 - 2.4.6
25+
* fontAwesome 4.0.3
26+
* Bootstrap JS 3.0.3/2.x - 3.1.1
27+
* jqueryUI 1.10.3 - 1.10.4
28+
* tinyMCE 4.0.10 - 4.0.19
29+
* Angular JS Core/Route/Sanitize 1.2.8 - 1.2.14
30+
* Noty 2.1.0 - 2.2.2
31+
* Secureimage 3.5.1 - 3.5.2
32+
* Codemirror 3.19 - 3.22
33+
* Markdown 1.3 - 1.4
34+
* Firefox Bug - /adaptcms/admin/articles/edit/1 :: revisions, json.parse error when clicking preview on a revision
35+
* Firefox Bug - /adaptcms/admin/articles/edit/1 :: is auto save working? set it to 1 minute and it only saved once. (did this on ie and went to another page, CSRF error - add it to unlocked actions)
36+
* Firefox Bug - Remove hover blue color from “Content”, “Users”, etc. (visible in at least firefox)
37+
* Bug - /adaptcms/admin/users/edit/1 :: Change class of submit.
38+
* Firefox Bug - /adaptcms/admin/roles :: Add clearfix after add role. Remove div clear before the add button.
39+
* Firefox Bug - /adaptcms/admin/tools/create_theme#/versions :: Add margin-bottom of 5-10px between versions for some space.
40+
* FF Bug - /adaptcms/admin/templates/global_tags :: Add clearfix after right nav items. (update/add) However, then when clicking to add it actually saves it instead - use linux ff to investigate.
41+
* FF Bug - /adaptcms/admin/menus/add(edit) :: Instead of “Add Category”, “Add Page” - just rename to “Add”.
42+
* FF Bug - /adaptcms/admin/settings :: clearfix
43+
* FF Bug - /adaptcms/admin/settings/edit/1 :: class btn on update
44+
* FF Bug - /adaptcms/admin/plugins :: clearfix
45+
* Bug - Routes list permissions by default for admin.
46+
* FF Bug - /adaptcms/admin/google_maps :: clearfix...also when adding/editing, move map to pull-left instead of right.
47+
* FF Bug - /adaptcms/admin/links(polls) :: clearfix
48+
* Bug - /adaptcms/js/admin.articles.js :: line 317 getContent() on tinyMCE
49+
* Bug - /adaptcms/admin/fields/edit/2 :: remove hidden-xs class.
50+
* TODO Bug - Issues with including JS repeatedly on an angularJS admin page. Clearing cache fixes it, but need a better solution.
51+
* Bug - Adjust datepicker so after selecting date, it hides. Good way to see how this gets annoying as is, is on the polls add page.

UPGRADE.md

+63-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,67 @@
1+
3.0.2 - 3.0.3
2+
-------------
3+
4+
####Step 1
5+
6+
After you are logged in as an admin, access the installer at <strong>http://yoursite.com/install</strong> and upload the following directories/files to your site and overwriting what is on your server currently:
7+
8+
* lib/
9+
* vendors/
10+
* app/Config/routes.php
11+
* app/Config/bootstrap.php
12+
* app/Config/core.php
13+
* app/Routing/
14+
* app/Service/
15+
* app/Model/
16+
* app/Controller/
17+
* app/View_Docs/
18+
* app/webroot/installer/
19+
* app/webroot/js/
20+
* app/webroot/css/
21+
* app/webroot/fonts/
22+
* app/webroot/img/
23+
* app/webroot/libraries/
24+
* app/webroot/angular/
25+
* app/View/AdaptcmsView.php
26+
* app/View/Elements/
27+
* app/View/Helper/
28+
* app/View/Admin/
29+
* app/View/Frontend/Media/
30+
* app/View/Frontend/Messages/
31+
* app/View/Frontend/Search/
32+
* app/View/Frontend/Users/
33+
34+
At this point you can also update your plugins that reside in <strong>app/Plugin</strong> and <strong>app/Old_Plugins</strong>. Make sure to bring in the contents of each plugins
35+
folder, except the <strong>Config/config.php</strong> file, so that your configuration settings (if the plugin has them) are not reset. You can also overwrite <strong>app/View/Themed</strong> and <strong>app/View/Old_Themed</strong> if you haven't made changes to your themes.
36+
37+
Then refresh the install page and click on "Upgrade from 3.0.2".
38+
39+
####Step 2
40+
41+
After SQL is inserted, go into your admin panel and clear the cache. You should be set!
42+
43+
####Issues?
44+
45+
If you encounter a white page, enter in the following code on line 146 of <strong>app/Config/bootstrap.php</strong>:
46+
47+
`
48+
clearCache(null, 'models');
49+
clearCache(null, 'persistent');
50+
clearCache(null, 'views');
51+
clearCache(null, '/../templates');
52+
53+
if (function_exists('apc_clear_cache'))
54+
{
55+
apc_clear_cache();
56+
apc_clear_cache('user');
57+
apc_clear_cache('opcode');
58+
}
59+
`
60+
61+
Save and then load your site once and you should see it load normally. Remove that code and reload, everything should be resolved.
62+
163
3.0.1 - 3.0.2
2-
-----------
64+
-------------
365

466
####Step 1
567

app/Config/bootstrap.php

100644100755
File mode changed.

app/Config/core.php

100644100755
+2-2
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@
288288
'groups' => array('api')
289289
));
290290

291-
Configure::write('Component.Api.api_url', 'http://api.adaptcms.com/');
291+
Configure::write('Component.Api.api_url', 'http://addons.adaptcms.com/');
292292
Configure::write('Component.Api.adaptcms_url', 'http://www.adaptcms.com/');
293293
Configure::write('Component.Api.adaptcms_docs_url', 'http://documentation.adaptcms.com');
294294

@@ -297,4 +297,4 @@
297297
*/
298298

299299
define('VIEW_PATH', APP . 'View/');
300-
define('ADAPTCMS_VERSION', '3.0.2');
300+
define('ADAPTCMS_VERSION', '3.0.3');

app/Config/routes.php

100644100755
+12-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<?php
22
Router::mapResources(array('categories', 'articles'));
33
Router::parseExtensions();
4-
// Router::parseExtensions('rss');
5-
4+
65
Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
76
/**
87
* ...and connect the rest of 'Pages' controller's urls.
@@ -45,6 +44,17 @@
4544
Router::connect('/login', array('controller' => 'users', 'action' => 'login'));
4645
Router::connect('/logout', array('controller' => 'users', 'action' => 'logout'));
4746

47+
Router::connect('/rss/articles/*', array(
48+
'rss' => true,
49+
'controller' => 'articles',
50+
'action' => 'index'
51+
));
52+
Router::connect('/rss/articles/*/*', array(
53+
'rss' => true,
54+
'controller' => 'articles',
55+
'action' => 'index'
56+
));
57+
4858
/**
4959
* AdaptCMS 2.0.x Routing
5060
*/

app/Controller/AppController.php

+35-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class AppController extends Controller
2727
* @var array
2828
*/
2929
public $components = array(
30-
// 'DebugKit.Toolbar',
30+
//'DebugKit.Toolbar',
3131
'Auth' => array(
3232
'loginAction' => array(
3333
'controller' => 'users',
@@ -122,7 +122,7 @@ class AppController extends Controller
122122
*
123123
* @var bool
124124
*/
125-
private $disable_parsing = false;
125+
public $disable_parsing = false;
126126

127127
/**
128128
* A whole lot is going on in this one. We look for and attempt to load components/helpers, call Auth/Authorize,
@@ -1108,8 +1108,40 @@ public function _getElement($element, $params = array())
11081108
return $this->_elementView->element($element, $params);
11091109
}
11101110

1111-
public function beforeRender()
1111+
/**
1112+
* Check Captcha
1113+
*
1114+
* @param string $captcha
1115+
*
1116+
* @return bool
1117+
*/
1118+
public function checkCaptcha($captcha)
11121119
{
1120+
include_once(WWW_ROOT . 'libraries/captcha/securimage.php');
1121+
1122+
if (!class_exists('DATABASE_CONFIG'))
1123+
include_once(realpath('./../') . '/Config/database.php');
1124+
1125+
$db = new DATABASE_CONFIG();
11131126

1127+
$options = array(
1128+
'use_database' => true,
1129+
'database_host' => $db->default['host'],
1130+
'database_name' => $db->default['database'],
1131+
'database_user' => $db->default['login'],
1132+
'database_pass' => $db->default['password'],
1133+
'database_table' => $db->default['prefix'] . 'captcha_codes',
1134+
'skip_table_check' => true,
1135+
'no_session' => true,
1136+
'database_driver' => Securimage::SI_DRIVER_MYSQL
1137+
);
1138+
1139+
$securimage = new Securimage($options);
1140+
1141+
if (!empty($securimage) && !$securimage->check($captcha)) {
1142+
return false;
1143+
} else {
1144+
return true;
1145+
}
11141146
}
11151147
}

0 commit comments

Comments
 (0)