Location: PHPKode > projects > Pothos > pothos-0.1.1/includes/config.inc
<?
///////////////////////////////////////////////////////////////////////////////////////
// Pothos - IPTables Firewall Tool
// Copyright (c) 2004, Ken Stanley
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
//  - Redistributions of source code must retain the above copyright notice, this list
//    of conditions and the following disclaimer.
//  - Redistributions in binary form must reproduce the above copyright notice, this
//    list of conditions and the following disclaimer in the documentation and/or other
//    materials provided with the distribution.
//  - Neither the name of the Author nor the names of its contributors may be
//    used to endorse or promote products derived from this software without specific
//    prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
// SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
// TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
// BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
// DAMAGE.
//
// Contact author : hide@address.com
///////////////////////////////////////////////////////////////////////////////////////
$preferences = array(
// This begins the configuration file for Pothos.
// Please, please, PLEASE pay attention to your settings.
// For detailed explanations of these settings, please
// read the README file.
///////////////////////////////////////////////////////////////////////////////////
// MySQL: These are the settings for your MySQL configuration.
//        Typically this is the same information you set up in
//        the ulogd.conf file. (Required)
'mysql'		=> array(
		'persist'	=> 'true',
		'user'		=> 'user',
		'pass'		=> 'pass',
		'dbase'		=> 'ulogd',
		'host'		=> 'localhost'),

////////////////////////////////////////////////////////////////////////////////////
// Server Path: Define the root directory for Pothos. (Required)
'path'	=> "/pothos",

////////////////////////////////////////////////////////////////////////////////////
// Dynamic Page Title: Randomizes the default page <title>. (Optional)
// This is purely cosmetic.
'title'	=> array(
	"Analyzing IPTables Since 2004",
	"Got Hits?",
	"When VI just doesn't cut it anymore.",
	"Help! I'm stuck in the titlebar!",
	"Hey, what are you looking at?!",
	"Am I here to amuse you?",
	"asphinxtersayswhat?",
	"Bridging the gap between the keyboard and the chair!"),

/////////////////////////////////////////////////////////////////////////////////
// Verbose 404: Setting this to true will dump the contents of $_SERVER
// out to the web browser. If you are paranoid, set this to false. (Optional)
'verbose_error'	=> "false",

/////////////////////////////////////////////////////////////////////////////////
// Trunicate: Set this variable to trunicate all addresses after N characters. 
// If you do not wish to trunicate the addresses, then put a zero (0). (Optional)
'trunicate'	=> "25",

/////////////////////////////////////////////////////////////////////////////////
// Layout - Which side of the page should the modules appear on? (Optional)
'layout'	=> 'left',

/////////////////////////////////////////////////////////////////////////////////
// Display: Default settings for LIMIT, which chains to display, things like that.
'display'	=> array(
		'chain'		=> 'All',
		'limit'		=> array(
			'All'	=> 'false',
			'10'	=> 'false',
			'20'	=> 'true',
			'50'	=> 'false',
			'100'	=> 'false')
),

/////////////////////////////////////////////////////////////////////////////////
// Resolve: True/False - If true then it will attempt to resolve all IP addresses
// using gethostbyaddr. Know that this can slow down the app for slow responding
// and/or unresolvable addresses. Set to false to speed up the application.
// NOTE: This setting will not affect retrieving the full record.
'resolve'	=> 'false',

/////////////////////////////////////////////////////////////////////////////////
// Custom Fields: WARNING: This is for advanced use ONLY. If you are unsure about
// these fields, then LEAVE THEM ALONE. If for some reason you accidentally messed
// them up, here is a list of the default fields:
// id,oob_time_sec,oob_prefix,ip_saddr,ip_protocol,tcp_sport,tcp_dport,
// udp_sport,udp_dport
// (At your own risk!)
'fields'	=> array(
	"oob_prefix",
	"oob_time_sec",
	"ip_protocol",
	"oob_in",
	"ip_saddr",
	"tcp_sport",
	"tcp_dport",
	"udp_sport",
	"udp_dport")
);

global $preferences;
// End configuration. Have a nice day! ^_^
?>
Return current item: Pothos