aboutsummaryrefslogtreecommitdiffstats
path: root/core/configuration-example.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-02-24 21:27:59 +0100
committerThomas Lange <code@nerdmind.de>2017-02-24 21:27:59 +0100
commit52b077a48c743ba4d08ac00520a0bf1ef6deef5f (patch)
treeb4205c194167e0e03e273957cdd0aab3be9fdf01 /core/configuration-example.php
downloadblog-52b077a48c743ba4d08ac00520a0bf1ef6deef5f.tar.gz
blog-52b077a48c743ba4d08ac00520a0bf1ef6deef5f.tar.xz
blog-52b077a48c743ba4d08ac00520a0bf1ef6deef5f.zip
Initial commit.v1.0
Diffstat (limited to 'core/configuration-example.php')
-rw-r--r--core/configuration-example.php103
1 files changed, 103 insertions, 0 deletions
diff --git a/core/configuration-example.php b/core/configuration-example.php
new file mode 100644
index 0000000..80192cf
--- /dev/null
+++ b/core/configuration-example.php
@@ -0,0 +1,103 @@
+<?php
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# Application configuration [Thomas Lange <code@nerdmind.de>] #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+# #
+# [see documentation] #
+# #
+#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#
+
+#===============================================================================
+# Core configuration
+#===============================================================================
+Application::set('CORE.LANGUAGE', 'en');
+Application::set('CORE.SEND_304', FALSE);
+
+#===============================================================================
+# Blog configuration
+#===============================================================================
+Application::set('BLOGMETA.NAME', 'My Techblog');
+Application::set('BLOGMETA.DESC', '[a creative description]');
+Application::set('BLOGMETA.HOME', 'Home');
+Application::set('BLOGMETA.MAIL', 'mail@example.org');
+Application::set('BLOGMETA.LANG', 'en');
+
+#===============================================================================
+# Settings for database connection
+#===============================================================================
+Application::set('DATABASE.HOSTNAME', 'localhost');
+Application::set('DATABASE.BASENAME', 'blog');
+Application::set('DATABASE.USERNAME', '');
+Application::set('DATABASE.PASSWORD', '');
+
+#===============================================================================
+# Backend configuration
+#===============================================================================
+Application::set('ADMIN.TEMPLATE', 'admin');
+Application::set('ADMIN.LANGUAGE', Application::get('CORE.LANGUAGE'));
+
+#===============================================================================
+# Settings for template configuration
+#===============================================================================
+Application::set('TEMPLATE.NAME', 'standard');
+Application::set('TEMPLATE.LANG', Application::get('CORE.LANGUAGE'));
+
+#===============================================================================
+# Protocol, hostname and path for this installation
+#===============================================================================
+Application::set('PATHINFO.PROT', isset($_SERVER['HTTPS']) ? 'https' : 'http');
+Application::set('PATHINFO.HOST', $_SERVER['HTTP_HOST']);
+Application::set('PATHINFO.BASE', '');
+
+#===============================================================================
+# Enable or disable the use of slug URLs for item permalinks
+#===============================================================================
+Application::set('PAGE.SLUG_URLS', TRUE);
+Application::set('POST.SLUG_URLS', TRUE);
+Application::set('USER.SLUG_URLS', TRUE);
+
+#===============================================================================
+# Number of items to display on feed and overview sites
+#===============================================================================
+Application::set('PAGE.LIST_SIZE', 10);
+Application::set('POST.LIST_SIZE', 10);
+Application::set('USER.LIST_SIZE', 10);
+Application::set('PAGE.FEED_SIZE', 25);
+Application::set('POST.FEED_SIZE', 25);
+
+#===============================================================================
+# Settings for item URL generation (you have to change the .htaccess as well!)
+#===============================================================================
+Application::set('PAGE.DIRECTORY', 'page');
+Application::set('POST.DIRECTORY', 'post');
+Application::set('USER.DIRECTORY', 'user');
+
+#===============================================================================
+# Enable or disable the use of emoticons for item content
+#===============================================================================
+Application::set('PAGE.EMOTICONS', TRUE);
+Application::set('POST.EMOTICONS', TRUE);
+Application::set('USER.EMOTICONS', TRUE);
+
+#===============================================================================
+# Number of characters to display in the items <meta> description
+#===============================================================================
+Application::set('PAGE.DESCRIPTION_SIZE', 200);
+Application::set('POST.DESCRIPTION_SIZE', 200);
+Application::set('USER.DESCRIPTION_SIZE', 200);
+
+#===============================================================================
+# "ORDER BY" clause for item sorting on feed and overview sites
+#===============================================================================
+Application::set('PAGE.LIST_SORT', 'time_insert DESC');
+Application::set('POST.LIST_SORT', 'time_insert DESC');
+Application::set('USER.LIST_SORT', 'time_insert DESC');
+Application::set('PAGE.FEED_SORT', 'time_insert DESC');
+Application::set('POST.FEED_SORT', 'time_insert DESC');
+
+#===============================================================================
+# Item attributes used to generate the <guid> hash for feed items
+#===============================================================================
+Application::set('PAGE.FEED_GUID', ['id', 'time_insert']);
+Application::set('POST.FEED_GUID', ['id', 'time_insert']);
+?> \ No newline at end of file