diff --git a/contrib/config.sample.php b/contrib/config.sample.php
new file mode 100644
index 0000000..25603eb
--- /dev/null
+++ b/contrib/config.sample.php
@@ -0,0 +1,111 @@
+ Configuration need variables for the Database connection
+ *
+ * Copyright (C) 2008 Adiscon GmbH.
+ *
+ * This file is part of phpLogCon.
+ *
+ * PhpLogCon is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PhpLogCon is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with phpLogCon. If not, see .
+ *
+ * A copy of the GPL can be found in the file "COPYING" in this
+ * distribution.
+ *********************************************************************
+*/
+
+// --- Avoid directly accessing this file!
+if ( !defined('IN_PHPLOGCON') )
+{
+ die('Hacking attempt');
+ exit;
+}
+// ---
+
+// --- Database options
+$CFG['UserDBEnabled'] = false;
+$CFG['UserDBServer'] = "";
+$CFG['UserDBPort'] = 3306;
+$CFG['UserDBName'] = "";
+$CFG['UserDBPref'] = "";
+$CFG['UserDBUser'] = "";
+$CFG['UserDBPass'] = "";
+// ---
+
+// --- Misc Options
+$CFG['MiscShowDebugMsg'] = 1; // if enabled, you will get additional output on certain places
+$CFG['MiscShowDebugGridCounter'] = 1; // Only for debugging purposes, will add a counter column into the grid!
+$CFG["MiscShowPageRenderStats"] = 1; // If enabled, you will see Pagerender Settings
+// ---
+
+// --- Default Frontend Options
+$CFG['ViewUseTodayYesterday'] = 1; // If enabled, the date from today and yesterday is displayed as "today" and "yesterday"
+$CFG['ViewMessageCharacterLimit'] = 80; // Default character limit for the message gets trunscated.
+$CFG['ViewEntriesPerPage'] = 50; // Default number of syslog entries shown per page
+$CFG['ViewEnableDetailPopups'] = 1; // If enabled, you will see additional Details for each syslog message on mouse over.
+
+$CFG['SearchCustomButtonCaption'] = "I'd like to feel sad"; // Default caption for the custom fast search button
+$CFG['SearchCustomButtonSearch'] = "error"; // Default search string for the custom search button
+// ---
+
+// --- Define which fields you want to see
+//$CFG['ShowMessage'] = true; // If enabled, the Message column will be appended to the columns list.
+$CFG['Columns'][] = SYSLOG_DATE;
+$CFG['Columns'][] = SYSLOG_FACILITY;
+$CFG['Columns'][] = SYSLOG_SEVERITY;
+$CFG['Columns'][] = SYSLOG_HOST;
+$CFG['Columns'][] = SYSLOG_SYSLOGTAG;
+$CFG['Columns'][] = SYSLOG_MESSAGETYPE;
+$CFG['Columns'][] = SYSLOG_MESSAGE;
+// ---
+
+// --- Predefined Searches!
+$CFG['Search'][] = array ( "DisplayName" => "Syslog Warnings and Errors", "SearchQuery" => "filter=severity%3A0%2C1%2C2%2C3%2C4&search=Search" );
+$CFG['Search'][] = array ( "DisplayName" => "Syslog Errors", "SearchQuery" => "filter=severity%3A0%2C1%2C2%2C3&search=Search" );
+$CFG['Search'][] = array ( "DisplayName" => "All messages from the last hour", "SearchQuery" => "filter=datelastx%3A1&search=Search" );
+$CFG['Search'][] = array ( "DisplayName" => "All messages from last 12 hours", "SearchQuery" => "filter=datelastx%3A2&search=Search" );
+$CFG['Search'][] = array ( "DisplayName" => "All messages from last 24 hours", "SearchQuery" => "filter=datelastx%3A3&search=Search" );
+$CFG['Search'][] = array ( "DisplayName" => "All messages from last 7 days", "SearchQuery" => "filter=datelastx%3A4&search=Search" );
+$CFG['Search'][] = array ( "DisplayName" => "All messages from last 31 days", "SearchQuery" => "filter=datelastx%3A5&search=Search" );
+// $CFG['Search'][] = array ( "DisplayName" => "", "SearchQuery" => "" );
+// ---
+
+// --- Source Options
+/* Example for DiskType Source:
+ $CFG['Sources'][Source1]['ID'] = "Source1";
+ $CFG['Sources'][Source1]['Name'] = "Syslog Disk File";
+ $CFG['Sources'][Source1]['SourceType'] = SOURCE_DISK;
+ $CFG['Sources'][Source1]['LogLineType'] = "syslog";
+ $CFG['Sources'][Source1]['DiskFile'] = "/var/log/syslog";
+
+ $CFG['Sources'][Source2]['ID'] = "Source5";
+ $CFG['Sources'][Source2]['Name'] = "WinSyslog DB";
+ $CFG['Sources'][Source2]['SourceType'] = SOURCE_DB;
+ $CFG['Sources'][Source2]['DBTableType'] = "winsyslog";
+ $CFG['Sources'][Source2]['DBType'] = DB_MYSQL;
+ $CFG['Sources'][Source2]['DBServer'] = "localhost";
+ $CFG['Sources'][Source2]['DBName'] = "phplogcon";
+ $CFG['Sources'][Source2]['DBUser'] = "root";
+ $CFG['Sources'][Source2]['DBPassword'] = "";
+ $CFG['Sources'][Source2]['DBTableName'] = "systemevents";
+*/
+
+// --- %Insert Source Here%
+// ---
+
+?>
\ No newline at end of file
diff --git a/contrib/config.sample.php.bak b/contrib/config.sample.php.bak
new file mode 100644
index 0000000..25603eb
--- /dev/null
+++ b/contrib/config.sample.php.bak
@@ -0,0 +1,111 @@
+ Configuration need variables for the Database connection
+ *
+ * Copyright (C) 2008 Adiscon GmbH.
+ *
+ * This file is part of phpLogCon.
+ *
+ * PhpLogCon is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * PhpLogCon is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with phpLogCon. If not, see .
+ *
+ * A copy of the GPL can be found in the file "COPYING" in this
+ * distribution.
+ *********************************************************************
+*/
+
+// --- Avoid directly accessing this file!
+if ( !defined('IN_PHPLOGCON') )
+{
+ die('Hacking attempt');
+ exit;
+}
+// ---
+
+// --- Database options
+$CFG['UserDBEnabled'] = false;
+$CFG['UserDBServer'] = "";
+$CFG['UserDBPort'] = 3306;
+$CFG['UserDBName'] = "";
+$CFG['UserDBPref'] = "";
+$CFG['UserDBUser'] = "";
+$CFG['UserDBPass'] = "";
+// ---
+
+// --- Misc Options
+$CFG['MiscShowDebugMsg'] = 1; // if enabled, you will get additional output on certain places
+$CFG['MiscShowDebugGridCounter'] = 1; // Only for debugging purposes, will add a counter column into the grid!
+$CFG["MiscShowPageRenderStats"] = 1; // If enabled, you will see Pagerender Settings
+// ---
+
+// --- Default Frontend Options
+$CFG['ViewUseTodayYesterday'] = 1; // If enabled, the date from today and yesterday is displayed as "today" and "yesterday"
+$CFG['ViewMessageCharacterLimit'] = 80; // Default character limit for the message gets trunscated.
+$CFG['ViewEntriesPerPage'] = 50; // Default number of syslog entries shown per page
+$CFG['ViewEnableDetailPopups'] = 1; // If enabled, you will see additional Details for each syslog message on mouse over.
+
+$CFG['SearchCustomButtonCaption'] = "I'd like to feel sad"; // Default caption for the custom fast search button
+$CFG['SearchCustomButtonSearch'] = "error"; // Default search string for the custom search button
+// ---
+
+// --- Define which fields you want to see
+//$CFG['ShowMessage'] = true; // If enabled, the Message column will be appended to the columns list.
+$CFG['Columns'][] = SYSLOG_DATE;
+$CFG['Columns'][] = SYSLOG_FACILITY;
+$CFG['Columns'][] = SYSLOG_SEVERITY;
+$CFG['Columns'][] = SYSLOG_HOST;
+$CFG['Columns'][] = SYSLOG_SYSLOGTAG;
+$CFG['Columns'][] = SYSLOG_MESSAGETYPE;
+$CFG['Columns'][] = SYSLOG_MESSAGE;
+// ---
+
+// --- Predefined Searches!
+$CFG['Search'][] = array ( "DisplayName" => "Syslog Warnings and Errors", "SearchQuery" => "filter=severity%3A0%2C1%2C2%2C3%2C4&search=Search" );
+$CFG['Search'][] = array ( "DisplayName" => "Syslog Errors", "SearchQuery" => "filter=severity%3A0%2C1%2C2%2C3&search=Search" );
+$CFG['Search'][] = array ( "DisplayName" => "All messages from the last hour", "SearchQuery" => "filter=datelastx%3A1&search=Search" );
+$CFG['Search'][] = array ( "DisplayName" => "All messages from last 12 hours", "SearchQuery" => "filter=datelastx%3A2&search=Search" );
+$CFG['Search'][] = array ( "DisplayName" => "All messages from last 24 hours", "SearchQuery" => "filter=datelastx%3A3&search=Search" );
+$CFG['Search'][] = array ( "DisplayName" => "All messages from last 7 days", "SearchQuery" => "filter=datelastx%3A4&search=Search" );
+$CFG['Search'][] = array ( "DisplayName" => "All messages from last 31 days", "SearchQuery" => "filter=datelastx%3A5&search=Search" );
+// $CFG['Search'][] = array ( "DisplayName" => "", "SearchQuery" => "" );
+// ---
+
+// --- Source Options
+/* Example for DiskType Source:
+ $CFG['Sources'][Source1]['ID'] = "Source1";
+ $CFG['Sources'][Source1]['Name'] = "Syslog Disk File";
+ $CFG['Sources'][Source1]['SourceType'] = SOURCE_DISK;
+ $CFG['Sources'][Source1]['LogLineType'] = "syslog";
+ $CFG['Sources'][Source1]['DiskFile'] = "/var/log/syslog";
+
+ $CFG['Sources'][Source2]['ID'] = "Source5";
+ $CFG['Sources'][Source2]['Name'] = "WinSyslog DB";
+ $CFG['Sources'][Source2]['SourceType'] = SOURCE_DB;
+ $CFG['Sources'][Source2]['DBTableType'] = "winsyslog";
+ $CFG['Sources'][Source2]['DBType'] = DB_MYSQL;
+ $CFG['Sources'][Source2]['DBServer'] = "localhost";
+ $CFG['Sources'][Source2]['DBName'] = "phplogcon";
+ $CFG['Sources'][Source2]['DBUser'] = "root";
+ $CFG['Sources'][Source2]['DBPassword'] = "";
+ $CFG['Sources'][Source2]['DBTableName'] = "systemevents";
+*/
+
+// --- %Insert Source Here%
+// ---
+
+?>
\ No newline at end of file
diff --git a/contrib/configure.sh b/contrib/configure.sh
new file mode 100644
index 0000000..9556cc7
--- /dev/null
+++ b/contrib/configure.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+touch ../src/config.php
+chmod 666 ../src/config.php
diff --git a/contrib/configure.sh.bak b/contrib/configure.sh.bak
new file mode 100644
index 0000000..180ef16
--- /dev/null
+++ b/contrib/configure.sh.bak
@@ -0,0 +1,2 @@
+#!/bin/sh
+chmod 666 ../src/config.php
diff --git a/contrib/secure.sh b/contrib/secure.sh
new file mode 100644
index 0000000..c7e4d38
--- /dev/null
+++ b/contrib/secure.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+chmod 644 ../src/config.php