Location: PHPKode > projects > CMS Admin > www/include/db.php
<?php

class SystemConfig
{    
	const dsn = 'mysql://hide@address.com/cmslive';
	const webroot = '';

	/**
	 * The base directory where content files are to be stored on the server.
	 * Right now its webroot/coursecontent/
	 *
	 * @var string
	 */
	const baseContentDir = '../coursecontent/';
	
	/**
	 * The base permission to give to all uploaded content files.
	 * 444 = user read, group read, global read.
	 *
	 * @var int
	 * @access private
	 */
	const baseContentPermissions = 0444; // octal, see http://www.zend.com/manual/function.chmod.php
}

function dbconnect()
{
    $db = DB::connect(SystemConfig::dsn);
    $db->setFetchMode(DB_FETCHMODE_ASSOC);
    if (PEAR::isError($db))
        die($db->getMessage());

    return $db;
}

?>
Return current item: CMS Admin