From 33794b12d5c68df918b988497a396b86acb09feb Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Fri, 26 Apr 2019 20:32:48 +0200 Subject: Rename "template" directory to "theme" This commit renames the "template" directory to "theme" because "theme" is the more correct term here. --- theme/default/lang/de.php | 72 +++++++++++++++++++++++++++++++++++++++++++++++ theme/default/lang/en.php | 72 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 144 insertions(+) create mode 100644 theme/default/lang/de.php create mode 100644 theme/default/lang/en.php (limited to 'theme/default/lang') diff --git a/theme/default/lang/de.php b/theme/default/lang/de.php new file mode 100644 index 0000000..bf1b3a4 --- /dev/null +++ b/theme/default/lang/de.php @@ -0,0 +1,72 @@ +] # +#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# +# # +# This file contains template internationalization strings for the DE language # +# and can also override the existing core internationalization strings. # +# # +#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# + +#=============================================================================== +# Date format +#=============================================================================== +$LANGUAGE['date_format'] = '[D].[M].[Y] [H]:[I]'; + +#=============================================================================== +# Main navigation strings +#=============================================================================== +$LANGUAGE['navigation_home_text'] = 'Home'; +$LANGUAGE['navigation_home_desc'] = '%s'; +$LANGUAGE['navigation_search_text'] = 'Suche'; +$LANGUAGE['navigation_search_desc'] = 'Volltextsuche'; + +#=============================================================================== +# Start page title and description +#=============================================================================== +$LANGUAGE['home_heading_text'] = 'Willkommen bei %s'; +$LANGUAGE['home_heading_desc'] = 'Hallo! Hier siehst du erst einmal die letzten %d veröffentlichten Beiträge. Viel Spaß!'; + +#=============================================================================== +# Item overview description +#=============================================================================== +$LANGUAGE['post_overview_heading_desc'] = '[Seite: %d] Hier siehst du alle veröffentlichten Beiträge nach dem Zeitpunkt der Veröffentlchung sortiert.'; +$LANGUAGE['page_overview_heading_desc'] = '[Seite: %d] Hier siehst du alle veröffentlichten Seiten nach dem Zeitpunkt der Veröffentlchung sortiert.'; +$LANGUAGE['user_overview_heading_desc'] = '[Seite: %d] Hier siehst du alle vorhandenen Benutzer nach dem Zeitpunkt der Erstellung sortiert.'; + +#=============================================================================== +# Item main description +#=============================================================================== +$LANGUAGE['post_main_heading_desc'] = 'Von: %s (veröffentlicht am: %s)'; +$LANGUAGE['page_main_heading_desc'] = 'Von: %s (veröffentlicht am: %s)'; +$LANGUAGE['user_main_heading_desc'] = 'Bisher wurden von »%s« insgesamt %d Beiträge und %d Seiten veröffentlicht.'; + +#=============================================================================== +# Search request title and description +#=============================================================================== +$LANGUAGE['search_base_heading_text'] = 'Volltextsuche'; +$LANGUAGE['search_base_heading_desc'] = 'Wenn du einen bestimmten Beitrag suchst, dann kann dir die Volltext-Suchfunktion der MySQL-Datenbank bestimmt weiterhelfen.'; + +#=============================================================================== +# Search result title and description +#=============================================================================== +$LANGUAGE['search_result_heading_text'] = 'Suchergebnisse für %s'; +$LANGUAGE['search_result_heading_desc'] = 'Herzlichen Glückwunsch, deine Suchanfrage scheint erfolgreich gewesen zu sein!'; + +#=============================================================================== +# Search form placeholder text +#=============================================================================== +$LANGUAGE['search_form_placeholder'] = 'Suchbegriff eingeben …'; + +#=============================================================================== +# Error 403 +#=============================================================================== +$LANGUAGE['403_heading_text'] = 'Zugriff verweigert'; +$LANGUAGE['403_heading_desc'] = 'Der Zugriff auf diese Ressource wurde dir verweigert, da du die dafür notwendigen Berechtigungen nicht besitzt.'; + +#=============================================================================== +# Error 404 +#=============================================================================== +$LANGUAGE['404_heading_text'] = 'Nicht gefunden'; +$LANGUAGE['404_heading_desc'] = 'Die angeforderte Ressource konnte nicht gefunden werden.'; +?> \ No newline at end of file diff --git a/theme/default/lang/en.php b/theme/default/lang/en.php new file mode 100644 index 0000000..0c7f557 --- /dev/null +++ b/theme/default/lang/en.php @@ -0,0 +1,72 @@ +] # +#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# +# # +# This file contains template internationalization strings for the EN language # +# and can also override the existing core internationalization strings. # +# # +#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# + +#=============================================================================== +# Date format +#=============================================================================== +$LANGUAGE['date_format'] = '[Y]-[M]-[D] [H]:[I]'; + +#=============================================================================== +# Main navigation strings +#=============================================================================== +$LANGUAGE['navigation_home_text'] = 'Home'; +$LANGUAGE['navigation_home_desc'] = '%s'; +$LANGUAGE['navigation_search_text'] = 'Search'; +$LANGUAGE['navigation_search_desc'] = 'Fulltext search'; + +#=============================================================================== +# Start page title and description +#=============================================================================== +$LANGUAGE['home_heading_text'] = 'Welcome to %s'; +$LANGUAGE['home_heading_desc'] = 'Here you can see the last %d published posts. Have fun!'; + +#=============================================================================== +# Item overview description +#=============================================================================== +$LANGUAGE['post_overview_heading_desc'] = '[Page: %d] Here you can see all published posts ordered by the date of publication.'; +$LANGUAGE['page_overview_heading_desc'] = '[Page: %d] Here you can see all published pages ordered by the date of publication.'; +$LANGUAGE['user_overview_heading_desc'] = '[Page: %d] Here you can see all existing users ordered by the date of creation.'; + +#=============================================================================== +# Item main description +#=============================================================================== +$LANGUAGE['post_main_heading_desc'] = 'By: %s (published on: %s)'; +$LANGUAGE['page_main_heading_desc'] = 'By: %s (published on: %s)'; +$LANGUAGE['user_main_heading_desc'] = '»%s« has published a total count of %d posts and %d pages.'; + +#=============================================================================== +# Search request title and description +#=============================================================================== +$LANGUAGE['search_base_heading_text'] = 'Fulltext search'; +$LANGUAGE['search_base_heading_desc'] = 'If you are looking for a specific post, then the full-text search function of the MySQL database could help you.'; + +#=============================================================================== +# Search result title and description +#=============================================================================== +$LANGUAGE['search_result_heading_text'] = 'Search results for %s'; +$LANGUAGE['search_result_heading_desc'] = 'Congratulations, your search request seems to have been successful!'; + +#=============================================================================== +# Search form placeholder text +#=============================================================================== +$LANGUAGE['search_form_placeholder'] = 'Enter search term …'; + +#=============================================================================== +# Error 403 +#=============================================================================== +$LANGUAGE['403_heading_text'] = 'Access denied'; +$LANGUAGE['403_heading_desc'] = 'You are denied to access this resource because you do not have the necessary permissions.'; + +#=============================================================================== +# Error 404 +#=============================================================================== +$LANGUAGE['404_heading_text'] = 'Not found'; +$LANGUAGE['404_heading_desc'] = 'The requested resource could not be found.'; +?> \ No newline at end of file -- cgit v1.2.3 From cd17efc82a5ed560a50b8a1619e4e724098eb209 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Tue, 29 Oct 2019 01:37:57 +0100 Subject: Remove PHP closing tags and add LF to text files Remove the unnecessary PHP closing tags and ensure that *all* text files ending with a LF character. --- .gitignore | 2 +- .ht-nginx | 2 +- .htaccess | 2 +- 403.php | 1 - 404.php | 1 - admin/auth.php | 1 - admin/database.php | 1 - admin/index.php | 1 - admin/page/delete.php | 1 - admin/page/index.php | 1 - admin/page/insert.php | 1 - admin/page/search.php | 1 - admin/page/update.php | 1 - admin/post/delete.php | 1 - admin/post/index.php | 1 - admin/post/insert.php | 1 - admin/post/search.php | 1 - admin/post/update.php | 1 - admin/user/delete.php | 1 - admin/user/index.php | 1 - admin/user/insert.php | 1 - admin/user/update.php | 1 - core/application.php | 1 - core/configuration-example.php | 1 - core/functions.php | 1 - core/include/feed/main.php | 1 - core/include/home.php | 1 - core/include/page/list.php | 1 - core/include/page/main.php | 1 - core/include/post/list.php | 1 - core/include/post/main.php | 1 - core/include/search/main.php | 1 - core/include/user/list.php | 1 - core/include/user/main.php | 1 - core/language/de.php | 1 - core/language/en.php | 1 - core/namespace/Application.php | 1 - core/namespace/Attribute.php | 1 - core/namespace/AttributeInterface.php | 1 - core/namespace/Database.php | 1 - core/namespace/Factory.php | 1 - core/namespace/FactoryInterface.php | 1 - core/namespace/HTTP.php | 1 - core/namespace/Item.php | 1 - core/namespace/ItemFactory.php | 1 - core/namespace/ItemInterface.php | 1 - core/namespace/Language.php | 1 - core/namespace/Page/Attribute.php | 1 - core/namespace/Page/Exception.php | 1 - core/namespace/Page/Factory.php | 1 - core/namespace/Page/Item.php | 1 - core/namespace/Post/Attribute.php | 1 - core/namespace/Post/Exception.php | 1 - core/namespace/Post/Factory.php | 1 - core/namespace/Post/Item.php | 1 - core/namespace/Router.php | 1 - core/namespace/Template/Exception.php | 1 - core/namespace/Template/Factory.php | 1 - core/namespace/Template/Template.php | 1 - database.sql | 2 +- index.php | 1 - license.md | 2 +- readme.md | 2 +- theme/admin/html/403.php | 2 +- theme/admin/html/404.php | 2 +- theme/admin/html/auth.php | 2 +- theme/admin/html/database.php | 2 +- theme/admin/html/home.php | 3 ++- theme/admin/html/main.php | 2 +- theme/admin/html/pagination.php | 2 +- theme/admin/lang/de.php | 1 - theme/admin/lang/en.php | 1 - theme/admin/rsrc/font/font-awesome-fontello.json | 2 +- theme/admin/rsrc/icon-public-domain.svg | 2 +- theme/admin/rsrc/main.css | 2 +- theme/admin/rsrc/main.js | 2 +- theme/default/html/403.php | 2 +- theme/default/html/404.php | 2 +- theme/default/html/feed/item_page.php | 2 +- theme/default/html/feed/item_post.php | 2 +- theme/default/html/feed/main.php | 2 +- theme/default/html/home.php | 3 ++- theme/default/html/main.php | 2 +- theme/default/html/page/item.php | 2 +- theme/default/html/page/list.php | 2 +- theme/default/html/page/main.php | 2 +- theme/default/html/pagination.php | 2 +- theme/default/html/post/item.php | 2 +- theme/default/html/post/list.php | 2 +- theme/default/html/post/main.php | 2 +- theme/default/html/search/main.php | 2 +- theme/default/html/search/result.php | 2 +- theme/default/html/user/item.php | 2 +- theme/default/html/user/list.php | 2 +- theme/default/html/user/main.php | 2 +- theme/default/lang/de.php | 1 - theme/default/lang/en.php | 1 - theme/default/rsrc/main.css | 2 +- theme/default/rsrc/main.js | 2 +- 99 files changed, 40 insertions(+), 99 deletions(-) (limited to 'theme/default/lang') diff --git a/.gitignore b/.gitignore index c0cee83..ce3523a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ .idea/ -core/configuration.php \ No newline at end of file +core/configuration.php diff --git a/.ht-nginx b/.ht-nginx index 9f85d41..ff6b459 100644 --- a/.ht-nginx +++ b/.ht-nginx @@ -27,4 +27,4 @@ location ~ ^/(core|theme/([^/]+)/(html|lang)/) { #=============================================================================== if (!-e $request_filename) { rewrite ^(.*)$ /index.php break; -} \ No newline at end of file +} diff --git a/.htaccess b/.htaccess index f42f718..bbf32d9 100644 --- a/.htaccess +++ b/.htaccess @@ -31,4 +31,4 @@ RewriteRule ^(core|theme/([^/]+)/(html|lang)/) - [F] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d -RewriteRule ^(.*)$ index.php [L] \ No newline at end of file +RewriteRule ^(.*)$ index.php [L] diff --git a/403.php b/403.php index 54f01ba..4fbe789 100644 --- a/403.php +++ b/403.php @@ -27,4 +27,3 @@ try { catch(Template\Exception $Exception) { Application::exit($Exception->getMessage()); } -?> \ No newline at end of file diff --git a/404.php b/404.php index f3c76de..544246d 100644 --- a/404.php +++ b/404.php @@ -27,4 +27,3 @@ try { catch(Template\Exception $Exception) { Application::exit($Exception->getMessage()); } -?> \ No newline at end of file diff --git a/admin/auth.php b/admin/auth.php index e2e1b57..cec8867 100644 --- a/admin/auth.php +++ b/admin/auth.php @@ -75,4 +75,3 @@ try { catch(Template\Exception $Exception) { Application::exit($Exception->getMessage()); } -?> \ No newline at end of file diff --git a/admin/database.php b/admin/database.php index d37e158..14f34e1 100644 --- a/admin/database.php +++ b/admin/database.php @@ -49,4 +49,3 @@ try { catch(Template\Exception $Exception) { Application::exit($Exception->getMessage()); } -?> \ No newline at end of file diff --git a/admin/index.php b/admin/index.php index 1f8d9f6..6170021 100644 --- a/admin/index.php +++ b/admin/index.php @@ -89,4 +89,3 @@ try { catch(Template\Exception $Exception) { Application::exit($Exception->getMessage()); } -?> \ No newline at end of file diff --git a/admin/page/delete.php b/admin/page/delete.php index d23089c..111910b 100644 --- a/admin/page/delete.php +++ b/admin/page/delete.php @@ -63,4 +63,3 @@ try { catch(Page\Exception $Exception) { Application::error404(); } -?> \ No newline at end of file diff --git a/admin/page/index.php b/admin/page/index.php index c14bf13..090b31c 100644 --- a/admin/page/index.php +++ b/admin/page/index.php @@ -76,4 +76,3 @@ try { catch(Template\Exception $Exception) { Application::exit($Exception->getMessage()); } -?> \ No newline at end of file diff --git a/admin/page/insert.php b/admin/page/insert.php index d95a33d..4fc4d8b 100644 --- a/admin/page/insert.php +++ b/admin/page/insert.php @@ -76,4 +76,3 @@ try { catch(Template\Exception $Exception) { Application::exit($Exception->getMessage()); } -?> \ No newline at end of file diff --git a/admin/page/search.php b/admin/page/search.php index d97370d..e71a8b8 100644 --- a/admin/page/search.php +++ b/admin/page/search.php @@ -49,4 +49,3 @@ try { catch(Template\Exception $Exception) { Application::exit($Exception->getMessage()); } -?> \ No newline at end of file diff --git a/admin/page/update.php b/admin/page/update.php index f0bef1e..a7c9cd0 100644 --- a/admin/page/update.php +++ b/admin/page/update.php @@ -86,4 +86,3 @@ try { catch(Page\Exception $Exception) { Application::error404(); } -?> \ No newline at end of file diff --git a/admin/post/delete.php b/admin/post/delete.php index 78fdf6e..792b958 100644 --- a/admin/post/delete.php +++ b/admin/post/delete.php @@ -63,4 +63,3 @@ try { catch(Post\Exception $Exception) { Application::error404(); } -?> \ No newline at end of file diff --git a/admin/post/index.php b/admin/post/index.php index 57b19e9..15e2c17 100644 --- a/admin/post/index.php +++ b/admin/post/index.php @@ -76,4 +76,3 @@ try { catch(Template\Exception $Exception) { Application::exit($Exception->getMessage()); } -?> \ No newline at end of file diff --git a/admin/post/insert.php b/admin/post/insert.php index d35d527..6916a61 100644 --- a/admin/post/insert.php +++ b/admin/post/insert.php @@ -76,4 +76,3 @@ try { catch(Template\Exception $Exception) { Application::exit($Exception->getMessage()); } -?> \ No newline at end of file diff --git a/admin/post/search.php b/admin/post/search.php index c2c83ca..cd28322 100644 --- a/admin/post/search.php +++ b/admin/post/search.php @@ -49,4 +49,3 @@ try { catch(Template\Exception $Exception) { Application::exit($Exception->getMessage()); } -?> \ No newline at end of file diff --git a/admin/post/update.php b/admin/post/update.php index d2cf979..7b82bf4 100644 --- a/admin/post/update.php +++ b/admin/post/update.php @@ -86,4 +86,3 @@ try { catch(Post\Exception $Exception) { Application::error404(); } -?> \ No newline at end of file diff --git a/admin/user/delete.php b/admin/user/delete.php index 16f0d76..92aed0d 100644 --- a/admin/user/delete.php +++ b/admin/user/delete.php @@ -63,4 +63,3 @@ try { catch(User\Exception $Exception) { Application::error404(); } -?> \ No newline at end of file diff --git a/admin/user/index.php b/admin/user/index.php index b474fc8..6b3d726 100644 --- a/admin/user/index.php +++ b/admin/user/index.php @@ -72,4 +72,3 @@ try { catch(Template\Exception $Exception) { Application::exit($Exception->getMessage()); } -?> \ No newline at end of file diff --git a/admin/user/insert.php b/admin/user/insert.php index 53d35df..0a50927 100644 --- a/admin/user/insert.php +++ b/admin/user/insert.php @@ -66,4 +66,3 @@ try { catch(Template\Exception $Exception) { Application::exit($Exception->getMessage()); } -?> \ No newline at end of file diff --git a/admin/user/update.php b/admin/user/update.php index 50643aa..49ec335 100644 --- a/admin/user/update.php +++ b/admin/user/update.php @@ -76,4 +76,3 @@ try { catch(User\Exception $Exception) { Application::error404(); } -?> \ No newline at end of file diff --git a/core/application.php b/core/application.php index a9850aa..7179369 100644 --- a/core/application.php +++ b/core/application.php @@ -186,4 +186,3 @@ if(Application::get('CORE.SEND_304') === TRUE AND !defined('ADMINISTRATION')) { } } } -?> \ No newline at end of file diff --git a/core/configuration-example.php b/core/configuration-example.php index f87117b..f99d130 100644 --- a/core/configuration-example.php +++ b/core/configuration-example.php @@ -27,4 +27,3 @@ Application::set('DATABASE.PASSWORD', ''); Application::set('TEMPLATE.NAME', 'default'); Application::set('TEMPLATE.LANG', Application::get('CORE.LANGUAGE')); Application::set('ADMIN.LANGUAGE', Application::get('CORE.LANGUAGE')); -?> \ No newline at end of file diff --git a/core/functions.php b/core/functions.php index ac4478f..ef2814a 100644 --- a/core/functions.php +++ b/core/functions.php @@ -331,4 +331,3 @@ function USER(int $id): array { return []; } } -?> \ No newline at end of file diff --git a/core/include/feed/main.php b/core/include/feed/main.php index b8e03dc..cd53fa0 100644 --- a/core/include/feed/main.php +++ b/core/include/feed/main.php @@ -80,4 +80,3 @@ try { catch(Template\Exception $Exception) { Application::exit($Exception->getMessage()); } -?> \ No newline at end of file diff --git a/core/include/home.php b/core/include/home.php index ce91558..bb96837 100644 --- a/core/include/home.php +++ b/core/include/home.php @@ -52,4 +52,3 @@ try { catch(Template\Exception $Exception) { Application::exit($Exception->getMessage()); } -?> \ No newline at end of file diff --git a/core/include/page/list.php b/core/include/page/list.php index 022478e..6bda9cf 100644 --- a/core/include/page/list.php +++ b/core/include/page/list.php @@ -75,4 +75,3 @@ try { catch(Template\Exception $Exception) { Application::exit($Exception->getMessage()); } -?> \ No newline at end of file diff --git a/core/include/page/main.php b/core/include/page/main.php index 7f1aa02..6086345 100644 --- a/core/include/page/main.php +++ b/core/include/page/main.php @@ -93,4 +93,3 @@ catch(Page\Exception $Exception) { catch(User\Exception $Exception) { Application::exit($Exception->getMessage()); } -?> \ No newline at end of file diff --git a/core/include/post/list.php b/core/include/post/list.php index 3ba2dba..e3b37c3 100644 --- a/core/include/post/list.php +++ b/core/include/post/list.php @@ -75,4 +75,3 @@ try { catch(Template\Exception $Exception) { Application::exit($Exception->getMessage()); } -?> \ No newline at end of file diff --git a/core/include/post/main.php b/core/include/post/main.php index aa5dc50..d891416 100644 --- a/core/include/post/main.php +++ b/core/include/post/main.php @@ -93,4 +93,3 @@ catch(Post\Exception $Exception) { catch(User\Exception $Exception) { Application::exit($Exception->getMessage()); } -?> \ No newline at end of file diff --git a/core/include/search/main.php b/core/include/search/main.php index 8854b79..db9a77a 100644 --- a/core/include/search/main.php +++ b/core/include/search/main.php @@ -87,4 +87,3 @@ try { catch(Template\Exception $Exception) { Application::exit($Exception->getMessage()); } -?> \ No newline at end of file diff --git a/core/include/user/list.php b/core/include/user/list.php index 4ce9fc8..f715a55 100644 --- a/core/include/user/list.php +++ b/core/include/user/list.php @@ -71,4 +71,3 @@ try { catch(Template\Exception $Exception) { Application::exit($Exception->getMessage()); } -?> \ No newline at end of file diff --git a/core/include/user/main.php b/core/include/user/main.php index 4f30020..ee1fa76 100644 --- a/core/include/user/main.php +++ b/core/include/user/main.php @@ -100,4 +100,3 @@ catch(User\Exception $Exception) { Application::error404(); } } -?> \ No newline at end of file diff --git a/core/language/de.php b/core/language/de.php index 5d29d5d..2f008da 100644 --- a/core/language/de.php +++ b/core/language/de.php @@ -210,4 +210,3 @@ $LANGUAGE['title_search_results'] = 'Ergebnisse für "%s"'; $LANGUAGE['feed_name_items'] = '%s [alle Inhalte]'; $LANGUAGE['feed_name_pages'] = '%s [nur Seiten]'; $LANGUAGE['feed_name_posts'] = '%s [nur Beiträge]'; -?> \ No newline at end of file diff --git a/core/language/en.php b/core/language/en.php index dc70154..eeec0a9 100644 --- a/core/language/en.php +++ b/core/language/en.php @@ -210,4 +210,3 @@ $LANGUAGE['title_search_results'] = 'Results for "%s"'; $LANGUAGE['feed_name_items'] = '%s [all content]'; $LANGUAGE['feed_name_pages'] = '%s [only pages]'; $LANGUAGE['feed_name_posts'] = '%s [only posts]'; -?> \ No newline at end of file diff --git a/core/namespace/Application.php b/core/namespace/Application.php index a45e1e8..64e562d 100644 --- a/core/namespace/Application.php +++ b/core/namespace/Application.php @@ -163,4 +163,3 @@ class Application { exit(); } } -?> \ No newline at end of file diff --git a/core/namespace/Attribute.php b/core/namespace/Attribute.php index 32cfa0a..505a4cd 100644 --- a/core/namespace/Attribute.php +++ b/core/namespace/Attribute.php @@ -82,4 +82,3 @@ abstract class Attribute implements AttributeInterface { return $Statement->execute([$this->get('id')]); } } -?> \ No newline at end of file diff --git a/core/namespace/AttributeInterface.php b/core/namespace/AttributeInterface.php index 74cd1f1..7a7c38c 100644 --- a/core/namespace/AttributeInterface.php +++ b/core/namespace/AttributeInterface.php @@ -4,4 +4,3 @@ interface AttributeInterface { public function databaseUPDATE(\Database $Database); public function databaseDELETE(\Database $Database); } -?> \ No newline at end of file diff --git a/core/namespace/Database.php b/core/namespace/Database.php index ae233f4..54fb36b 100644 --- a/core/namespace/Database.php +++ b/core/namespace/Database.php @@ -4,4 +4,3 @@ class Database extends \PDO { parent::__construct("mysql:host={$hostname};dbname={$basename};charset=utf8mb4;", $username, $password); } } -?> \ No newline at end of file diff --git a/core/namespace/Factory.php b/core/namespace/Factory.php index 38be666..779b890 100644 --- a/core/namespace/Factory.php +++ b/core/namespace/Factory.php @@ -16,4 +16,3 @@ abstract class Factory implements FactoryInterface { return self::$storage[get_called_class()][$identifier] ?? FALSE; } } -?> \ No newline at end of file diff --git a/core/namespace/FactoryInterface.php b/core/namespace/FactoryInterface.php index 54a115b..e9017d6 100644 --- a/core/namespace/FactoryInterface.php +++ b/core/namespace/FactoryInterface.php @@ -2,4 +2,3 @@ interface FactoryInterface { public static function build($identifier); } -?> \ No newline at end of file diff --git a/core/namespace/HTTP.php b/core/namespace/HTTP.php index c8aea27..9145539 100644 --- a/core/namespace/HTTP.php +++ b/core/namespace/HTTP.php @@ -228,4 +228,3 @@ class HTTP { } } } -?> \ No newline at end of file diff --git a/core/namespace/Item.php b/core/namespace/Item.php index c009740..02de382 100644 --- a/core/namespace/Item.php +++ b/core/namespace/Item.php @@ -169,4 +169,3 @@ abstract class Item implements ItemInterface { return 0; } } -?> \ No newline at end of file diff --git a/core/namespace/ItemFactory.php b/core/namespace/ItemFactory.php index dec136f..d81ff9f 100644 --- a/core/namespace/ItemFactory.php +++ b/core/namespace/ItemFactory.php @@ -21,4 +21,3 @@ abstract class ItemFactory extends Factory { return self::build($Item::getIDByField('slug', $slug, \Application::getDatabase())); } } -?> \ No newline at end of file diff --git a/core/namespace/ItemInterface.php b/core/namespace/ItemInterface.php index e7ccb6a..efee734 100644 --- a/core/namespace/ItemInterface.php +++ b/core/namespace/ItemInterface.php @@ -2,4 +2,3 @@ interface ItemInterface { public function __construct($itemID, \Database $Database); } -?> \ No newline at end of file diff --git a/core/namespace/Language.php b/core/namespace/Language.php index fdaf104..f082b37 100644 --- a/core/namespace/Language.php +++ b/core/namespace/Language.php @@ -49,4 +49,3 @@ class Language { return $this->text($name, $params); } } -?> \ No newline at end of file diff --git a/core/namespace/Page/Attribute.php b/core/namespace/Page/Attribute.php index b1c4e01..05eaa33 100644 --- a/core/namespace/Page/Attribute.php +++ b/core/namespace/Page/Attribute.php @@ -20,4 +20,3 @@ class Attribute extends \Attribute { #=============================================================================== const TABLE = 'page'; } -?> \ No newline at end of file diff --git a/core/namespace/Page/Exception.php b/core/namespace/Page/Exception.php index d4794b7..c41bddc 100644 --- a/core/namespace/Page/Exception.php +++ b/core/namespace/Page/Exception.php @@ -2,4 +2,3 @@ namespace Page; class Exception extends \Exception {} -?> \ No newline at end of file diff --git a/core/namespace/Page/Factory.php b/core/namespace/Page/Factory.php index 4b8d390..2fcc361 100644 --- a/core/namespace/Page/Factory.php +++ b/core/namespace/Page/Factory.php @@ -2,4 +2,3 @@ namespace Page; class Factory extends \ItemFactory {} -?> \ No newline at end of file diff --git a/core/namespace/Page/Item.php b/core/namespace/Page/Item.php index e3bf6a3..d559b81 100644 --- a/core/namespace/Page/Item.php +++ b/core/namespace/Page/Item.php @@ -40,4 +40,3 @@ class Item extends \Item { return []; } } -?> \ No newline at end of file diff --git a/core/namespace/Post/Attribute.php b/core/namespace/Post/Attribute.php index 73af3a2..20aafae 100644 --- a/core/namespace/Post/Attribute.php +++ b/core/namespace/Post/Attribute.php @@ -20,4 +20,3 @@ class Attribute extends \Attribute { #=============================================================================== const TABLE = 'post'; } -?> \ No newline at end of file diff --git a/core/namespace/Post/Exception.php b/core/namespace/Post/Exception.php index 516ddbe..29b9345 100644 --- a/core/namespace/Post/Exception.php +++ b/core/namespace/Post/Exception.php @@ -2,4 +2,3 @@ namespace Post; class Exception extends \Exception {} -?> \ No newline at end of file diff --git a/core/namespace/Post/Factory.php b/core/namespace/Post/Factory.php index 4ad8ac8..20b29cc 100644 --- a/core/namespace/Post/Factory.php +++ b/core/namespace/Post/Factory.php @@ -2,4 +2,3 @@ namespace Post; class Factory extends \ItemFactory {} -?> \ No newline at end of file diff --git a/core/namespace/Post/Item.php b/core/namespace/Post/Item.php index a269ce4..0f2c6a5 100644 --- a/core/namespace/Post/Item.php +++ b/core/namespace/Post/Item.php @@ -47,4 +47,3 @@ class Item extends \Item { return []; } } -?> \ No newline at end of file diff --git a/core/namespace/Router.php b/core/namespace/Router.php index b6221d1..803a8e0 100644 --- a/core/namespace/Router.php +++ b/core/namespace/Router.php @@ -61,4 +61,3 @@ class Router { } } } -?> \ No newline at end of file diff --git a/core/namespace/Template/Exception.php b/core/namespace/Template/Exception.php index a38ee1d..3bfbf63 100644 --- a/core/namespace/Template/Exception.php +++ b/core/namespace/Template/Exception.php @@ -2,4 +2,3 @@ namespace Template; class Exception extends \Exception {} -?> \ No newline at end of file diff --git a/core/namespace/Template/Factory.php b/core/namespace/Template/Factory.php index 3b40998..7e56a79 100644 --- a/core/namespace/Template/Factory.php +++ b/core/namespace/Template/Factory.php @@ -15,4 +15,3 @@ class Factory extends \Factory implements \FactoryInterface { return $Template; } } -?> \ No newline at end of file diff --git a/core/namespace/Template/Template.php b/core/namespace/Template/Template.php index 16459fb..25034a2 100644 --- a/core/namespace/Template/Template.php +++ b/core/namespace/Template/Template.php @@ -41,4 +41,3 @@ class Template { return ob_get_clean(); } } -?> \ No newline at end of file diff --git a/database.sql b/database.sql index 3ff1063..3f77a3b 100644 --- a/database.sql +++ b/database.sql @@ -76,4 +76,4 @@ ALTER TABLE `user` MODIFY `id` tinyint(4) NOT NULL AUTO_INCREMENT; -- Add foreign keys for data integrity -- ============================================================================= ALTER TABLE `page` ADD CONSTRAINT `page_user` FOREIGN KEY (`user`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -ALTER TABLE `post` ADD CONSTRAINT `post_user` FOREIGN KEY (`user`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; \ No newline at end of file +ALTER TABLE `post` ADD CONSTRAINT `post_user` FOREIGN KEY (`user`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; diff --git a/index.php b/index.php index 842da61..70cd831 100644 --- a/index.php +++ b/index.php @@ -79,4 +79,3 @@ Router::addRedirect('favicon.ico', Application::getTemplateURL('rsrc/favicon.ico # Execute router and route requests #=============================================================================== Router::execute(parse_url(HTTP::requestURI(), PHP_URL_PATH)); -?> \ No newline at end of file diff --git a/license.md b/license.md index 444ae6d..ca0fcb0 100644 --- a/license.md +++ b/license.md @@ -6,4 +6,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/readme.md b/readme.md index 6a6e93c..e113c0a 100644 --- a/readme.md +++ b/readme.md @@ -22,4 +22,4 @@ This project is currently **not in active development**, but the *master* branch You can find more information about the configuration and customization in the wiki: * [GitHub](https://github.com/Nerdmind/Blog/wiki) -* [Mirror](https://code.nerdmind.de/blog/wiki/) \ No newline at end of file +* [Mirror](https://code.nerdmind.de/blog/wiki/) diff --git a/theme/admin/html/403.php b/theme/admin/html/403.php index 6fb3d16..f9a0afd 100644 --- a/theme/admin/html/403.php +++ b/theme/admin/html/403.php @@ -1,2 +1,2 @@

