forked from elementary/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
33 lines (27 loc) · 814 Bytes
/
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
<?php
/**
* api/config.php
* Live-generated JSON configuration for use in client side javascript
*/
require_once __DIR__.'/../_backend/classify.current.php';
require_once __DIR__.'/../_backend/config.loader.php';
require_once __DIR__.'/../_backend/here-miss.php';
$output = array(
'release' => array(
'title' => $config['release_title'],
'version' => $config['release_version']
),
'keys' => array(
'sentry' => $config['sentry_pub'],
'stripe' => $config['stripe_pk']
),
'user' => array(
'ip' => $ip,
'region' => $region,
'timecode' => $timecode,
'trackme' => $trackme
)
);
header('Access-Control-Allow-Origin: *');
header('Content-type: application/json; charset=utf-8');
echo json_encode($output, JSON_PRETTY_PRINT);