Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2017-05-12 | Bugfix: If the database password is removed within the first "getDatabase" ↵ | Thomas Lange | 1 | -2/+0 | |
call, it will prevent that a new connection can be enforced when calling "getDatabase(TRUE)" because the password was removed in the first call before and doesn't exist anymore (the database connection will fail because of an invalid connection password). | |||||
2017-05-12 | The method "getLanguage" has been restructured. | Thomas Lange | 1 | -1/+4 | |
2017-05-05 | Prevent "$ITEM['BODY']['HTML']()" which is a closure since version 2.1 from ↵ | Thomas Lange | 2 | -4/+8 | |
calling twice. | |||||
2017-05-05 | A significant increase in the response time has been achieved, since the ↵v2.1 | Thomas Lange | 16 | -21/+29 | |
template parameters "$ITEM['BODY']['TEXT']" and "$ITEM['BODY']['HTML']" are now no longer strings but closures (anonymous functions). This means that the underlying logic, which parses the content or converts it into Markdown, is not executed until one of these parameters is really needed and called in the template (which maybe significantly increases the response time on a long list of items which not use one of those two parameters). This means that within templates you now have to call these parameters in the following way (note the brackets at the end, which represent a function call): <?=$ITEM['BODY']['TEXT']()?> <?=$ITEM['BODY']['HTML']()?> In the background, the anonymous functions are called and executes $Item->getBody() and $Item->getHTML() only when needed. Previously, $Item->getBody() and $Item->getHTML() were basically executed and the parsed content was passed to the template, regardless of whether these parameters are required in the template or not! | |||||
2017-05-04 | CSS optimization on admin template. | Thomas Lange | 1 | -3/+2 | |
2017-05-01 | Semantic HTML5 attribute "type" with value "number" for numeric form fields ↵ | Thomas Lange | 3 | -3/+3 | |
added. | |||||
2017-05-01 | The "excerpt" function has been optimized. | Thomas Lange | 1 | -0/+1 | |
2017-04-30 | The date of publication is now displayed in the lists. | Thomas Lange | 5 | -2/+21 | |
2017-04-30 | CSS optimization (spaces between icon and text are replaced by margin). | Thomas Lange | 2 | -4/+4 | |
2017-04-30 | Hyperlinks to the documentation and the releases on GitHub added to the footer. | Thomas Lange | 2 | -2/+13 | |
2017-04-30 | Missing internationalization for feed link titles added. | Thomas Lange | 3 | -3/+3 | |
2017-04-29 | ItemFactory does not need to implement FactoryInterface because it is ↵ | Thomas Lange | 1 | -1/+1 | |
already implemented in the parent Factory class. | |||||
2017-04-29 | Template method "get" is now used to get the previously defined name of the ↵ | Thomas Lange | 2 | -2/+2 | |
page (instead of typing it twice). | |||||
2017-04-29 | The values for the "for" and "id" properties have been converted to ↵ | Thomas Lange | 4 | -47/+47 | |
lowercase (to be consistent with the rest of the HTML elements). | |||||
2017-04-29 | Two changes have been made in this commit: | Thomas Lange | 5 | -3/+41 | |
+ The method "Item::getArguments" has been optimized and checks now the syntax of the argument names (only A-Z, a-z, 0-9 and underscores are allowed). + The admin template has been changed and displays now the used arguments of an item within the list. | |||||
2017-04-29 | The function "makeSlugURL" has been modified and optimized. | Thomas Lange | 1 | -6/+10 | |
2017-04-28 | Inline javascript for emoticon and markdown replacement has been outsourced ↵ | Thomas Lange | 4 | -36/+68 | |
into the main.js file. | |||||
2017-04-27 | Router: Regular expressions for feed URLs has been combined. | Thomas Lange | 1 | -14/+2 | |
2017-04-27 | Several changes have been made in this commit, which together with the ↵v2.0 | Thomas Lange | 21 | -76/+122 | |
previous commits result in version 2.0 (database update required): + Implemented [core]: A new database field has been added to all tables to define optional "arguments" for a page, post or user through the content editor. These arguments will be parsed into key->value pairs and can be used within templates to do something special. Please read the wiki of this repository for further information about this new feature. + Bugfix [core]: The function "makeSlugURL" had not convert uppercase umlauts to lowercase because "strtolower" was used instead of the multibyte equivalent "mb_strtolower". + Optimization [core]: The first regular expression within the function "makeSlugURL" has been optimized (checking for uppercase characters at this point is unnecessary because $string is only lowercase). + Optimization [all templates]: Markup for the pagination.php has been simplified (a little bit). + Optimization [admin template]: The javascript for the arrow key navigation has been outsourced to the main.js file. + Optimization [admin template]: The javascript file will now be included with the "defer" attribute. + Optimization [standard template]: Some language variables have been changed. Database update to version 2.0 (no existing data will be lost or changed): ALTER TABLE `page` ADD `argv` VARCHAR(100) NULL DEFAULT NULL AFTER `body`; ALTER TABLE `post` ADD `argv` VARCHAR(100) NULL DEFAULT NULL AFTER `body`; ALTER TABLE `user` ADD `argv` VARCHAR(100) NULL DEFAULT NULL AFTER `body`; | |||||
2017-04-24 | HTML escaping is required to prevent XML validation errors for some ↵ | Thomas Lange | 2 | -3/+2 | |
characters like "&". | |||||
2017-04-24 | Parameter type declaration changed to "Throwable" because this parameter can ↵ | Thomas Lange | 1 | -1/+1 | |
also be an "Error" which is not a child of "Exception" but each type implements the interface "Throwable". | |||||
2017-04-24 | Nested function calls for generating the meta description are removed and a ↵ | Thomas Lange | 6 | -8/+19 | |
function was added to perform this task. | |||||
2017-04-19 | Comments added and unnecessary "abs" function calls removed. | Thomas Lange | 6 | -6/+24 | |
2017-04-12 | Internationalization for markdown format buttons added. | Thomas Lange | 6 | -28/+54 | |
2017-04-12 | Inconsistency in array keys for the admin language fixed (they are usually ↵ | Thomas Lange | 6 | -37/+37 | |
lowercase but only the keys for the labels were uppercase). | |||||
2017-04-12 | Inconsistency in the admin template parameters fixed (this does not affect ↵ | Thomas Lange | 2 | -5/+3 | |
any template parameters for the frontend templates). | |||||
2017-04-12 | The file "application.php" has been modified. | Thomas Lange | 1 | -2/+1 | |
2017-04-12 | Catch block for PDOException was modified. | Thomas Lange | 1 | -2/+1 | |
2017-04-12 | The function "set_exception_handler" was modified. | Thomas Lange | 1 | -3/+2 | |
2017-04-11 | The control structures "require_once" have been replaced by a simple ↵ | Thomas Lange | 20 | -27/+23 | |
"require" (except within the 403.php and 404.php where it makes sense, because these files can be directly called or included). | |||||
2017-04-11 | Inconsistency in class method fixed. | Thomas Lange | 1 | -1/+1 | |
2017-04-11 | All requests to "favicon.ico" will now be redirected to the current template ↵ | Thomas Lange | 2 | -1/+6 | |
directory "rsrc/favicon.ico" (if the "favicon.ico" inside the root directory does not exist). | |||||
2017-04-11 | Return type declaration "void" added. | Thomas Lange | 1 | -3/+3 | |
2017-04-11 | The system directory has been moved to a non-public directory. After the ↵v1.2 | Thomas Lange | 10 | -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-04-11 | Class "ExceptionHandler" has been removed and several files has been changed. | Thomas Lange | 32 | -43/+35 | |
2017-04-11 | Methods "error403" and "error404" has been added to the "Application" class; ↵ | Thomas Lange | 17 | -18/+33 | |
several files has been changed. | |||||
2017-04-11 | Error pages for HTTP status code 403 and 404 moved to another location ↵ | Thomas Lange | 6 | -9/+18 | |
(preparations for the next commits in which the system directory will be moved to a non-public directory). | |||||
2017-04-11 | HTML and CSS markup optimizations for admin template. | Thomas Lange | 7 | -45/+42 | |
2017-04-11 | HTML5 <article> tags has been replaced by the more semantic correct ↵ | Thomas Lange | 4 | -8/+8 | |
<blockquote> tags with "cite" attribute. | |||||
2017-04-10 | Javascript for confirmation message on delete buttons was moved to the ↵ | Thomas Lange | 4 | -3/+14 | |
main.js file to prevent trouble with an active Content-Security-Policy in a case where "unsafe-inline" for Javascript is not allowed. | |||||
2017-04-09 | A meta description on 403 and 404 error pages does not makes sense. | Thomas Lange | 2 | -10/+4 | |
2017-04-07 | Fixed inconsistency for return type declaration. | Thomas Lange | 1 | -1/+1 | |
2017-04-07 | CSS-Bugfix: Missing border was added. | Thomas Lange | 1 | -0/+2 | |
2017-03-29 | Item exceptions now inherit "ExceptionHandler" to benefit from the ↵ | Thomas Lange | 5 | -5/+5 | |
"defaultHandler" method. | |||||
2017-03-25 | HTTP response status "404 Not Found" was not sent if a route was not found. | Thomas Lange | 1 | -0/+1 | |
2017-03-20 | The "autofocus" attribute was added to the search input field. | Thomas Lange | 3 | -3/+2 | |
2017-03-20 | The javascript part was outsourced to a new file to reduce duplicate code. | Thomas Lange | 6 | -60/+30 | |
2017-03-10 | Several changes have been made in this commit, which together with the ↵v1.1 | Thomas Lange | 22 | -151/+348 | |
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-03-07 | Fixed wrong environment variable name. | Thomas Lange | 1 | -2/+2 | |
2017-03-06 | Hardcoded PDO class name replaced with $Database class. | Thomas Lange | 5 | -7/+7 | |