📜 ⬆️ ⬇️

NetCat 4.0. What's new?

The new version of NetCat 4.0 CMS has been released.
Under the review of the cat innovations.


1. Logging - a new module that allows you to track all changes made to the system by scripts or users.
Now you can observe how the system behaves, use, for example, the module as an error control.
The module has a convenient and simple interface.

2. Subscriptions are completely reworked: emails are sent by kroon, which means they can withstand a large number of subscribers. It is possible to subscribe for an anonymous user.
You can create a service newsletter - letters will be sent to certain users, for example, those who have a birthday today.
Flexible configuration of the letter template.
Compatibility: you can enable the module in compatibility mode with the previous version - it will work “as before”.
When updating subscriptions are converted.
')
3. Forum rewritten from scratch.
Now uses all the features of the engine: sections, components, standard rights. Everything is configured on the components -> very large flexibility compared to the previous version.
There is a converter with the old version of the forum.

4. Since version 3.5, the functionality for working with images appeared, in 4.0 it improved slightly and, most importantly, the documentation appeared to it.
Main functions: imgResize - change the image, createThumb - create a preview.

We will create our image gallery through a component with Picture and Preview fields, and the preview should be generated automatically, and the main image should be changed to 400x600

In action after adding:
";
// (!)
require_once($INCLUDE_FOLDER."classes/nc_imagetransform.class.php"
);
$photo_path = $DOCUMENT_ROOT.nc_file_path($classID, $message,
'Picture', "");
if ( $photo_path) {
nc_ImageTransform::imgResize($photo_path,$photo_path,'600',
'400', 0, 'jpg', 90, $message, 'Picture');
nc_ImageTransform::createThumb('Picture','Preview',50,50);
}
echo "


what fs to use?
protected will generate extra requests -> load.
simple - puts everything in one folder, which is bad for a large number of files, probably the best option is the standard one.

5. The MYSQL_ENCRYPT variable appeared, which defines the MYSQL function for encrypting passwords. Valid values ​​are MD5, SHA, PASSWORD, OLD_PASSWORD. Useful for those who transfer projects from hosting to hosting

Source: https://habr.com/ru/post/94684/


All Articles