Location: PHPKode > projects > BugIn and Ticketing System > bugin-0.65/conf/config.inc.php
<?php

/*
 * This is the main configuration file for bugin.
 * You should create a config.local.php and add the lines
 * you need from this file.  This makes upgrading
 * less painful.
 *
 * $Id: config.inc.php,v 1.82 2003/10/30 03:51:45 notgod Exp $
 * $Revision: 1.82 $
 * $Author: notgod $
 * $Date: 2003/10/30 03:51:45 $
 */

// System information variables
$options['baseURL'] = "/bugin/";
$options['formSubmitTo'] = "";
$options['modEmail'] = "hide@address.com";
$options['formMethod'] = "post";
$options['defaultLanguage'] = 1;
$options['session_cookie_name'] = "buginSessionId";
$options['dbSessions'] = 0;
$options['dbCryptoSessions'] = 0;

$options['debug'] = $_SESSION['debug']['debug']; // Shows debug output
$options['norefresh'] = $_SESSION['debug']['norefresh']; // Shows debug output

$options['dateFormat'] = "M d, Y H:i T";

$options['anonCLAccess'] = 0;
$options['anonTicketAccess'] = 0;

// Check to see if buginBase is already set, usually by other apps like BASS
if (!isset($options['buginBase'])) {
	$options['buginBase'] = "./";
	$options['buginLibBase'] = "{$options['buginBase']}lib/";
	$options['buginIncBase'] = "{$options['buginBase']}inc/";
}

// DB stuffs.
$dbHost = "localhost";
$dbUser = "root";
$dbPass = "";
$dbName = "bugin";
$dbType = "mysql";

// Refresh options...  in seconds....
$options['listRefresh'] = 15;
$options['changelogRefresh'] = 15;

// For warning images..
$options['errorTicketAge'] = 900;

// LDAP Stuff
$options['ldapReadServer'] = "server";
$options['ldapDomain'] = "domain.com";
$options['ldapEnable'] = 0;

// Ticket warning GIFS.  0 = disable, otherwise
// it's how many seconds old a ticket is before
// the warning GIFs show up.
$options['errorTicketAge'] = 0;

// User default group (on add) (ex: 2,5 would be groups 2 and 5)
$options['defaultGroups'] = "";

// Change log enabled...
$changeLogEnable = 1;
// if open, then you don't need to be logged in to access the page.
$changeLogOpen = 1;
$changeLogRows = 5;

// Change log images...
$eregImages[0]['ereg'] = "[*]{2} status [^.]* to Closed";
$eregImages[0]['image'] = "close.png";
$eregImages[0]['replace'] = "<b>CLOSED</b>";
$eregImages[1]['ereg'] = "[\*]{2} [sS]tatus changed from [[:alnum:]]* to Open";
$eregImages[1]['image'] = "open.png";
$eregImages[1]['replace'] = "<b>OPENED</b>";
$eregImages[2]['ereg'] = "Ticket added into system";
$eregImages[2]['image'] = "open.png";
$eregImages[2]['replace'] = "<b>OPENED</b>";

//call it what you like...
$options['ticketName'] = "Bug";
$options['systemName'] = "BugIn'";

// These are options for closed/fixed ticket numbers
$options['closedNum'] = "3,7";
$options['timeWarnStatusIgnore'] = array(3,4,6);

// Admin group id
$adminUserGroup = 1;

// Ticket submit matching
$options['ticketSubmitMatch'] = 0;

// Notification stuffs
$options['notifyByName'] = 0;

/*
 * The email-templates could be found under
 * lang/email.xx.php
 */

# What status should be set on "take"
$takeStatusNum = 2;

//Enable Sign-Up
$options['signupEnable'] = 1;

//Enable submitting tickets without an account
$options['$noSignupTicketEnable'] = 0;

// Auto create accounts for those who are not signed in?
$noSignupTicketCreate = 1;

// Sorting things....
$projectSortBy = "name";

