From e946eb366db13688534bc749fc79e56b3702bac9 Mon Sep 17 00:00:00 2001 From: Andre Lorbach Date: Tue, 22 Apr 2008 18:42:06 +0200 Subject: [PATCH] Removed config.php from git, this file will be created by the installer The install script will from now on create this file. Alternative, it can be created with contrib/configure.sh (uses touch command). --- src/config.php | 116 ------------------------------------------------- 1 file changed, 116 deletions(-) delete mode 100644 src/config.php diff --git a/src/config.php b/src/config.php deleted file mode 100644 index c494cc0..0000000 --- a/src/config.php +++ /dev/null @@ -1,116 +0,0 @@ - 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"; -*/ - -$CFG['Sources'][Source1]['ID'] = 'Source1'; -$CFG['Sources'][Source1]['Name'] = 'My Syslog Source'; -$CFG['Sources'][Source1]['SourceType'] = 1; -$CFG['Sources'][Source1]['LogLineType'] = 'syslog'; -$CFG['Sources'][Source1]['DiskFile'] = 'D:\!cvsroot\phplogcon\code\src\samplelogs\rsyslog'; - -// --- - -?> \ No newline at end of file