r41874 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41873‎ | r41874 | r41875 >
Date:00:35, 9 October 2008
Author:straussd
Status:old
Tags:
Comment:
Remove config files
Modified paths:
  • /civicrm/trunk/sites/default/civicrm.settings.php (deleted) (history)
  • /civicrm/trunk/sites/default/settings.php (deleted) (history)

Diff [purge]

Index: civicrm/trunk/sites/default/civicrm.settings.php
@@ -1,198 +0,0 @@
2 -<?php
3 -/**
4 - * CiviCRM Configuration File - v2.0
5 - */
6 -
7 -/**
8 - * Content Management System (CMS) Host:
9 - *
10 - * CiviCRM can be hosted in either Drupal or Joomla.
11 - *
12 - * Settings for Drupal 5.1:
13 - * define( 'CIVICRM_UF' , 'Drupal' );
14 - * define( 'CIVICRM_UF_VERSION', '5.1' );
15 - *
16 - * For Drupal 4.7.x, same as above except
17 - * define( 'CIVICRM_UF_VERSION', '4.7' );
18 - *
19 - * Settings for Joomla 1.0.x and 1.5.x:
20 - * define( 'CIVICRM_UF' , 'Joomla' );
21 - * define( 'CIVICRM_UF_VERSION', '1' );
22 - *
23 - * Settings for Standalone:
24 - * define( 'CIVICRM_UF' , 'Standalone');
25 - * (Leave out CIVICRM_UF_VERSION.)
26 - *
27 - * You may have issues with images in CiviCRM. If this is the case, be sure
28 - * to update the CiviCRM Resource URL field (in Administer CRM: Global
29 - * Settings: Resource URLS) to your CiviCRM root directory.
30 - */
31 -
32 -define( 'CIVICRM_UF' , 'Drupal' );
33 -
34 -/**
35 - * Content Management System (CMS) Datasource:
36 - *
37 - * Update this setting with your CMS (Drupal or Joomla) database username, server and DB name. Comment it out if using CiviCRM standalone.
38 - * Datasource (DSN) format:
39 - * define( 'CIVICRM_UF_DSN', 'mysql://cms_db_username:cms_db_password@db_server/cms_database?new_link=true');
40 - */
41 -
42 -define( 'CIVICRM_UF_DSN' , 'mysql://drupal5:drupal5password@srv10.wikimedia.org/drupal5?new_link=true' );
43 -
44 -/**
45 - * CiviCRM Database Settings
46 - *
47 - * Database URL (CIVICRM_DSN) for CiviCRM Data:
48 - * Database URL format:
49 - * define( 'CIVICRM_DSN', 'mysql://crm_db_username:crm_db_password@db_server/crm_database?new_link=true');
50 - *
51 - * Drupal and CiviCRM can share the same database, or can be installed into separate databases.
52 - *
53 - * EXAMPLE: Drupal and CiviCRM running in the same database...
54 - * DB Name = drupal, DB User = drupal
55 - * define( 'CIVICRM_DSN' , 'mysql://drupal:YOUR_PASSWORD@localhost/drupal?new_link=true' );
56 - *
57 - * EXAMPLE: Drupal and CiviCRM running in separate databases...
58 - * Drupal DB Name = drupal, DB User = drupal
59 - * CiviCRM DB Name = civicrm, CiviCRM DB User = civicrm
60 - * define( 'CIVICRM_DSN' , 'mysql://civicrm:YOUR_PASSWORD@localhost/civicrm?new_link=true' );
61 - *
62 - * MySQL Path:
63 - * This stores the installed path of mysql. You will need to verify and modify this value if you are
64 - * planning on using CiviCRMs built-in Database Backup utility. If you have shell access, you may be
65 - * able to query the path by using one of the following commands:
66 - * $ whereis mysql
67 - * $ type mysql
68 - *
69 - */
70 -
71 -/**define( 'CIVICRM_DSN' , 'mysql://civicrm2:civicrm2password@srv10.wikimedia.org/civicrm2?new_link=true' ); i**/
72 -define( 'CIVICRM_DSN' , 'mysql://civicrm2:civicrm2password@db9.pmtpa.wmnet/civicrm2?new_link=true' );
73 -define( 'CIVICRM_MYSQL_PATH', '%%mysqlPath%%' );
74 -
75 -/**
76 - * File System Paths:
77 - *
78 - * $civicrm_root is the file system path on your server where the civicrm
79 - * code is installed. Use an ABSOLUTE path (not a RELATIVE path) for this setting.
80 - *
81 - * CIVICRM_TEMPLATE_COMPILEDIR is the file system path where compiled templates are stored.
82 - * These sub-directories and files are temporary caches and will be recreated automatically
83 - * if deleted.
84 - *
85 - * IMPORTANT: The COMPILEDIR directory must exist,
86 - * and your web server must have read/write access to these directories.
87 - *
88 - *
89 - * EXAMPLE - CivicSpace / Drupal:
90 - * If the path to the CivicSpace or Drupal home directory is /var/www/htdocs/civicspace
91 - * the $civicrm_root setting would be:
92 - * $civicrm_root = '/var/www/htdocs/civicspace/modules/civicrm/';
93 - *
94 - * the CIVICRM_TEMPLATE_COMPILEDIR would be:
95 - * define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/var/www/htdocs/civicspace/files/civicrm/templates_c/' );
96 - *
97 - * EXAMPLE - Joomla Installations:
98 - * If the path to the Joomla home directory is /var/www/htdocs/joomla
99 - * the $civicrm_root setting would be:
100 - * $civicrm_root = '/var/www/htdocs/joomla/administrator/components/com_civicrm/civicrm/';
101 - *
102 - * the CIVICRM_TEMPLATE_COMPILEDIR would be:
103 - * define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/var/www/htdocs/joomla/media/civicrm/templates_c/' );
104 - *
105 - * EXAMPLE - Standalone Installations:
106 - * If the path to the Standalone home directory is /var/www/htdocs/civicrm
107 - * the $civicrm_root setting would be:
108 - * $civicrm_root = '/var/www/htdocs/civicrm/';
109 - *
110 - * the CIVICRM_TEMPLATE_COMPILEDIR might be:
111 - * define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/var/www/htdocs/civicrm/standalone/files/templates_c/' );
112 - */
113 -
114 -global $civicrm_root;
115 -
116 -$civicrm_root = '/srv/org.wikimedia.civicrm/sites/all/modules/civicrm';
117 -define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/srv/org.wikimedia.civicrm/files/civicrm/templates_c/' );
118 -
119 -/**
120 - * Site URLs:
121 - *
122 - * This section defines absolute and relative URLs to access the host CMS (Drupal or Joomla) resources.
123 - *
124 - * IMPORTANT: Trailing slashes should be used on all URL settings.
125 - *
126 - *
127 - * EXAMPLE - Drupal Installations:
128 - * If your site's home url is http://www.example.com/drupal/
129 - * these variables would be set as below. Modify as needed for your install.
130 - *
131 - * CIVICRM_UF_BASEURL - home URL for your site:
132 - * define( 'CIVICRM_UF_BASEURL' , 'http://www.example.com/drupal/' );
133 - *
134 - * EXAMPLE - Joomla Installations:
135 - * If your site's home url is http://www.example.com/joomla/
136 - *
137 - * CIVICRM_UF_BASEURL - home URL for your site:
138 - * Administration site:
139 - * define( 'CIVICRM_UF_BASEURL' , 'http://www.example.com/joomla/administrator/' );
140 - * Front-end site:
141 - * define( 'CIVICRM_UF_BASEURL' , 'http://www.example.com/joomla/' );
142 - *
143 - * EXAMPLE - Standalone Installations:
144 - * If your site's home url is http://www.examle.com/civicrm/
145 - *
146 - * CIVICRM_UF_BASEURL - home URL for your site:
147 - * define( 'CIVICRM_UF_BASEURL' , 'http://www.example.com/civicrm/standalone/' );
148 - */
149 -
150 -define( 'CIVICRM_UF_BASEURL' , 'http://civicrm.wikimedia.org/' );
151 -
152 -/**
153 - * Multi-site Support
154 - *
155 - * CiviCRM uses Domain ID keys to allow you to store separate data sets for multiple sites
156 - * using the same codebase.
157 - *
158 - * Refer to the 'Multi-site Support' section of the Installation Guide for more info.
159 - */
160 -
161 -define('CIVICRM_DOMAIN_ID' , 1 );
162 -
163 -/**
164 - *
165 - * Do not change anything below this line. Keep as is
166 - *
167 - */
168 -
169 -$include_path = '.' . PATH_SEPARATOR .
170 - $civicrm_root . PATH_SEPARATOR .
171 - $civicrm_root . DIRECTORY_SEPARATOR . 'packages' . PATH_SEPARATOR .
172 - get_include_path( );
173 -set_include_path( $include_path );
174 -
175 -define( 'CIVICRM_TEST_DIR' , $civicrm_root . DIRECTORY_SEPARATOR . 'test-new' . DIRECTORY_SEPARATOR );
176 -
177 -if ( function_exists( 'variable_get' ) && variable_get('clean_url', '0') != '0' ) {
178 - define( 'CIVICRM_CLEANURL', 1 );
179 -} else {
180 - define( 'CIVICRM_CLEANURL', 0 );
181 -}
182 -
183 -// force PHP to auto-detect Mac line endings
184 -ini_set('auto_detect_line_endings', '1');
185 -
186 -// make sure the memory_limit is at least 32 MiB
187 -$memLimitString = trim(ini_get('memory_limit'));
188 -$memLimitUnit = strtolower(substr($memLimitString, -1));
189 -$memLimit = (int) $memLimitString;
190 -switch ($memLimitUnit) {
191 - case 'g': $memLimit *= 1024;
192 - case 'm': $memLimit *= 1024;
193 - case 'k': $memLimit *= 1024;
194 -}
195 -if ($memLimit >= 0 and $memLimit < 33554432) {
196 - ini_set('memory_limit', '32M');
197 -}
198 -
199 -?>
Index: civicrm/trunk/sites/default/settings.php
@@ -1,166 +0,0 @@
2 -<?php
3 -// $Id: settings.php,v 1.39.2.3 2007/07/09 04:28:12 drumm Exp $
4 -
5 -/**
6 - * @file
7 - * Drupal site-specific configuration file.
8 - *
9 - * IMPORTANT NOTE:
10 - * This file may have been set to read-only by the Drupal installation
11 - * program. If you make changes to this file, be sure to protect it again
12 - * after making your modifications. Failure to remove write permissions
13 - * to this file is a security risk.
14 - *
15 - * The configuration file to be loaded is based upon the rules below.
16 - *
17 - * The configuration directory will be discovered by stripping the
18 - * website's hostname from left to right and pathname from right to
19 - * left. The first configuration file found will be used and any
20 - * others will be ignored. If no other configuration file is found
21 - * then the default configuration file at 'sites/default' will be used.
22 - *
23 - * For example, for a fictitious site installed at
24 - * http://www.drupal.org/mysite/test/, the 'settings.php'
25 - * is searched in the following directories:
26 - *
27 - * 1. sites/www.drupal.org.mysite.test
28 - * 2. sites/drupal.org.mysite.test
29 - * 3. sites/org.mysite.test
30 - *
31 - * 4. sites/www.drupal.org.mysite
32 - * 5. sites/drupal.org.mysite
33 - * 6. sites/org.mysite
34 - *
35 - * 7. sites/www.drupal.org
36 - * 8. sites/drupal.org
37 - * 9. sites/org
38 - *
39 - * 10. sites/default
40 - *
41 - * If you are installing on a non-standard port number, prefix the
42 - * hostname with that number. For example,
43 - * http://www.drupal.org:8080/mysite/test/ could be loaded from
44 - * sites/8080.www.drupal.org.mysite.test/.
45 - */
46 -
47 -/**
48 - * Database settings:
49 - *
50 - * Note that the $db_url variable gets parsed using PHP's built-in
51 - * URL parser (i.e. using the "parse_url()" function) so make sure
52 - * not to confuse the parser. If your username, password
53 - * or database name contain characters used to delineate
54 - * $db_url parts, you can escape them via URI hex encodings:
55 - *
56 - * : = %3a / = %2f @ = %40
57 - * + = %2b ( = %28 ) = %29
58 - * ? = %3f = = %3d & = %26
59 - *
60 - * To specify multiple connections to be used in your site (i.e. for
61 - * complex custom modules) you can also specify an associative array
62 - * of $db_url variables with the 'default' element used until otherwise
63 - * requested.
64 - *
65 - * You can optionally set prefixes for some or all database table names
66 - * by using the $db_prefix setting. If a prefix is specified, the table
67 - * name will be prepended with its value. Be sure to use valid database
68 - * characters only, usually alphanumeric and underscore. If no prefixes
69 - * are desired, leave it as an empty string ''.
70 - *
71 - * To have all database names prefixed, set $db_prefix as a string:
72 - *
73 - * $db_prefix = 'main_';
74 - *
75 - * To provide prefixes for specific tables, set $db_prefix as an array.
76 - * The array's keys are the table names and the values are the prefixes.
77 - * The 'default' element holds the prefix for any tables not specified
78 - * elsewhere in the array. Example:
79 - *
80 - * $db_prefix = array(
81 - * 'default' => 'main_',
82 - * 'users' => 'shared_',
83 - * 'sessions' => 'shared_',
84 - * 'role' => 'shared_',
85 - * 'authmap' => 'shared_',
86 - * 'sequences' => 'shared_',
87 - * );
88 - *
89 - * Database URL format:
90 - * $db_url = 'mysql://username:password@localhost/databasename';
91 - * $db_url = 'mysqli://username:password@localhost/databasename';
92 - * $db_url = 'pgsql://username:password@localhost/databasename';
93 - */
94 -/** $db_url = 'mysqli://drupal5:drupal5password@srv10.wikimedia.org:3306/drupal5'; **/
95 -$db_url = 'mysqli://drupal5:drupal5password@db9.pmtpa.wmnet:3306/drupal5';
96 -$db_prefix = '';
97 -
98 -/**
99 - * Base URL (optional).
100 - *
101 - * If you are experiencing issues with different site domains,
102 - * uncomment the Base URL statement below (remove the leading hash sign)
103 - * and fill in the URL to your Drupal installation.
104 - *
105 - * You might also want to force users to use a given domain.
106 - * See the .htaccess file for more information.
107 - *
108 - * Examples:
109 - * $base_url = 'http://www.example.com';
110 - * $base_url = 'http://www.example.com:8888';
111 - * $base_url = 'http://www.example.com/drupal';
112 - * $base_url = 'https://www.example.com:8888/drupal';
113 - *
114 - * It is not allowed to have a trailing slash; Drupal will add it
115 - * for you.
116 - */
117 -# $base_url = 'http://www.example.com'; // NO trailing slash!
118 -
119 -/**
120 - * PHP settings:
121 - *
122 - * To see what PHP settings are possible, including whether they can
123 - * be set at runtime (ie., when ini_set() occurs), read the PHP
124 - * documentation at http://www.php.net/manual/en/ini.php#ini.list
125 - * and take a look at the .htaccess file to see which non-runtime
126 - * settings are used there. Settings defined here should not be
127 - * duplicated there so as to avoid conflict issues.
128 - */
129 -ini_set('arg_separator.output', '&amp;');
130 -ini_set('magic_quotes_runtime', 0);
131 -ini_set('magic_quotes_sybase', 0);
132 -ini_set('session.cache_expire', 200000);
133 -ini_set('session.cache_limiter', 'none');
134 -ini_set('session.cookie_lifetime', 2000000);
135 -ini_set('session.gc_maxlifetime', 200000);
136 -ini_set('session.save_handler', 'user');
137 -ini_set('session.use_only_cookies', 1);
138 -ini_set('session.use_trans_sid', 0);
139 -ini_set('url_rewriter.tags', '');
140 -
141 -/**
142 - * Drupal automatically generates a unique session cookie name for each site
143 - * based on on its full domain name. If you have multiple domains pointing at
144 - * the same Drupal site, you can either redirect them all to a single domain
145 - * (see comment in .htaccess), or uncomment the line below and specify their
146 - * shared base domain. Doing so assures that users remain logged in as they
147 - * cross between your various domains.
148 - */
149 -# $cookie_domain = 'example.com';
150 -
151 -/**
152 - * Variable overrides:
153 - *
154 - * To override specific entries in the 'variable' table for this site,
155 - * set them here. You usually don't need to use this feature. This is
156 - * useful in a configuration file for a vhost or directory, rather than
157 - * the default settings.php. Any configuration setting from the 'variable'
158 - * table can be given a new value.
159 - *
160 - * Remove the leading hash signs to enable.
161 - */
162 -# $conf = array(
163 -# 'site_name' => 'My Drupal site',
164 -# 'theme_default' => 'minnelli',
165 -# 'anonymous' => 'Visitor',
166 -# );
167 -

Status & tagging log