-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfig.php
47 lines (42 loc) · 1.19 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
<?php
/**
* Digg Lite reference application
*
* @author Bill Shupp <[email protected]>
* @author Jeff Hodsdon <[email protected]>
* @copyright 2009 Digg, Inc.
* @license http://www.opensource.org/licenses/bsd-license.php FreeBSD
* @link http://digglite.com
*/
ini_set('include_path', '../PEAR:../lib:' . get_include_path());
require_once 'DiggLite.php';
DiggLite::$options = array(
'debug' => 0,
'apiKey' => 'key',
'apiSecret' => 'secret',
'apiUrl' => 'http://services.digg.com',
'apiEndpoint' => 'http://services.digg.com/1.0/endpoint',
'callback' => 'http://yourwebsite.com/callback.php',
'authorizeUrl' => 'http://digg.com/oauth/authenticate',
/*
'cache' => 'Memcache',
*/
'cache' => 'CacheLite',
'cacheOptions' => array(
/*
'servers' => array(
array(
'host' => 'localhost',
'port' => 11211,
'timeout' => 1
)
)
*/
'cacheDir' => '/tmp/digglite/',
'lifeTime' => 60,
'hashedDirectoryLevel' => 2
)
);
session_module_name('files');
session_start();
?>