text('403_heading_text')?>

-

text('403_heading_desc')?>

\ No newline at end of file +

text('403_heading_desc')?>

diff --git a/theme/admin/html/404.php b/theme/admin/html/404.php index aa264cd..d53d1bc 100644 --- a/theme/admin/html/404.php +++ b/theme/admin/html/404.php @@ -1,2 +1,2 @@

text('404_heading_text')?>

-

text('404_heading_desc')?>

\ No newline at end of file +

text('404_heading_desc')?>

diff --git a/theme/admin/html/auth.php b/theme/admin/html/auth.php index e6bfb1e..ebb7a2a 100644 --- a/theme/admin/html/auth.php +++ b/theme/admin/html/auth.php @@ -31,4 +31,4 @@
- \ No newline at end of file + diff --git a/theme/admin/html/database.php b/theme/admin/html/database.php index 983dee7..21701bd 100644 --- a/theme/admin/html/database.php +++ b/theme/admin/html/database.php @@ -27,4 +27,4 @@
- \ No newline at end of file + diff --git a/theme/admin/html/home.php b/theme/admin/html/home.php index a8b003e..083ae30 100644 --- a/theme/admin/html/home.php +++ b/theme/admin/html/home.php @@ -42,4 +42,5 @@

text('home_no_users')?>

