14 April, 2022

General update: data_connect, classicmenu plugin update, categories fix and update

Main changes include:

- data_connect.php update. Script now exits if session time limit is reached, not depending on ini_set() behaviour only. User gets redirected to login screen.
- Classicmenu plugin is also updated, using some javascript to add the menu in the page.(proper for a plugin)
- pageResults() function is improved to avoid including similar or unwanted values in results per page menu. Some more functions have also been improved in log.php.
- post.php change, including new file prepost.php in every post permanent link page.Categories fix Unlike 1.0, in MonoCMS 2.0 categories did not have a name.txt file to refer to when searching for the category name and was relying on folder name only. This caused failure to load a category page when the two names didn't match. Now a new categories.xmlfile is introduced to save all info needed about categories.(monofiles/filesinfo/categories.xml) A new file is also introduced for categories as in the posts case, precat.php.
Note: This is a general update, please update home cataloque files.