2 ######################################################################
3 # SCUTTLE: Online social bookmarks manager
4 ######################################################################
5 # Copyright (c) 2005 - 2010 Marcus Campbell
8 # This module is to configure the main options for your site
10 # This program is free software. You can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; either version 2 of the License.
13 ######################################################################
15 ######################################################################
16 # Database Configuration
18 # dbtype: Database driver - mysql, mysqli, mysql4, oracle, postgres,
19 # sqlite, db2, firebird, mssql, mssq-odbc
20 # dbhost: Database hostname
21 # dbport: Database port
22 # dbuser: Database username
23 # dbpass: Database password
24 # dbname: Database name
25 ######################################################################
28 $dbhost = '127.0.0.1';
34 ######################################################################
36 ######################################################################
37 # sitename: The name of this site
38 # locale: The locale used - de_DE, dk_DK, en_GB, es_ES, fr_FR, hi_IN,
39 # it_IT, ja_JP, lt_LT, nl_NL, pt_BR, sk_SK, zh_CN, zh_TW
40 # adminemail: Contact address for the site administrator. Used as the from:
41 # address in password retrieval e-mails.
42 ######################################################################
44 $sitename = 'Scuttle';
46 $adminemail = 'admin@example.org';
48 ######################################################################
49 # You have finished configuring the database!
50 # ONLY EDIT THE INFORMATION BELOW IF YOU KNOW WHAT YOU ARE DOING.
51 ######################################################################
52 # System Configuration
54 # top_include: The header file.
55 # bottom_include: The footer file.
56 # shortdate: The format of short dates.
57 # longdate: The format of long dates.
58 # nofollow: true - Include rel="nofollow" attribute on
60 # false - Don't include rel="nofollow".
61 # defaultPerPage: The default number of bookmarks per page.
63 # defaultRecentDays: The number of days that bookmarks or tags should
64 # be considered recent.
65 # defaultOrderBy: The default order in which bookmarks will appear.
66 # Possible values are:
67 # date_desc - By date of entry descending.
68 # Latest entry first. (Default)
69 # date_asc - By date of entry ascending.
70 # Earliest entry first.
71 # mod_date_desc - By modification date descending.
72 # Latest modified entry first.
73 # mod_date_asc - By modification date ascending.
74 # Earliest modified entry first.
75 # title_desc - By title, descending alphabetically.
76 # title_asc - By title, ascending alphabetically.
77 # url_desc - By URL, descending alphabetically.
78 # url_asc - By URL, ascending alphabetically.
79 # TEMPLATES_DIR: The directory where the template files should be
80 # loaded from (the *.tpl.php files)
81 # root : Set to NULL to autodetect the root url of the website
82 # cookieprefix : The prefix to use for the cookies on the site
83 # tableprefix : The table prefix used for this installation
84 # cleanurls : true - Use mod_rewrite to hide PHP extensions
85 # : false - Don't hide extensions [Default]
87 # usecache : true - Cache pages when possible
88 # false - Don't cache at all [Default]
89 # dir_cache : The directory where cache files will be stored
91 # useredir : true - Improve privacy by redirecting all bookmarks
92 # through the address specified in url_redir
93 # false - Don't redirect bookmarks
94 # url_redir : URL prefix for bookmarks to redirect through
96 # filetypes : An array of bookmark extensions that Scuttle should
97 # add system tags for.
98 # reservedusers : An array of usernames that cannot be registered
99 # email_whitelist : Array of regex patterns. Used to whitelist addresses that
100 # may otherwise match the blacklist.
101 # email_blacklist : Array of regex patterns. Registration is blocked if a
103 ######################################################################
105 $top_include = 'top.inc.php';
106 $bottom_include = 'bottom.inc.php';
107 $shortdate = 'd-m-Y';
110 $defaultPerPage = 10;
111 $defaultRecentDays = 14;
112 $defaultOrderBy = 'date_desc';
113 $TEMPLATES_DIR = dirname(__FILE__) .'/templates/';
115 $cookieprefix = 'SCUTTLE';
116 $tableprefix = 'sc_';
117 $adminemail = 'admin@example.org';
121 $dir_cache = dirname(__FILE__) .'/cache/';
124 $url_redir = 'http://www.google.com/url?sa=D&q=';
127 'audio' => array('aac', 'mp3', 'm4a', 'oga', 'ogg', 'wav'),
128 'document' => array('doc', 'docx', 'odt', 'pages', 'pdf', 'txt'),
129 'image' => array('gif', 'jpe', 'jpeg', 'jpg', 'png', 'svg'),
130 'bittorrent' => array('torrent'),
131 'video' => array('avi', 'flv', 'mov', 'mp4', 'mpeg', 'mpg', 'm4v', 'ogv', 'wmv')
134 $reservedusers = array('all', 'watchlist');
136 $email_whitelist = NULL;
137 $email_blacklist = array(
142 $archive_links = TRUE;
143 $archive_base_url = "https://web.archive.org";
145 include_once 'debug.inc.php';