This repository has been archived by the owner on Nov 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
hdconfig.php
40 lines (39 loc) · 1.99 KB
/
hdconfig.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
<?php
/**
* Handset Detection v4.0 API Kit configuration file
*
* Config file options
*
* username : your api username * Required : From 'Dashboard (Manage Sites Section) > Site Settings > Cloud ' Page
* secret : your api secret * Required : From 'Dashboard (Manage Sites Section) > Site Settings > Cloud ' Page
* site_id : the site_id to be used for these queries * Required : From 'Dashboard (Manage Sites Section) > Site Settings > Cloud ' Page
* filesdir : defaults to the installation directory - when set any downloaded files and any file caches will be setup here eg /tmp
* use_local : set to true if you're using an Ultimate licence (download the data set and perform detections locally)
* api_server : defaults to api.handsetdetection.com - Use a different hostname to force connections to a different server pool
* debug : defaults to false - Set to true to log interesting messages to syslog
* retries : default 3 - number of times a connection is retried
* use_proxy : set to true to connect through a proxy server
* proxy_server : address of proxy server
* proxy_port : port of proxy server
* proxy_user : if proxy server requires a username
* proxy_pass : if proxy server requires a password
* log_unknown : Anonymously log unclassified http headers - Fast (uses UDP) places no strain on the system.
* log_generics : Anonymously log generic replies (so we can do a better job picking them up) - Fast (uses UDP) places no strain on the system.
**/
$hdconfig['username'] = "your_api_username";
$hdconfig['secret'] = "your_api_secret";
$hdconfig['site_id'] = "your_api_siteId";
$hdconfig['use_local'] = false;
$hdconfig['filesdir'] = '/tmp';
$hdconfig['debug'] = false;
$hdconfig['api_server'] = 'api.handsetdetection.com';
$hdconfig['cache_requests'] = false;
$hdconfig['geoip'] = true;
$hdconfig['timeout'] = 10;
$hdconfig['use_proxy'] = false;
$hdconfig['proxy_server'] = '';
$hdconfig['proxy_port'] = '';
$hdconfig['proxy_user'] = '';
$hdconfig['proxy_pass'] = '';
$hdconfig['retries'] = 3;
$hdconfig['log_unknown'] = true;