- \ No newline at end of file + + diff --git a/theme/admin/html/main.php b/theme/admin/html/main.php index 6002bdf..51f00e4 100644 --- a/theme/admin/html/main.php +++ b/theme/admin/html/main.php @@ -49,4 +49,4 @@ - \ No newline at end of file + diff --git a/theme/admin/html/pagination.php b/theme/admin/html/pagination.php index 42eb378..70720b6 100644 --- a/theme/admin/html/pagination.php +++ b/theme/admin/html/pagination.php @@ -27,4 +27,4 @@
- \ No newline at end of file + diff --git a/theme/admin/lang/de.php b/theme/admin/lang/de.php index 5fabdc3..0a848a6 100644 --- a/theme/admin/lang/de.php +++ b/theme/admin/lang/de.php @@ -143,4 +143,3 @@ $LANGUAGE['markdown_code'] = 'Codeblock'; $LANGUAGE['markdown_quote'] = 'Zitat'; $LANGUAGE['markdown_list_ul'] = 'Liste [ungeordnet]'; $LANGUAGE['markdown_list_ol'] = 'Liste [geordnet]'; -?> \ No newline at end of file diff --git a/theme/admin/lang/en.php b/theme/admin/lang/en.php index b082cca..174a1d7 100644 --- a/theme/admin/lang/en.php +++ b/theme/admin/lang/en.php @@ -143,4 +143,3 @@ $LANGUAGE['markdown_code'] = 'Code block'; $LANGUAGE['markdown_quote'] = 'Quote'; $LANGUAGE['markdown_list_ul'] = 'List [unordered]'; $LANGUAGE['markdown_list_ol'] = 'List [ordered]'; -?> \ No newline at end of file diff --git a/theme/admin/rsrc/font/font-awesome-fontello.json b/theme/admin/rsrc/font/font-awesome-fontello.json index 515e8a7..599f149 100644 --- a/theme/admin/rsrc/font/font-awesome-fontello.json +++ b/theme/admin/rsrc/font/font-awesome-fontello.json @@ -193,4 +193,4 @@ "src": "fontawesome" } ] -} \ No newline at end of file +} diff --git a/theme/admin/rsrc/icon-public-domain.svg b/theme/admin/rsrc/icon-public-domain.svg index e0f0b0f..88f7227 100644 --- a/theme/admin/rsrc/icon-public-domain.svg +++ b/theme/admin/rsrc/icon-public-domain.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/theme/admin/rsrc/main.css b/theme/admin/rsrc/main.css index dbb1dce..f9560e9 100644 --- a/theme/admin/rsrc/main.css +++ b/theme/admin/rsrc/main.css @@ -976,4 +976,4 @@ label:after { font-family: Ruda; font-weight: 700; src: url("font/ruda-n-700.woff2") format("woff2"); -} \ No newline at end of file +} diff --git a/theme/admin/rsrc/main.js b/theme/admin/rsrc/main.js index 46880f2..842ef47 100644 --- a/theme/admin/rsrc/main.js +++ b/theme/admin/rsrc/main.js @@ -157,4 +157,4 @@ if(document.getElementById("delete-button")) { }; } } -})(); \ No newline at end of file +})(); diff --git a/theme/default/html/403.php b/theme/default/html/403.php index 337dd44..1e78316 100644 --- a/theme/default/html/403.php +++ b/theme/default/html/403.php @@ -8,4 +8,4 @@ #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# ?>

