aboutsummaryrefslogtreecommitdiffstats
path: root/core/application.php
AgeCommit message (Collapse)AuthorFilesLines
2021-06-17Pass configuration array directly to foreachThomas Lange1-8/+3
2021-06-14Remove redundant try/catch blockThomas Lange1-12/+13
Remove the redundant exception handler from core/application.php. The exception handling in the catch block did not differ from the default handler already defined by "set_exception_handler".
2021-06-13Use grid layout for items in administration areaThomas Lange1-2/+2
Introduce a new 1/2/3-column CSS grid layout in the administration area for items on overview pages and in the search results. The column count of the grid depends on the users viewport width. In addition, the default value of the following configuration settings has been changed to 12 because 12 can also be divided by 2 and 3 which is useful for the 1/2/3-column grid layout. ADMIN.PAGE.LIST_SIZE = 12 ADMIN.POST.LIST_SIZE = 12
2021-06-13Add configuration settings (admin prefixes)Thomas Lange1-0/+14
Introduce the following configuration settings to make it possible to use different settings for the number of displayed items and ordering on the administration areas overview pages. ADMIN.PAGE.LIST_SIZE ADMIN.POST.LIST_SIZE ADMIN.USER.LIST_SIZE ADMIN.PAGE.LIST_SORT ADMIN.POST.LIST_SORT ADMIN.USER.LIST_SORT
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.
2019-04-26Rename "standard" template to "default"Thomas Lange1-1/+1
2018-02-14Add configuration option "$ITEM.SINGLE_REDIRECT"Thomas Lange1-0/+3
Each option can be set to "TRUE" or "FALSE" (the default value is "FALSE"). For example, if you only have one user and "USER.SINGLE_REDIRECT" is set to "TRUE", then requests to "/user/" will be automatically redirected to "/user/username/".
2018-01-09Fix spelling mistake in commentsThomas Lange1-2/+2
2017-11-24Fixed a spelling mistake in several comments:Thomas Lange1-2/+2
It's called "override" instead of "overwrite" in those contexts.
2017-11-13The default value for "PATHINFO.PROT" is now "https" if ↵Thomas Lange1-2/+2
$_SERVER['REQUEST_SCHEME'] is not defined (https://github.com/Nerdmind/Blog/issues/8). In addition, the default value for "PATHINFO.HOST" is now "localhost" if $_SERVER['HTTP_HOST'] is not defined.
2017-10-23There was a tiny mistake in the previous commit which has been fixed.Thomas Lange1-1/+2
2017-10-23An overwrite mechanism for the application's configuration has been ↵Thomas Lange1-2/+57
implemented. This makes the configuration.php much cleaner and you only have to define configuration values if the default values doesn't satisfy you. In addition, it makes it easier to implement new configuration values to the core without the need, that the users have to update their personal configuration.php files manually.
2017-09-02Some code optimizations has been made in admin/index.php to prevent ↵Thomas Lange1-2/+2
duplicate definitions of the same SQL query. Additionally, the default database fetch mode was changed to FETCH_ASSOC.
2017-09-02An unnecessary "else" block in admin/auth.php was removed and spelling ↵Thomas Lange1-1/+1
mistakes and inconsistencies in some comments were corrected.
2017-08-10The SQL queries for the HTTP ETag header generation have been combined into ↵Thomas Lange1-11/+8
one single query. In addition, some meaningless code was removed.
2017-04-24Parameter type declaration changed to "Throwable" because this parameter can ↵Thomas Lange1-1/+1
also be an "Error" which is not a child of "Exception" but each type implements the interface "Throwable".
2017-04-12The file "application.php" has been modified.Thomas Lange1-2/+1
2017-04-12Catch block for PDOException was modified.Thomas Lange1-2/+1
2017-04-12The function "set_exception_handler" was modified.Thomas Lange1-3/+2
2017-04-11The control structures "require_once" have been replaced by a simple ↵Thomas Lange1-3/+3
"require" (except within the 403.php and 404.php where it makes sense, because these files can be directly called or included).
2017-03-10Several changes have been made in this commit, which together with the ↵v1.1Thomas Lange1-1/+1
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/+136