Skip to content
Snippets Groups Projects
Commit 981d3e03 authored by Brett Bieber's avatar Brett Bieber
Browse files

Update the sample config file.

parent a35fd594
No related branches found
No related tags found
No related merge requests found
<?php <?php
// To rebuild dataobjects: /usr/local/php/bin/php /usr/local/php/lib/php/DB/DataObject/createTables.php ~/uptodate_DB_DataObject.ini function __autoload($class)
require_once('DB/DataObject/FormBuilder.php'); {
require_once(dirname(__FILE__).'/www/displayAlerts.php'); $file = dirname(__FILE__).'/src/'.str_replace('_', DIRECTORY_SEPARATOR, $class).'.php';
require $file;
}
$GLOBALS['database'] = 'alerts'; spl_autoload_register('__autoload');
$GLOBALS['username'] = 'alerts';
$GLOBALS['password'] = 'alerts';
$GLOBALS['dbhost'] = 'localhost';
$dsn='mysqli://'.$GLOBALS['username'].':'.$GLOBALS['password'].'@'.$GLOBALS['dbhost'].'/'.$GLOBALS['database'];
$options = &PEAR::getStaticProperty('DB_DataObject','options');
$options = array(
'database' => $dsn,
'schema_location' => dirname(__FILE__).'/src/DataObjects',
'class_location' => dirname(__FILE__).'/src/DataObjects',
'require_prefix' => dirname(__FILE__).'/src/DataObjects/',
'class_prefix' => 'DataObjects_',
'backend' => 'mdb2'
);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment