Location: PHPKode > projects > GeBlog > v.1/config.php
<?php
// ----------------------------------------------------------------------
// GeBlog - Weblogging system
// Copyright (C) 2003 by the GeBlog Development Team.
// https://sourceforge.net/projects/geblog/
// ----------------------------------------------------------------------
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program 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.
//
// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------
// Original Author of file: Jay Talbot
// Purpose of file: To act as a configuration file.
// ----------------------------------------------------------------------

if (eregi("config.php", $_SERVER[PHP_SELF]))
{
    die ("You can't access this file directly...");
}

// Important defines.
$GLOBALS['tplname'] = 'Default';
$GLOBALS['main'] = 'News';
$GLOBALS['title'] = "Welcome to My Blog!";
$GLOBALS['webname'] = "My Blog";
$GLOBALS['copyright'] = "All Rights Reserved.<br>Copyright &copy;Me.<br>"
                       ."Please read my <FONT SIZE=\"8px\"><a href=\"index.php?mod=NS-disclaimer\"></FONT>"
                       ."disclaimer</a>.";
$GLOBALS['time'] = date("Y-m-d H:i:s");
$GLOBALS['time2'] = date("m/d/Y H:iA");

// Setting the globals for ADODB.
$GLOBALS['dbtype'] = "mysql";
$GLOBALS['dbserver'] = "localhost";
$GLOBALS['dbname'] = "blog";
$GLOBALS['dbuser'] = "root";
$GLOBALS['dbpass'] = "";
$GLOBALS['dbpre'] = "Default";
$GLOBALS['conn'] = &NewADOConnection($GLOBALS['dbtype']);

// ADODB setup and error definitions.
error_reporting(1); # do not echo any errors
define('ADODB_ERROR_LOG_TYPE',3);
define('ADODB_ERROR_LOG_DEST','/errors.log');
$GLOBALS['ADODB_FETCH_MODE'] = ADODB_FETCH_NUM;
?>
Return current item: GeBlog