database_sleuth 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +21 -0
- data/LICENSE +20 -0
- data/README.rdoc +38 -0
- data/Rakefile +53 -0
- data/VERSION +1 -0
- data/lib/database_sleuth.rb +118 -0
- data/spec/database_sleuth_spec.rb +210 -0
- data/spec/drupal/sites/default/settings.php +240 -0
- data/spec/gallery/config.php +196 -0
- data/spec/joomla/configuration.php +107 -0
- data/spec/mediawiki/LocalSettings.php +124 -0
- data/spec/phpbb/config.php +18 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +10 -0
- data/spec/wordpress/wp-config.php +76 -0
- data/spec/zencart/includes/configure.php +68 -0
- metadata +82 -0
@@ -0,0 +1,240 @@
|
|
1
|
+
<?php
|
2
|
+
// $Id: default.settings.php,v 1.8.2.4 2009/09/14 12:59:18 goba Exp $
|
3
|
+
|
4
|
+
/**
|
5
|
+
* @file
|
6
|
+
* Drupal site-specific configuration file.
|
7
|
+
*
|
8
|
+
* IMPORTANT NOTE:
|
9
|
+
* This file may have been set to read-only by the Drupal installation
|
10
|
+
* program. If you make changes to this file, be sure to protect it again
|
11
|
+
* after making your modifications. Failure to remove write permissions
|
12
|
+
* to this file is a security risk.
|
13
|
+
*
|
14
|
+
* The configuration file to be loaded is based upon the rules below.
|
15
|
+
*
|
16
|
+
* The configuration directory will be discovered by stripping the
|
17
|
+
* website's hostname from left to right and pathname from right to
|
18
|
+
* left. The first configuration file found will be used and any
|
19
|
+
* others will be ignored. If no other configuration file is found
|
20
|
+
* then the default configuration file at 'sites/default' will be used.
|
21
|
+
*
|
22
|
+
* For example, for a fictitious site installed at
|
23
|
+
* http://www.drupal.org/mysite/test/, the 'settings.php'
|
24
|
+
* is searched in the following directories:
|
25
|
+
*
|
26
|
+
* 1. sites/www.drupal.org.mysite.test
|
27
|
+
* 2. sites/drupal.org.mysite.test
|
28
|
+
* 3. sites/org.mysite.test
|
29
|
+
*
|
30
|
+
* 4. sites/www.drupal.org.mysite
|
31
|
+
* 5. sites/drupal.org.mysite
|
32
|
+
* 6. sites/org.mysite
|
33
|
+
*
|
34
|
+
* 7. sites/www.drupal.org
|
35
|
+
* 8. sites/drupal.org
|
36
|
+
* 9. sites/org
|
37
|
+
*
|
38
|
+
* 10. sites/default
|
39
|
+
*
|
40
|
+
* If you are installing on a non-standard port number, prefix the
|
41
|
+
* hostname with that number. For example,
|
42
|
+
* http://www.drupal.org:8080/mysite/test/ could be loaded from
|
43
|
+
* sites/8080.www.drupal.org.mysite.test/.
|
44
|
+
*/
|
45
|
+
|
46
|
+
/**
|
47
|
+
* Database settings:
|
48
|
+
*
|
49
|
+
* Note that the $db_url variable gets parsed using PHP's built-in
|
50
|
+
* URL parser (i.e. using the "parse_url()" function) so make sure
|
51
|
+
* not to confuse the parser. If your username, password
|
52
|
+
* or database name contain characters used to delineate
|
53
|
+
* $db_url parts, you can escape them via URI hex encodings:
|
54
|
+
*
|
55
|
+
* : = %3a / = %2f @ = %40
|
56
|
+
* + = %2b ( = %28 ) = %29
|
57
|
+
* ? = %3f = = %3d & = %26
|
58
|
+
*
|
59
|
+
* To specify multiple connections to be used in your site (i.e. for
|
60
|
+
* complex custom modules) you can also specify an associative array
|
61
|
+
* of $db_url variables with the 'default' element used until otherwise
|
62
|
+
* requested.
|
63
|
+
*
|
64
|
+
* You can optionally set prefixes for some or all database table names
|
65
|
+
* by using the $db_prefix setting. If a prefix is specified, the table
|
66
|
+
* name will be prepended with its value. Be sure to use valid database
|
67
|
+
* characters only, usually alphanumeric and underscore. If no prefixes
|
68
|
+
* are desired, leave it as an empty string ''.
|
69
|
+
*
|
70
|
+
* To have all database names prefixed, set $db_prefix as a string:
|
71
|
+
*
|
72
|
+
* $db_prefix = 'main_';
|
73
|
+
*
|
74
|
+
* To provide prefixes for specific tables, set $db_prefix as an array.
|
75
|
+
* The array's keys are the table names and the values are the prefixes.
|
76
|
+
* The 'default' element holds the prefix for any tables not specified
|
77
|
+
* elsewhere in the array. Example:
|
78
|
+
*
|
79
|
+
* $db_prefix = array(
|
80
|
+
* 'default' => 'main_',
|
81
|
+
* 'users' => 'shared_',
|
82
|
+
* 'sessions' => 'shared_',
|
83
|
+
* 'role' => 'shared_',
|
84
|
+
* 'authmap' => 'shared_',
|
85
|
+
* );
|
86
|
+
*
|
87
|
+
* Database URL format:
|
88
|
+
* $db_url = 'mysql://username:password@localhost/databasename';
|
89
|
+
* $db_url = 'mysqli://username:password@localhost/databasename';
|
90
|
+
* $db_url = 'pgsql://username:password@localhost/databasename';
|
91
|
+
*/
|
92
|
+
$db_url = 'mysqli://usernamehere:yourpasswordhere@localhost/putyourdbnamehere';
|
93
|
+
$db_prefix = '';
|
94
|
+
|
95
|
+
/**
|
96
|
+
* Access control for update.php script
|
97
|
+
*
|
98
|
+
* If you are updating your Drupal installation using the update.php script
|
99
|
+
* being not logged in as administrator, you will need to modify the access
|
100
|
+
* check statement below. Change the FALSE to a TRUE to disable the access
|
101
|
+
* check. After finishing the upgrade, be sure to open this file again
|
102
|
+
* and change the TRUE back to a FALSE!
|
103
|
+
*/
|
104
|
+
$update_free_access = FALSE;
|
105
|
+
|
106
|
+
/**
|
107
|
+
* Base URL (optional).
|
108
|
+
*
|
109
|
+
* If you are experiencing issues with different site domains,
|
110
|
+
* uncomment the Base URL statement below (remove the leading hash sign)
|
111
|
+
* and fill in the absolute URL to your Drupal installation.
|
112
|
+
*
|
113
|
+
* You might also want to force users to use a given domain.
|
114
|
+
* See the .htaccess file for more information.
|
115
|
+
*
|
116
|
+
* Examples:
|
117
|
+
* $base_url = 'http://www.example.com';
|
118
|
+
* $base_url = 'http://www.example.com:8888';
|
119
|
+
* $base_url = 'http://www.example.com/drupal';
|
120
|
+
* $base_url = 'https://www.example.com:8888/drupal';
|
121
|
+
*
|
122
|
+
* It is not allowed to have a trailing slash; Drupal will add it
|
123
|
+
* for you.
|
124
|
+
*/
|
125
|
+
# $base_url = 'http://www.example.com'; // NO trailing slash!
|
126
|
+
|
127
|
+
/**
|
128
|
+
* PHP settings:
|
129
|
+
*
|
130
|
+
* To see what PHP settings are possible, including whether they can
|
131
|
+
* be set at runtime (ie., when ini_set() occurs), read the PHP
|
132
|
+
* documentation at http://www.php.net/manual/en/ini.php#ini.list
|
133
|
+
* and take a look at the .htaccess file to see which non-runtime
|
134
|
+
* settings are used there. Settings defined here should not be
|
135
|
+
* duplicated there so as to avoid conflict issues.
|
136
|
+
*/
|
137
|
+
ini_set('arg_separator.output', '&');
|
138
|
+
ini_set('magic_quotes_runtime', 0);
|
139
|
+
ini_set('magic_quotes_sybase', 0);
|
140
|
+
ini_set('session.cache_expire', 200000);
|
141
|
+
ini_set('session.cache_limiter', 'none');
|
142
|
+
ini_set('session.cookie_lifetime', 2000000);
|
143
|
+
ini_set('session.gc_maxlifetime', 200000);
|
144
|
+
ini_set('session.save_handler', 'user');
|
145
|
+
ini_set('session.use_cookies', 1);
|
146
|
+
ini_set('session.use_only_cookies', 1);
|
147
|
+
ini_set('session.use_trans_sid', 0);
|
148
|
+
ini_set('url_rewriter.tags', '');
|
149
|
+
|
150
|
+
/**
|
151
|
+
* If you encounter a situation where users post a large amount of text, and
|
152
|
+
* the result is stripped out upon viewing but can still be edited, Drupal's
|
153
|
+
* output filter may not have sufficient memory to process it. If you
|
154
|
+
* experience this issue, you may wish to uncomment the following two lines
|
155
|
+
* and increase the limits of these variables. For more information, see
|
156
|
+
* http://php.net/manual/en/pcre.configuration.php.
|
157
|
+
*/
|
158
|
+
# ini_set('pcre.backtrack_limit', 200000);
|
159
|
+
# ini_set('pcre.recursion_limit', 200000);
|
160
|
+
|
161
|
+
/**
|
162
|
+
* Drupal automatically generates a unique session cookie name for each site
|
163
|
+
* based on on its full domain name. If you have multiple domains pointing at
|
164
|
+
* the same Drupal site, you can either redirect them all to a single domain
|
165
|
+
* (see comment in .htaccess), or uncomment the line below and specify their
|
166
|
+
* shared base domain. Doing so assures that users remain logged in as they
|
167
|
+
* cross between your various domains.
|
168
|
+
*/
|
169
|
+
# $cookie_domain = 'example.com';
|
170
|
+
|
171
|
+
/**
|
172
|
+
* Variable overrides:
|
173
|
+
*
|
174
|
+
* To override specific entries in the 'variable' table for this site,
|
175
|
+
* set them here. You usually don't need to use this feature. This is
|
176
|
+
* useful in a configuration file for a vhost or directory, rather than
|
177
|
+
* the default settings.php. Any configuration setting from the 'variable'
|
178
|
+
* table can be given a new value. Note that any values you provide in
|
179
|
+
* these variable overrides will not be modifiable from the Drupal
|
180
|
+
* administration interface.
|
181
|
+
*
|
182
|
+
* Remove the leading hash signs to enable.
|
183
|
+
*/
|
184
|
+
# $conf = array(
|
185
|
+
# 'site_name' => 'My Drupal site',
|
186
|
+
# 'theme_default' => 'minnelli',
|
187
|
+
# 'anonymous' => 'Visitor',
|
188
|
+
/**
|
189
|
+
* A custom theme can be set for the off-line page. This applies when the site
|
190
|
+
* is explicitly set to off-line mode through the administration page or when
|
191
|
+
* the database is inactive due to an error. It can be set through the
|
192
|
+
* 'maintenance_theme' key. The template file should also be copied into the
|
193
|
+
* theme. It is located inside 'modules/system/maintenance-page.tpl.php'.
|
194
|
+
* Note: This setting does not apply to installation and update pages.
|
195
|
+
*/
|
196
|
+
# 'maintenance_theme' => 'minnelli',
|
197
|
+
/**
|
198
|
+
* reverse_proxy accepts a boolean value.
|
199
|
+
*
|
200
|
+
* Enable this setting to determine the correct IP address of the remote
|
201
|
+
* client by examining information stored in the X-Forwarded-For headers.
|
202
|
+
* X-Forwarded-For headers are a standard mechanism for identifying client
|
203
|
+
* systems connecting through a reverse proxy server, such as Squid or
|
204
|
+
* Pound. Reverse proxy servers are often used to enhance the performance
|
205
|
+
* of heavily visited sites and may also provide other site caching,
|
206
|
+
* security or encryption benefits. If this Drupal installation operates
|
207
|
+
* behind a reverse proxy, this setting should be enabled so that correct
|
208
|
+
* IP address information is captured in Drupal's session management,
|
209
|
+
* logging, statistics and access management systems; if you are unsure
|
210
|
+
* about this setting, do not have a reverse proxy, or Drupal operates in
|
211
|
+
* a shared hosting environment, this setting should be set to disabled.
|
212
|
+
*/
|
213
|
+
# 'reverse_proxy' => TRUE,
|
214
|
+
/**
|
215
|
+
* reverse_proxy accepts an array of IP addresses.
|
216
|
+
*
|
217
|
+
* Each element of this array is the IP address of any of your reverse
|
218
|
+
* proxies. Filling this array Drupal will trust the information stored
|
219
|
+
* in the X-Forwarded-For headers only if Remote IP address is one of
|
220
|
+
* these, that is the request reaches the web server from one of your
|
221
|
+
* reverse proxies. Otherwise, the client could directly connect to
|
222
|
+
* your web server spoofing the X-Forwarded-For headers.
|
223
|
+
*/
|
224
|
+
# 'reverse_proxy_addresses' => array('a.b.c.d', ...),
|
225
|
+
# );
|
226
|
+
|
227
|
+
/**
|
228
|
+
* String overrides:
|
229
|
+
*
|
230
|
+
* To override specific strings on your site with or without enabling locale
|
231
|
+
* module, add an entry to this list. This functionality allows you to change
|
232
|
+
* a small number of your site's default English language interface strings.
|
233
|
+
*
|
234
|
+
* Remove the leading hash signs to enable.
|
235
|
+
*/
|
236
|
+
# $conf['locale_custom_strings_en'] = array(
|
237
|
+
# 'forum' => 'Discussion board',
|
238
|
+
# '@count min' => '@count minutes',
|
239
|
+
# );
|
240
|
+
|
@@ -0,0 +1,196 @@
|
|
1
|
+
<?php
|
2
|
+
/*
|
3
|
+
* Gallery - a web based photo album viewer and editor
|
4
|
+
* Copyright (C) 2000-2008 Bharat Mediratta
|
5
|
+
*
|
6
|
+
* This program is free software; you can redistribute it and/or modify
|
7
|
+
* it under the terms of the GNU General Public License as published by
|
8
|
+
* the Free Software Foundation; either version 2 of the License, or (at
|
9
|
+
* your option) any later version.
|
10
|
+
*
|
11
|
+
* This program is distributed in the hope that it will be useful, but
|
12
|
+
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
+
* General Public License for more details.
|
15
|
+
*
|
16
|
+
* You should have received a copy of the GNU General Public License
|
17
|
+
* along with this program; if not, write to the Free Software
|
18
|
+
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
19
|
+
*/
|
20
|
+
|
21
|
+
/*
|
22
|
+
* When display_errors is enabled, PHP errors are printed to the output.
|
23
|
+
* For production web sites, you're strongly encouraged to turn this feature off,
|
24
|
+
* and use error logging instead.
|
25
|
+
* During development, you should set the value to true to ensure that you notice
|
26
|
+
* PHP warnings and notices that are not covered in unit tests (e.g. template issues).
|
27
|
+
*/
|
28
|
+
@ini_set('display_errors', 0);
|
29
|
+
|
30
|
+
/*
|
31
|
+
* Prevent direct access to config.php.
|
32
|
+
*/
|
33
|
+
if (!isset($gallery) || !method_exists($gallery, 'setConfig')) {
|
34
|
+
exit;
|
35
|
+
}
|
36
|
+
|
37
|
+
/*
|
38
|
+
* As a security precaution, we limit access to Gallery's test suite
|
39
|
+
* to those people who know the password, below. Example:
|
40
|
+
*
|
41
|
+
* $gallery->setConfig('setup.password', 'A PASSWORD');
|
42
|
+
*
|
43
|
+
* Choose something random and enter it in plain text. You don't have to
|
44
|
+
* remember it because you can always refer to this file. You'll only be asked
|
45
|
+
* for this password when you run Gallery's lib/tools code. We don't provide a
|
46
|
+
* default password because we want you to choose one of your own (which
|
47
|
+
* lessens the chance that you'll get hacked).
|
48
|
+
*/
|
49
|
+
$gallery->setConfig('setup.password', 'password');
|
50
|
+
|
51
|
+
/*
|
52
|
+
* In order for Gallery to manage your data, you must provide it with
|
53
|
+
* a directory that it can write to. Gallery is a webserver application,
|
54
|
+
* so the directory that you create must be writeable by the
|
55
|
+
* webserver, not just by you.
|
56
|
+
*
|
57
|
+
* Create an empty directory anywhere you please. Gallery will fill this
|
58
|
+
* directory with its own files (that you shouldn't mess with). This directory
|
59
|
+
* can be anywhere on your filesystem. For security purposes, it's better
|
60
|
+
* if the directory is not accessible via your webserver (ie, it should
|
61
|
+
* not be in your DocumentRoot). If you *do* make it available via your
|
62
|
+
* web server then you probably won't have any security for your data files.
|
63
|
+
*
|
64
|
+
* Don't make this the same as your gallery directory!
|
65
|
+
*/
|
66
|
+
$gallery->setConfig('data.gallery.base', '/home/someuser/gallery.example.com/gallery2/g2data/');
|
67
|
+
|
68
|
+
/*
|
69
|
+
* Gallery can store its data in multiple different back ends. Currently we
|
70
|
+
* support MySQL, PostgreSQL and Oracle. Enter the hostname where your
|
71
|
+
* database lives, and the username and password you use to connect to it.
|
72
|
+
*
|
73
|
+
* You must specify the name of a database that already exists. Gallery will
|
74
|
+
* not create the database for you, because it's very difficult to do that in
|
75
|
+
* a reliable, database-neutral fashion. The user that you use should have
|
76
|
+
* the following permissions:
|
77
|
+
*
|
78
|
+
* SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER
|
79
|
+
*
|
80
|
+
* You must specify a table and column prefix. This is a few characters that
|
81
|
+
* is prepended to any table or column name to avoid conflicting with reserved
|
82
|
+
* words in the database or other tables you have in the same database. In
|
83
|
+
* fact, it's fine to let Gallery uses the same database as other applications
|
84
|
+
* (including other instances of Gallery itself); the prefix is enough
|
85
|
+
* to distinguish Gallery's tables from other applications.
|
86
|
+
*
|
87
|
+
* We provide some reasonable default prefixes below. If you modify these
|
88
|
+
* after Gallery has created its various tables, it will stop working until
|
89
|
+
* you modify it back.
|
90
|
+
*
|
91
|
+
* The possible database types are:
|
92
|
+
* mysqlt MySQL (3.23.34a and newer)
|
93
|
+
* mysqli MySQL (4.1 and newer) with PHP mysqli extension
|
94
|
+
* mysql Older MySQL (no transactions)
|
95
|
+
* postgres7 PostgreSQL 7.x and newer
|
96
|
+
* postgres PostgreSQL 6.x (not tested)
|
97
|
+
* oci8po Oracle 9i and newer
|
98
|
+
* db2 IBM DB2 9 and newer
|
99
|
+
* ado_mssql Microsoft SQL Server (2005 and newer)
|
100
|
+
*/
|
101
|
+
$storeConfig['type'] = 'mysqli';
|
102
|
+
$storeConfig['hostname'] = 'localhost';
|
103
|
+
$storeConfig['database'] = 'putyourdbnamehere';
|
104
|
+
$storeConfig['username'] = 'usernamehere';
|
105
|
+
$storeConfig['password'] = 'yourpasswordhere';
|
106
|
+
$storeConfig['schema'] = '';
|
107
|
+
$storeConfig['tablePrefix'] = 'g2_';
|
108
|
+
$storeConfig['columnPrefix'] = 'g_';
|
109
|
+
$storeConfig['usePersistentConnections'] = false;
|
110
|
+
$gallery->setConfig('storage.config', $storeConfig);
|
111
|
+
|
112
|
+
/*
|
113
|
+
* Put Gallery into debug mode. Useful for tracking down problems with the
|
114
|
+
* application. Not a good idea to leave it this way, though. Possible debug
|
115
|
+
* choices are: 'buffered', 'logged', 'immediate' or false. Don't forget to
|
116
|
+
* use the quotes for any value but false!
|
117
|
+
*
|
118
|
+
* If you choose 'immediate', you'll see debugging information as soon as
|
119
|
+
* Gallery generates it. This can be useful at times, but it'll screw up some
|
120
|
+
* parts of the application flow.
|
121
|
+
*
|
122
|
+
* If you choose 'buffered', Gallery will display debug information in a table
|
123
|
+
* as part of the application. You won't necessarily get *all* the debug
|
124
|
+
* information but the application should work normally.
|
125
|
+
*
|
126
|
+
* If you choose 'logged', you must also specify:
|
127
|
+
* $gallery->setDebugLogFile('/path/to/writeable/file');
|
128
|
+
* and all debug output will get printed into that file. You'll get all the
|
129
|
+
* debug output and the application will work normally.
|
130
|
+
*
|
131
|
+
* For best debugging output use this line:
|
132
|
+
*
|
133
|
+
* $gallery->setDebug('buffered');
|
134
|
+
*
|
135
|
+
*/
|
136
|
+
$gallery->setDebug(false);
|
137
|
+
|
138
|
+
/*
|
139
|
+
* Profiling mode. You can enable profiling for different parts of G2 to get an
|
140
|
+
* idea of what's fast and slow. Right now the only options are to enable SQL
|
141
|
+
* profiling:
|
142
|
+
*
|
143
|
+
* $gallery->setProfile(array('sql'));
|
144
|
+
*
|
145
|
+
*/
|
146
|
+
$gallery->setProfile(false);
|
147
|
+
|
148
|
+
/*
|
149
|
+
* Maintenance mode. You can disable access to the site for anyone but
|
150
|
+
* site administrators by setting this flag. Set value below to:
|
151
|
+
* true (without quotes) - to use a basic notification page; themed
|
152
|
+
* view with admin login link when codebase is up to date, but a
|
153
|
+
* plain unstyled page when codebase has been updated but upgrader
|
154
|
+
* has not yet been run.
|
155
|
+
* url (with quotes) - provide a url where requests are redirected in
|
156
|
+
* either case described above. Example: '/maintenance.html'
|
157
|
+
* false (without quotes) - maintenance mode off
|
158
|
+
*/
|
159
|
+
$gallery->setConfig('mode.maintenance', false);
|
160
|
+
|
161
|
+
/*
|
162
|
+
* Embedded mode. You can disable direct access to main.php (standalone G2)
|
163
|
+
* by setting this flag. Set value below to:
|
164
|
+
* true (without quotes) - block direct requests
|
165
|
+
* url (with quotes) - redirect requests to this url
|
166
|
+
* false (without quotes) - allow direct requests
|
167
|
+
*/
|
168
|
+
$gallery->setConfig('mode.embed.only', false);
|
169
|
+
|
170
|
+
/*
|
171
|
+
* Allow a particular IP address to access the session (it still must know the
|
172
|
+
* session id) even though it doesn't match the address/user agent that created
|
173
|
+
* the session. Put the address of validator.w3.org ('133.27.228.132') here to allow
|
174
|
+
* validation of non-public Gallery pages from the links at the bottom of the page.
|
175
|
+
*/
|
176
|
+
$gallery->setConfig('allowSessionAccess', false);
|
177
|
+
|
178
|
+
/*
|
179
|
+
* URL of Gallery codebase; required only for multisite install.
|
180
|
+
*/
|
181
|
+
$gallery->setConfig('galleryBaseUrl', '');
|
182
|
+
|
183
|
+
/*
|
184
|
+
* This setting can be used to override Gallery's auto-detection of the domain-name,
|
185
|
+
* protocol (http/https), URL path, and of the file & query string.
|
186
|
+
* Most users can leave this empty. If the server is misconfigured or for very special
|
187
|
+
* setups, this setting can be quite handy.
|
188
|
+
* Examples (the positions of the slashes ('/') are important):
|
189
|
+
* override the path: $gallery->setConfig('baseUri', '/another/path/');
|
190
|
+
* override the host + path: $gallery->setConfig('baseUri', 'example.com/gallery2/');
|
191
|
+
* override the protocol + host + path + file:
|
192
|
+
* $gallery->setConfig('baseUri', 'https://example.com:8080/gallery2/index.php');
|
193
|
+
*/
|
194
|
+
$gallery->setConfig('baseUri', 'http://gallery.example.com/gallery2/main.php');
|
195
|
+
?>
|
196
|
+
|
@@ -0,0 +1,107 @@
|
|
1
|
+
<?php
|
2
|
+
/**
|
3
|
+
* @version $Id: configuration.php-dist 11687 2009-03-11 17:49:23Z ian $
|
4
|
+
* @package Joomla
|
5
|
+
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
|
6
|
+
* @license GNU/GPL, see LICENSE.php
|
7
|
+
* Joomla! is free software and parts of it may contain or be derived from the
|
8
|
+
* GNU General Public License or other free or open source software licenses.
|
9
|
+
* See COPYRIGHT.php for copyright notices and details.
|
10
|
+
*
|
11
|
+
* -------------------------------------------------------------------------
|
12
|
+
* THIS SHOULD ONLY BE USED AS A LAST RESORT WHEN THE WEB INSTALLER FAILS
|
13
|
+
*
|
14
|
+
* If you are installing Joomla! manually i.e. not using the web browser installer
|
15
|
+
* then rename this file to configuration.php e.g.
|
16
|
+
*
|
17
|
+
* UNIX -> mv configuration.php-dist configuration.php
|
18
|
+
* Windows -> rename configuration.php-dist configuration.php
|
19
|
+
*
|
20
|
+
* Now edit this file and configure the parameters for your site and
|
21
|
+
* database.
|
22
|
+
*/
|
23
|
+
class JConfig {
|
24
|
+
/**
|
25
|
+
* -------------------------------------------------------------------------
|
26
|
+
* Site configuration section
|
27
|
+
* -------------------------------------------------------------------------
|
28
|
+
*/
|
29
|
+
/* Site Settings */
|
30
|
+
var $offline = '0';
|
31
|
+
var $offline_message = 'This site is down for maintenance.<br /> Please check back again soon.';
|
32
|
+
var $sitename = 'Joomla!'; // Name of Joomla site
|
33
|
+
var $editor = 'tinymce';
|
34
|
+
var $list_limit = '20';
|
35
|
+
var $legacy = '0';
|
36
|
+
|
37
|
+
/**
|
38
|
+
* -------------------------------------------------------------------------
|
39
|
+
* Database configuration section
|
40
|
+
* -------------------------------------------------------------------------
|
41
|
+
*/
|
42
|
+
/* Database Settings */
|
43
|
+
var $dbtype = 'mysql'; // Normally mysql
|
44
|
+
var $host = 'localhost'; // This is normally set to localhost
|
45
|
+
var $user = 'usernamehere'; // MySQL username
|
46
|
+
var $password = 'yourpasswordhere'; // MySQL password
|
47
|
+
var $db = 'putyourdbnamehere'; // MySQL database name
|
48
|
+
var $dbprefix = 'jos_'; // Do not change unless you need to!
|
49
|
+
|
50
|
+
/* Server Settings */
|
51
|
+
var $secret = 'FBVtggIk5lAzEU9H'; //Change this to something more secure
|
52
|
+
var $gzip = '0';
|
53
|
+
var $error_reporting = '-1';
|
54
|
+
var $helpurl = 'http://help.joomla.org';
|
55
|
+
var $xmlrpc_server = '1';
|
56
|
+
var $ftp_host = '';
|
57
|
+
var $ftp_port = '';
|
58
|
+
var $ftp_user = '';
|
59
|
+
var $ftp_pass = '';
|
60
|
+
var $ftp_root = '';
|
61
|
+
var $ftp_enable = '';
|
62
|
+
var $tmp_path = '/tmp';
|
63
|
+
var $log_path = '/var/logs';
|
64
|
+
var $offset = '0';
|
65
|
+
var $live_site = ''; // Optional, Full url to Joomla install.
|
66
|
+
var $force_ssl = 0; //Force areas of the site to be SSL ONLY. 0 = None, 1 = Administrator, 2 = Both Site and Administrator
|
67
|
+
|
68
|
+
/* Session settings */
|
69
|
+
var $lifetime = '15'; // Session time
|
70
|
+
var $session_handler = 'database';
|
71
|
+
|
72
|
+
/* Mail Settings */
|
73
|
+
var $mailer = 'mail';
|
74
|
+
var $mailfrom = '';
|
75
|
+
var $fromname = '';
|
76
|
+
var $sendmail = '/usr/sbin/sendmail';
|
77
|
+
var $smtpauth = '0';
|
78
|
+
var $smtpuser = '';
|
79
|
+
var $smtppass = '';
|
80
|
+
var $smtphost = 'localhost';
|
81
|
+
|
82
|
+
/* Cache Settings */
|
83
|
+
var $caching = '0';
|
84
|
+
var $cachetime = '15';
|
85
|
+
var $cache_handler = 'file';
|
86
|
+
|
87
|
+
/* Debug Settings */
|
88
|
+
var $debug = '0';
|
89
|
+
var $debug_db = '0';
|
90
|
+
var $debug_lang = '0';
|
91
|
+
|
92
|
+
/* Meta Settings */
|
93
|
+
var $MetaDesc = 'Joomla! - the dynamic portal engine and content management system';
|
94
|
+
var $MetaKeys = 'joomla, Joomla';
|
95
|
+
var $MetaTitle = '1';
|
96
|
+
var $MetaAuthor = '1';
|
97
|
+
|
98
|
+
/* SEO Settings */
|
99
|
+
var $sef = '0';
|
100
|
+
var $sef_rewrite = '0';
|
101
|
+
var $sef_suffix = '';
|
102
|
+
|
103
|
+
/* Feed Settings */
|
104
|
+
var $feed_limit = 10;
|
105
|
+
var $feed_email = 'author';
|
106
|
+
}
|
107
|
+
?>
|
@@ -0,0 +1,124 @@
|
|
1
|
+
<?php
|
2
|
+
|
3
|
+
# This file was automatically generated by the MediaWiki installer.
|
4
|
+
# If you make manual changes, please keep track in case you need to
|
5
|
+
# recreate them later.
|
6
|
+
#
|
7
|
+
# See includes/DefaultSettings.php for all configurable settings
|
8
|
+
# and their default values, but don't forget to make changes in _this_
|
9
|
+
# file, not there.
|
10
|
+
#
|
11
|
+
# Further documentation for configuration settings may be found at:
|
12
|
+
# http://www.mediawiki.org/wiki/Manual:Configuration_settings
|
13
|
+
|
14
|
+
# If you customize your file layout, set $IP to the directory that contains
|
15
|
+
# the other MediaWiki files. It will be used as a base to locate files.
|
16
|
+
if( defined( 'MW_INSTALL_PATH' ) ) {
|
17
|
+
$IP = MW_INSTALL_PATH;
|
18
|
+
} else {
|
19
|
+
$IP = dirname( __FILE__ );
|
20
|
+
}
|
21
|
+
|
22
|
+
$path = array( $IP, "$IP/includes", "$IP/languages" );
|
23
|
+
set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() );
|
24
|
+
|
25
|
+
require_once( "$IP/includes/DefaultSettings.php" );
|
26
|
+
|
27
|
+
# If PHP's memory limit is very low, some operations may fail.
|
28
|
+
# ini_set( 'memory_limit', '20M' );
|
29
|
+
|
30
|
+
if ( $wgCommandLineMode ) {
|
31
|
+
if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {
|
32
|
+
die( "This script must be run from the command line\n" );
|
33
|
+
}
|
34
|
+
}
|
35
|
+
## Uncomment this to disable output compression
|
36
|
+
# $wgDisableOutputCompression = true;
|
37
|
+
|
38
|
+
$wgSitename = "Test Wiki";
|
39
|
+
|
40
|
+
## The URL base path to the directory containing the wiki;
|
41
|
+
## defaults for all runtime URL paths are based off of this.
|
42
|
+
## For more information on customizing the URLs please see:
|
43
|
+
## http://www.mediawiki.org/wiki/Manual:Short_URL
|
44
|
+
$wgScriptPath = "/mediawiki";
|
45
|
+
$wgScriptExtension = ".php";
|
46
|
+
|
47
|
+
## UPO means: this is also a user preference option
|
48
|
+
|
49
|
+
$wgEnableEmail = true;
|
50
|
+
$wgEnableUserEmail = true; # UPO
|
51
|
+
|
52
|
+
$wgEmergencyContact = "root@localhost";
|
53
|
+
$wgPasswordSender = "root@localhost";
|
54
|
+
|
55
|
+
$wgEnotifUserTalk = true; # UPO
|
56
|
+
$wgEnotifWatchlist = true; # UPO
|
57
|
+
$wgEmailAuthentication = true;
|
58
|
+
|
59
|
+
## Database settings
|
60
|
+
$wgDBtype = "mysql";
|
61
|
+
$wgDBserver = "localhost";
|
62
|
+
$wgDBname = "putyourdbnamehere";
|
63
|
+
$wgDBuser = "usernamehere";
|
64
|
+
$wgDBpassword = "yourpasswordhere";
|
65
|
+
|
66
|
+
# MySQL specific settings
|
67
|
+
$wgDBprefix = "";
|
68
|
+
|
69
|
+
# MySQL table options to use during installation or update
|
70
|
+
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
|
71
|
+
|
72
|
+
# Experimental charset support for MySQL 4.1/5.0.
|
73
|
+
$wgDBmysql5 = true;
|
74
|
+
|
75
|
+
## Shared memory settings
|
76
|
+
$wgMainCacheType = CACHE_NONE;
|
77
|
+
$wgMemCachedServers = array();
|
78
|
+
|
79
|
+
## To enable image uploads, make sure the 'images' directory
|
80
|
+
## is writable, then set this to true:
|
81
|
+
$wgEnableUploads = false;
|
82
|
+
$wgUseImageMagick = true;
|
83
|
+
$wgImageMagickConvertCommand = "/usr/bin/convert";
|
84
|
+
|
85
|
+
## If you use ImageMagick (or any other shell command) on a
|
86
|
+
## Linux server, this will need to be set to the name of an
|
87
|
+
## available UTF-8 locale
|
88
|
+
$wgShellLocale = "en_US.utf8";
|
89
|
+
|
90
|
+
## If you want to use image uploads under safe mode,
|
91
|
+
## create the directories images/archive, images/thumb and
|
92
|
+
## images/temp, and make them all writable. Then uncomment
|
93
|
+
## this, if it's not already uncommented:
|
94
|
+
# $wgHashedUploadDirectory = false;
|
95
|
+
|
96
|
+
## If you have the appropriate support software installed
|
97
|
+
## you can enable inline LaTeX equations:
|
98
|
+
$wgUseTeX = false;
|
99
|
+
|
100
|
+
$wgLocalInterwiki = strtolower( $wgSitename );
|
101
|
+
|
102
|
+
$wgLanguageCode = "en";
|
103
|
+
|
104
|
+
$wgSecretKey = "327a292534abd43f32021d78735dcb6234c87fe460ad081cef97fd8be7acfa95";
|
105
|
+
|
106
|
+
## Default skin: you can change the default skin. Use the internal symbolic
|
107
|
+
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
|
108
|
+
$wgDefaultSkin = 'monobook';
|
109
|
+
|
110
|
+
## For attaching licensing metadata to pages, and displaying an
|
111
|
+
## appropriate copyright notice / icon. GNU Free Documentation
|
112
|
+
## License and Creative Commons licenses are supported so far.
|
113
|
+
# $wgEnableCreativeCommonsRdf = true;
|
114
|
+
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
|
115
|
+
$wgRightsUrl = "";
|
116
|
+
$wgRightsText = "";
|
117
|
+
$wgRightsIcon = "";
|
118
|
+
# $wgRightsCode = ""; # Not yet used
|
119
|
+
|
120
|
+
$wgDiff3 = "/usr/bin/diff3";
|
121
|
+
|
122
|
+
# When you make changes to this configuration file, this will make
|
123
|
+
# sure that cached pages are cleared.
|
124
|
+
$wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) );
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?php
|
2
|
+
// phpBB 3.0.x auto-generated configuration file
|
3
|
+
// Do not change anything in this file!
|
4
|
+
$dbms = 'mysql'; //database type it may not be mysql
|
5
|
+
$dbhost = 'localhost';
|
6
|
+
$dbport = 'database port if not default';
|
7
|
+
$dbname = 'putyourdbnamehere';
|
8
|
+
$dbuser = 'usernamehere';
|
9
|
+
$dbpasswd = 'yourpasswordhere';
|
10
|
+
|
11
|
+
$table_prefix = 'database table prefix';
|
12
|
+
$acm_type = 'file';
|
13
|
+
$load_extensions = '';
|
14
|
+
|
15
|
+
@define('PHPBB_INSTALLED', true);
|
16
|
+
//@define('DEBUG', true);
|
17
|
+
//@define('DEBUG_EXTRA', true);
|
18
|
+
?>
|
data/spec/spec.opts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|