forked from makoshark/scuttle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.inc.php.example
142 lines (130 loc) · 6.14 KB
/
config.inc.php.example
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?php
######################################################################
# SCUTTLE: Online social bookmarks manager
######################################################################
# Copyright (c) 2005 - 2010 Marcus Campbell
# http://scuttle.org/
#
# This module is to configure the main options for your site
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License.
######################################################################
######################################################################
# Database Configuration
#
# dbtype: Database driver - mysql, mysqli, mysql4, oracle, postgres,
# sqlite, db2, firebird, mssql, mssq-odbc
# dbhost: Database hostname
# dbport: Database port
# dbuser: Database username
# dbpass: Database password
# dbname: Database name
######################################################################
$dbtype = 'mysql';
$dbhost = '127.0.0.1';
$dbport = '3306';
$dbuser = 'username';
$dbpass = 'password';
$dbname = 'scuttle';
######################################################################
# Basic Configuration
######################################################################
# sitename: The name of this site
# locale: The locale used - de_DE, dk_DK, en_GB, es_ES, fr_FR, hi_IN,
# it_IT, ja_JP, lt_LT, nl_NL, pt_BR, sk_SK, zh_CN, zh_TW
# adminemail: Contact address for the site administrator. Used as the from:
# address in password retrieval e-mails.
######################################################################
$sitename = 'Scuttle';
$locale = 'en_GB';
$adminemail = '[email protected]';
######################################################################
# You have finished configuring the database!
# ONLY EDIT THE INFORMATION BELOW IF YOU KNOW WHAT YOU ARE DOING.
######################################################################
# System Configuration
#
# top_include: The header file.
# bottom_include: The footer file.
# shortdate: The format of short dates.
# longdate: The format of long dates.
# nofollow: true - Include rel="nofollow" attribute on
# bookmark links.
# false - Don't include rel="nofollow".
# defaultPerPage: The default number of bookmarks per page.
# -1 means no limit!
# defaultRecentDays: The number of days that bookmarks or tags should
# be considered recent.
# defaultOrderBy: The default order in which bookmarks will appear.
# Possible values are:
# date_desc - By date of entry descending.
# Latest entry first. (Default)
# date_asc - By date of entry ascending.
# Earliest entry first.
# mod_date_desc - By modification date descending.
# Latest modified entry first.
# mod_date_asc - By modification date ascending.
# Earliest modified entry first.
# title_desc - By title, descending alphabetically.
# title_asc - By title, ascending alphabetically.
# url_desc - By URL, descending alphabetically.
# url_asc - By URL, ascending alphabetically.
# TEMPLATES_DIR: The directory where the template files should be
# loaded from (the *.tpl.php files)
# root : Set to NULL to autodetect the root url of the website
# cookieprefix : The prefix to use for the cookies on the site
# tableprefix : The table prefix used for this installation
# cleanurls : true - Use mod_rewrite to hide PHP extensions
# : false - Don't hide extensions [Default]
#
# usecache : true - Cache pages when possible
# false - Don't cache at all [Default]
# dir_cache : The directory where cache files will be stored
#
# useredir : true - Improve privacy by redirecting all bookmarks
# through the address specified in url_redir
# false - Don't redirect bookmarks
# url_redir : URL prefix for bookmarks to redirect through
#
# filetypes : An array of bookmark extensions that Scuttle should
# add system tags for.
# reservedusers : An array of usernames that cannot be registered
# email_whitelist : Array of regex patterns. Used to whitelist addresses that
# may otherwise match the blacklist.
# email_blacklist : Array of regex patterns. Registration is blocked if a
# match is found.
######################################################################
$top_include = 'top.inc.php';
$bottom_include = 'bottom.inc.php';
$shortdate = 'd-m-Y';
$longdate = 'j F Y';
$nofollow = TRUE;
$defaultPerPage = 10;
$defaultRecentDays = 14;
$defaultOrderBy = 'date_desc';
$TEMPLATES_DIR = dirname(__FILE__) .'/templates/';
$root = NULL;
$cookieprefix = 'SCUTTLE';
$tableprefix = 'sc_';
$adminemail = '[email protected]';
$cleanurls = FALSE;
$usecache = FALSE;
$dir_cache = dirname(__FILE__) .'/cache/';
$useredir = FALSE;
$url_redir = 'http://www.google.com/url?sa=D&q=';
$filetypes = array(
'audio' => array('aac', 'mp3', 'm4a', 'oga', 'ogg', 'wav'),
'document' => array('doc', 'docx', 'odt', 'pages', 'pdf', 'txt'),
'image' => array('gif', 'jpe', 'jpeg', 'jpg', 'png', 'svg'),
'bittorrent' => array('torrent'),
'video' => array('avi', 'flv', 'mov', 'mp4', 'mpeg', 'mpg', 'm4v', 'ogv', 'wmv')
);
$reservedusers = array('all', 'watchlist');
$email_whitelist = NULL;
$email_blacklist = array(
'/(.*-){2,}/',
'/mailinator\.com/i'
);
include_once 'debug.inc.php';