summaryrefslogtreecommitdiff
path: root/db_update_scripts/config.php
blob: da259ce11e1f77d31020963838e0d7fed8d40411 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php

/**
 * Copyright (c) 2007 Nathan Kinkade
 * 
 * This code is offered under an MIT (X11) license.  For more information
 * about the terms of this license see the file LICENSE included with this
 * software or visit: http://www.opensource.org/licenses/mit-license.php
 */

# Directory where USDA update files are located
$updatesDir = "./sr20_updates";

# Where to log errors and stats
$fh_log = fopen("./sr20_updates.log", "a");

# Fields are delimited with this character
$delimiter = "^";

# Fields are optionally enclosed between this character
$enclosure = "~";

# site constants that don't need to be interpolated in strings and/or
# are more sensitive will be setup as constants
define("DBHOST", "localhost"); # database host
define("DBNAME", "nutridb_sr20"); # database name
define("DBUSER", "root"); # database user
define("DBPASS", ""); # database password

define("ADODBDIR", "../lib/adodb"); # adodb db abastractions libs - adodb.sourceforge.net

require("../lib/database.class.php"); # database class  

# instantiate the database object
$db = new Database();

?>