forked from ArthurHoaro/shaarli-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php.dist
75 lines (64 loc) · 1.85 KB
/
config.php.dist
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
/**
* Shaarli REST API
*
* @version 1.1
*
* @author: nexen
* mail: [email protected]
* irc: nexen irc.freenode.net #debian
*
* @contributors:
* ArthurHoaro (https://github.com/ArthurHoaro)
* Oros (https://github.com/Oros42/shaarli-river)
*/
/**
* Database configuration
*/
// MySQL
define('DB_TYPE', 'mysql');
define('DB_HOST', 'localhost');
define('DB_NAME', 'shaarli-api');
define('DB_USER', 'shaarli-api');
define('DB_PASS', 'shaarli-api');
// PostgreSQL
//define('DB_TYPE', 'pgsql');
//define('DB_HOST', 'localhost');
//define('DB_NAME', 'shaarli-api');
//define('DB_USER', 'shaarli-api');
//define('DB_PASS', 'shaarli-api');
// SQLite
//define('DB_TYPE', 'sqlite');
// Favicon directory
define('FAVICON_DIRECTORY', __DIR__ . '/favicon/');
define('FAVICON_DEFAULT', 'default.ico');
// Reload favicon each month
define('FAVICON_CACHE_DURATION', 3600*24*30);
define('DEBUG', false);
// Ne toucher à rien après cette ligne si vous ne savez pas se que vous faite =)
/**
* Sync configuration
*/
// TODO ajouter la recherche de liste sur https://github.com/Oros42/find_shaarlis
// Synchronisation de la liste des shaarlis avec d'autre shaarli-api ou export au format JSON
function shaarli_api_nodes() {
return array(
// Nexen
//'https://nexen.mkdir.fr/shaarli-api/feeds',
// Porneia (http://porneia.free.fr/pub/bazaar/shaarli_online.html)
// 'https://nexen.mkdir.fr/dropbox/porneia.json',
// Arthur Hoaro
'http://river.hoa.ro/api/'
);
}
// Synchronisation de la liste des shaarlis avec des exports OPML
function shaarli_opml_files() {
return array(
// Oros OPML
'https://ecirtam.net/find_shaarlis/out/shaarlis.opml',
// shaarli.fr OPML
'https://shaarli.fr/opml.php?mod=opml',
// shaarlis_list ( https://github.com/Oros42/shaarlis_list )
'https://raw.githubusercontent.com/Oros42/shaarlis_list/master/shaarlis.opml'
);
}