-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_example.php
48 lines (40 loc) · 948 Bytes
/
config_example.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
<?php
/**
* @file
*/
/**
* Endpoints this platform supports, For now the keys are fixed in the API, the
* values are local class names in eponymous .php files the resources directory,
* @var array
*/
global $framework, $endpoints;
$framework = 'cforge8';
$endpoints = array(
//endpoint => classname
'transaction' => 'transaction',
'offer' => 'offer',
'want' => 'want',
'member' => 'member'
);
/**
* Generate the configuration array.
*
* Called from index.php
*
* @global array $endpoints
* @return array
* Keys and values specified in the API
*/
function commex_config() {
global $endpoints;
$config = array(
'versions' => array(COMMEX_VERSIONS),
'logo' => 'http://myfunkysite.com/logo.gif',
'slider' => array(),// urls to background
'sitename' => 'My funkky site',//the site name of the exchange
'css' => '',
'endpoints' => $endpoints,
'language' => 'en'
);
return $config;
}