-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.php.example
More file actions
50 lines (36 loc) · 1.04 KB
/
config.php.example
File metadata and controls
50 lines (36 loc) · 1.04 KB
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
48
49
50
<?php
/*
config.php, for configuration info
12/05/12 Created this, based on Jerry's file for twt. [janith]
*/
global $config;
/* DB settings */
$config['dbhost'] = 'db';
$config['dbname'] = 'kottu';
$config['dbuser'] = 'root';
$config['dbpwd'] = 'your_mysql_root_password';
/* Index of first argument */
$config['argstart'] = 1;
/* base paths and stuff */
$config['basepath'] = 'http://localhost:8000';
/* cache times, 30 minutes for static pages, 3 minutes for dynamic ones */
$config['stacache'] = 1800;
$config['dyncache'] = 180;
/* back-end secret key */
$config['besecret'] = sha1('backendsecretkeywithunicorns');
/* facebook graph api token */
$config['fbtoken'] = '';
/* facebook app id and secret key */
$config['fbappid'] = 'id';
$config['fbappkey'] = 'key';
/* Weight given to various factors when calculating spice (adds up to 1) */
$config['twweight'] = 0;
$config['fbweight'] = 0.3;
$config['clweight'] = 0.7;
/** gravity for trend */
$config['gravity'] = 1.6;
function config($key) {
global $config;
return $config[$key];
}
?>