text('403_heading_text')?>

-

text('403_heading_desc')?>

\ No newline at end of file +

text('403_heading_desc')?>

diff --git a/theme/default/html/404.php b/theme/default/html/404.php index 54866a4..9495944 100644 --- a/theme/default/html/404.php +++ b/theme/default/html/404.php @@ -8,4 +8,4 @@ #%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%# ?>

text('404_heading_text')?>

-

text('404_heading_desc')?>

\ No newline at end of file +

text('404_heading_desc')?>

diff --git a/theme/default/html/feed/item_page.php b/theme/default/html/feed/item_page.php index ff9f209..82568a1 100644 --- a/theme/default/html/feed/item_page.php +++ b/theme/default/html/feed/item_page.php @@ -24,4 +24,4 @@ $HTML = $PAGE['BODY']['HTML'](); - \ No newline at end of file + diff --git a/theme/default/html/feed/item_post.php b/theme/default/html/feed/item_post.php index 07d400d..0bf23fc 100644 --- a/theme/default/html/feed/item_post.php +++ b/theme/default/html/feed/item_post.php @@ -24,4 +24,4 @@ $HTML = $POST['BODY']['HTML'](); - \ No newline at end of file + diff --git a/theme/default/html/feed/main.php b/theme/default/html/feed/main.php index 588ee02..317bd31 100644 --- a/theme/default/html/feed/main.php +++ b/theme/default/html/feed/main.php @@ -49,4 +49,4 @@ switch($FEED['TYPE']) { - \ No newline at end of file + diff --git a/theme/default/html/home.php b/theme/default/html/home.php index 3f6ba47..b412f22 100644 --- a/theme/default/html/home.php +++ b/theme/default/html/home.php @@ -16,4 +16,5 @@ - \ No newline at end of file + + diff --git a/theme/default/html/main.php b/theme/default/html/main.php index 46f4f09..5d9284a 100644 --- a/theme/default/html/main.php +++ b/theme/default/html/main.php @@ -99,4 +99,4 @@ $BLOGMETA_DESC = escapeHTML($BLOGMETA['DESC']); - \ No newline at end of file + diff --git a/theme/default/html/page/item.php b/theme/default/html/page/item.php index 00da4c2..20937b9 100644 --- a/theme/default/html/page/item.php +++ b/theme/default/html/page/item.php @@ -17,4 +17,4 @@

- \ No newline at end of file + diff --git a/theme/default/html/page/list.php b/theme/default/html/page/list.php index c4a04b2..665301e 100644 --- a/theme/default/html/page/list.php +++ b/theme/default/html/page/list.php @@ -16,4 +16,4 @@ - \ No newline at end of file + diff --git a/theme/default/html/page/main.php b/theme/default/html/page/main.php index 1f8e140..7e37805 100644 --- a/theme/default/html/page/main.php +++ b/theme/default/html/page/main.php @@ -31,4 +31,4 @@ $time = "