Merge remote-tracking branch 'gh-takuya-o/PHP7.0-mysqli'
[scuttle] / config.inc.php.example
1 <?php
2 ######################################################################
3 # SCUTTLE: Online social bookmarks manager
4 ######################################################################
5 # Copyright (c) 2005 - 2010 Marcus Campbell
6 # http://scuttle.org/
7 #
8 # This module is to configure the main options for your site
9 #
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 ######################################################################
14
15 ######################################################################
16 # Database Configuration
17 #
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 ######################################################################
26
27 $dbtype = 'mysql';
28 $dbhost = '127.0.0.1';
29 $dbport = '3306';
30 $dbuser = 'username';
31 $dbpass = 'password';
32 $dbname = 'scuttle';
33
34 ######################################################################
35 # Basic Configuration
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 ######################################################################
43
44 $sitename   = 'Scuttle';
45 $locale     = 'en_GB';
46 $adminemail = 'admin@example.org';
47
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
53 #
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
59 #                                 bookmark links.
60 #                       false   - Don't include rel="nofollow".
61 # defaultPerPage:   The default number of bookmarks per page.
62 #                   -1 means no limit!
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]
86 #
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
90 #
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
95 #
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
102 #                     match is found.
103 ######################################################################
104
105 $top_include       = 'top.inc.php';
106 $bottom_include    = 'bottom.inc.php';
107 $shortdate         = 'd-m-Y';
108 $longdate          = 'j F Y';
109 $nofollow          = TRUE;
110 $defaultPerPage    = 10;
111 $defaultRecentDays = 14;
112 $defaultOrderBy    = 'date_desc';
113 $TEMPLATES_DIR     = dirname(__FILE__) .'/templates/';
114 $root              = NULL;
115 $cookieprefix      = 'SCUTTLE';
116 $tableprefix       = 'sc_';
117 $adminemail        = 'admin@example.org';
118 $cleanurls         = FALSE;
119
120 $usecache          = FALSE;
121 $dir_cache         = dirname(__FILE__) .'/cache/';
122
123 $useredir          = FALSE;
124 $url_redir         = 'http://www.google.com/url?sa=D&q=';
125
126 $filetypes         = array(
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')
132                      );
133
134 $reservedusers     = array('all', 'watchlist');
135
136 $email_whitelist   = NULL;
137 $email_blacklist   = array(
138                       '/(.*-){2,}/',
139                       '/mailinator\.com/i'
140                      );
141
142 include_once 'debug.inc.php';

Benjamin Mako Hill || Want to submit a patch?