-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
51 lines (40 loc) · 1.25 KB
/
config.php
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
$apiKey = "key=3420aea61e2f4cb1a8a925a0c738eaf0";
$sunlightKey = "3d31e77632dee1932263856761f7494b";
$ftmUrl = "http://api.followthemoney.org/";
$ob_end_flush;
$db = "";
$dblogin = 'oilchange';
$dbhost = '192.168.2.2';
#$dbhost = 'localhost';
$dblogin = 'oilchange';
$dbpass = 'oilchange';
$dbname = 'state_dem';
$dbport = "3306";
#$dbsocket = "/tmp/mysql.sock";
set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__).'/www/NodeViz/library/');
$debug=0;
require_once('dbaccess.php');
$states = fetchCol("select state from states");
$min_cycle = 2006;
$max_cycle = 2012;
#$remotecache = "http://states.styrotopia.net/NodeViz/";
$remotecache = "";
$orig_path = array('com'=>"backend/com_originals/", 'can'=>'backend/pics/');
function xml2array($xml) {
$object = new SimpleXMLElement($xml);
$array = array();
$meta = array();
foreach($object->attributes() as $prop=>$value) {
$meta[$prop] = "".$value;
}
foreach($object as $item) {
$entry = array();
foreach($item->attributes() as $prop=>$value) {
$entry[$prop] = "".$value;
}
$array[] = $entry;
}
return array($meta, $array);
}
?>