// Default Owner, can be "UID", "unowned" or "creator"
$options['defaultOwner'] = "unowned";
$options['defaultUID'] = "0";

// Default options for ticket adds
$options['defaultAddCategory'] = -1;
$options['defaultAddProject'] = -1;
$options['defaultAddPriority'] = -1;

// This is the size of the pop-up window for all info links.
$infoWindowWidth = 640;
$infoWindowHeight = 480;
$titleMatch['proj_info'] = 0;

// Regular Expressions for Signup things...
$options['unameMinLength'] = 1;
$options['passMinLength'] = 6;
$options['phoneMinLen'] = 7;
$options['phoneEreg'] = ".*";
$options['emailEreg'] = ".*@.*";
//$phoneEreg = "[0-9]{3}-[0-9]{3}-[0-9]{4}";

// List paging
$options['listNumShow'] = "15";

// Colors
$options['colorBg'] = "#ffffff";
$options['colorText'] = "#000000";
$options['colorLink'] = "#000000";
$options['colorALink'] = "#000000";
$options['colorVLink'] = "#000000";
$options['colorErrorText'] = "#ff6633";
$options['colorMessageText'] = "#ff3300";
$options['colorTableHeaderBg'] = "#999999";
$options['colorTableHeaderText'] = "#000000";
$options['colorTableBgAlt1'] = "#999999";
$options['colorTableTextAlt1'] = "#000000";
$options['colorTableBgAlt2'] = "#cccccc";
$options['colorTableTextAlt2'] = "#000000";


// Footer text
$options['footerText'] = <<<EOT
<table width="100%">
	<tr bgcolor="{$options['colorTableHeaderBg']}">
		<td>
			<font size="-2" color="{$options['colorTableHeaderText']}">BugIn {$buginVersion} - (c) 2001 <a target="_new" href="http://notgod.com/">notgod.com</a></font>
		</td>
	</tr>
</table>
EOT;

// Plugins, etc....  
// BASS is the only current plugin/add-on tool
$options['bassEnabled'] = "0";
$options['bassBase'] = "../bass/";
$options['bassBaseURL'] = "../bass/";

// Stop recursively loading config.local.php if you just copy this file over
require_once("{$options['buginBase']}conf/config.local.php");
// Include necessary libraries
// **** DO NOT KEEP THIS IN config.local.php !!!
require_once("{$options['buginLibBase']}bugin.inc.php");
require_once("{$options['buginLibBase']}adodb/adodb.inc.php");
require_once("{$options['buginLibBase']}database.inc.php");

$bugDatabase = new buginDb($dbHost, $dbUser, $dbPass, $dbName, $dbType, $options['debug']);

$options = $bugDatabase->getConfig($options);

session_name($options['session_cookie_name']);

if (isset($_REQUEST['reset'])) {
	@session_destroy();
	while (list($key, $value) = each($_COOKIE)) {
		setcookie($key, "", time() - 3600);
	}
	echo "Session Gone, Homie";
	exit;
}

if ($options['dbSessions']) {
	$ADODB_SESSION_DRIVER=$dbType;
	$ADODB_SESSION_CONNECT=$dbHost;
	$ADODB_SESSION_USER =$dbUser;
	$ADODB_SESSION_PWD =$dbPass;
	$ADODB_SESSION_DB =$dbName;
	$ADODB_SESSION_TBL = 'bugin_sessions';
	if ($options['dbCryptoSessions'])
		require_once("{$options['buginLibBase']}adodb/adodb-cryptsession.php");
	else
		require_once("{$options['buginLibBase']}adodb/adodb-session.php");
}

$options['debug'] = $_SESSION['debug']['debug']; // Shows debug output
$options['norefresh'] = $_SESSION['debug']['norefresh']; // Shows debug output

if ($options['debug'])
	$bugDatabase->db->debug = 1;

$language = $bugDatabase->lists['lang'][$options['defaultLanguage']]['name'];
require_once("{$options['buginBase']}conf/lang/lang.{$language}.php");

?>
Return current item: BugIn and Ticketing System