
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
*
* @license      http://www.gnu.org/licenses/gpl.html
* @author       Ibrahim <siliecom14@hotmail.com>
* @version      Version 1.0
* @package      Shoutbox
*/
// full error reporting
error_reporting(E_ALL); 

$cfg = array( );

$cfg['mysql']    = array( );
$cfg['admin']    = array( );
$cfg['site']     = array ( );


//mysql
$cfg['mysql']['host'] = 'localhost';  // host where MySQL runs
$cfg['mysql']['user'] = '*********';  // username of MySQL
$cfg['MySQL']['pass'] = '*********';  // password of MySQL
$cfg['mysql']['data'] = '*********';  // database of MySQL

//admin
$cfg['admin']['login'] = 'admin';
$cfg['admin']['pass']  = 'password in md5'; // or md5('password');

//site instellingen
$cfg['site']['temp']   = 1;
$cfg['site']['path']   = 'http://yourpath.com'; // without the /



foreach( $cfg['mysql'] as $key => $value )
{   
   if(empty( $cfg['mysql'][$key] ) )
   {
      echo 'You haven\'t filled in all the vars.<br />';
      echo 'Please fill in all de mysql vars or else mysql can\'t connect!';
      exit;
   }

}

$connectDB = @mysql_connect( $cfg['mysql']['host'], 
               		     $cfg['mysql']['user'],
	                     $cfg['MySQL']['pass']
             	           );

$selectDB  = mysql_select_db( $cfg['mysql']['data'] );

if(! $connectDB )
{
    echo 'An error has occurred: <br />';
    echo '<font color="red">';
    echo mysql_error();
    echo '</font>';
}

-------------------------------------------- 
                                                             
               DOWNLOAD DE REST                         

--------------------------------------------
?>
