aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
AgeCommit message (Collapse)AuthorFilesLines
2021-08-09Merge regex pattern for search and feed controllerThomas Lange1-17/+5
2021-07-28Use foreach loop for registering the item routesThomas Lange1-34/+15
Reduce some boilerplate code in the index.php by using a foreach loop to register the routes for the various item controllers.
2021-07-10Remove pages from the RSS feed (readme)Thomas Lange1-2/+7
This commit removes the pages from the RSS feed. I decided so because a page is a "timeless" object intended for things like the imprint, about page, privacy policy and similar stuff. It also makes things easier. The new primary feed URL is "/feed/" and shows only posts. The page feed ("/feed/page/") has been removed and will throw a 404 Not Found error. The visitors who already subscribed to the old post feed ("/feed/post/") are automatically 301-redirected to the new location ("/feed/"). The following system language variables have been removed: * feed_name_items * feed_name_pages * feed_name_posts The following configuration options have been removed: * PAGE.FEED_SIZE * PAGE.FEED_SORT * PAGE.FEED_GUID Furthermore, the template file "feed/item_post.php" has been renamed to "feed/item.php" since there is now only one type of feed item. If the system cannot find the "feed/item.php", it tries "feed/item_post.php" instead (for backward compatibility with older themes).
2021-07-01Add category system to categorize posts (readme)Thomas Lange1-0/+5
This commit implements a new category system to categorize posts. Each category can have an unlimited number of nested children categories. A single post don't necessarily need to be in a category, but it can. Each category can have a full content body like posts or pages, so you have enough space to describe the content of your categories. Please note that you need to have at least the following MySQL/MariaDB versions to use the category system, because it uses "WITH RECURSIVE" database queries, the so-called "Common-Table-Expressions (CTE)". MariaDB: 10.2.2 MySQL: 8.0 See: https://mariadb.com/kb/en/with/ See: https://dev.mysql.com/doc/refman/8.0/en/with.html
2019-10-29Remove PHP closing tags and add LF to text filesThomas Lange1-1/+0
Remove the unnecessary PHP closing tags and ensure that *all* text files ending with a LF character.
2017-10-24Some comments have been updated, unnecessary whitespace at the end of some ↵Thomas Lange1-1/+1
files was removed and some missing PHP closing tags were added.
2017-04-27Router: Regular expressions for feed URLs has been combined.Thomas Lange1-14/+2
2017-04-11The control structures "require_once" have been replaced by a simple ↵Thomas Lange1-1/+1
"require" (except within the 403.php and 404.php where it makes sense, because these files can be directly called or included).
2017-04-11All requests to "favicon.ico" will now be redirected to the current template ↵Thomas Lange1-0/+5
directory "rsrc/favicon.ico" (if the "favicon.ico" inside the root directory does not exist).
2017-04-11The system directory has been moved to a non-public directory. After the ↵v1.2Thomas Lange1-10/+10
commit e33c245d910e55b8cab407a03e669470509a705d, it is no longer necessary that the directory is publicly accessible via HTTP because all requests are running through the router.
2017-03-10Several changes have been made in this commit, which together with the ↵v1.1Thomas Lange1-35/+70
previous commits result in version 1.1: + The rules for the Apache and nginx configuration have been changed and redirects now all requests to the index.php. + A router class has been added which now handles all requests that arrives at the application on the index.php. + Short-hand functions "PAGE", "POST" and "USER" for use in templates added to get specific item data by ID. + More language variables have been added to the core language.
2017-02-24Initial commit.v1.0Thomas Lange1-0/+54