forked from abemedia/shareCount
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
27 lines (21 loc) · 1000 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
<?php
class Config {
/* global cache settings */
public $cache = ''; // 'memcache', 'apc' or 'file' - leave blank to disable caching
public $cache_time = 86400; // in seconds e.g. 86400 = 24h
/* memcache settings - only required if cache set to memcache */
public $cache_server = 'localhost';
public $cache_port = 11211;
public $cache_persistent = true;
/* filecache settings - only required if cache set to file */
public $cache_directory = './cache/'; // needs trailing slash!
/* database settings - only required to track shares */
public $db_type = 'mysql';
public $db_host = 'localhost';
public $db_name = 'sharecount';
public $db_user = 'root';
public $db_pass = '';
/* default output settings - ignored if url parameter has been passed */
public $format = 'json'; // 'json', 'jsonp' or 'xml'
public $callback = 'processShares'; // default jsonp callback function name
}