Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 110 lines (89 sloc) 2.299 kb
313e9c7 Initial import of 1.0RC1 and start of repository based on 1.0
Dean Allen authored
1 <?php
2
f4272d0 Add missing copyright/disclaimer headers
Pete Cooper authored
3 /*
4 * Textpattern Content Management System
5 * http://textpattern.com
6 *
5254d8a @philwareham It's 2015
philwareham authored
7 * Copyright (C) 2015 The Textpattern Development Team
f4272d0 Add missing copyright/disclaimer headers
Pete Cooper authored
8 *
9 * This file is part of Textpattern.
10 *
11 * Textpattern is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation, version 2.
14 *
15 * Textpattern is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with Textpattern. If not, see <http://www.gnu.org/licenses/>.
22 */
23
b94ac7c @gocom Wave of documentation.
gocom authored
24 /**
25 * Database credentials and site configuration.
26 *
27 * @package DB
28 */
29
30 /**
31 * MySQL database.
32 *
33 * @global string $txpcfg['db']
34 */
35
3e35e16 @philwareham Remove first indent in code formatting - batch 1
philwareham authored
36 $txpcfg['db'] = 'databasename';
313e9c7 Initial import of 1.0RC1 and start of repository based on 1.0
Dean Allen authored
37
b94ac7c @gocom Wave of documentation.
gocom authored
38 /**
39 * Database login name.
40 *
41 * @global string $txpcfg['user']
42 */
43
3e35e16 @philwareham Remove first indent in code formatting - batch 1
philwareham authored
44 $txpcfg['user'] = 'root';
313e9c7 Initial import of 1.0RC1 and start of repository based on 1.0
Dean Allen authored
45
b94ac7c @gocom Wave of documentation.
gocom authored
46 /**
47 * Database password.
48 *
49 * @global string $txpcfg['pass']
50 */
51
3e35e16 @philwareham Remove first indent in code formatting - batch 1
philwareham authored
52 $txpcfg['pass'] = '';
313e9c7 Initial import of 1.0RC1 and start of repository based on 1.0
Dean Allen authored
53
b94ac7c @gocom Wave of documentation.
gocom authored
54 /**
55 * Database hostname.
56 *
57 * @global string $txpcfg['host']
58 */
313e9c7 Initial import of 1.0RC1 and start of repository based on 1.0
Dean Allen authored
59
3e35e16 @philwareham Remove first indent in code formatting - batch 1
philwareham authored
60 $txpcfg['host'] = 'localhost';
313e9c7 Initial import of 1.0RC1 and start of repository based on 1.0
Dean Allen authored
61
b94ac7c @gocom Wave of documentation.
gocom authored
62 /**
63 * Table prefix.
64 *
dc90cc9 @philwareham Unabbreviation
philwareham authored
65 * Use only if you require multiple installs in one database.
b94ac7c @gocom Wave of documentation.
gocom authored
66 *
67 * @global string $txpcfg['table_prefix']
68 */
313e9c7 Initial import of 1.0RC1 and start of repository based on 1.0
Dean Allen authored
69
3e35e16 @philwareham Remove first indent in code formatting - batch 1
philwareham authored
70 $txpcfg['table_prefix'] = '';
313e9c7 Initial import of 1.0RC1 and start of repository based on 1.0
Dean Allen authored
71
b94ac7c @gocom Wave of documentation.
gocom authored
72 /**
73 * Full server path to textpattern directory, no slash at the end.
74 *
75 * @global string $txpcfg['txpath']
76 */
313e9c7 Initial import of 1.0RC1 and start of repository based on 1.0
Dean Allen authored
77
3e35e16 @philwareham Remove first indent in code formatting - batch 1
philwareham authored
78 $txpcfg['txpath'] = '/home/path/to/textpattern';
313e9c7 Initial import of 1.0RC1 and start of repository based on 1.0
Dean Allen authored
79
b94ac7c @gocom Wave of documentation.
gocom authored
80 /**
81 * Database connection charset.
82 *
15139fe @philwareham Tame long lineage in comments
philwareham authored
83 * Only for MySQL 4.1 and up. Must be equal to the table-charset, e.g. latin1
84 * or utf8.
b94ac7c @gocom Wave of documentation.
gocom authored
85 *
86 * @global string $txpcfg['dbcharset']
87 */
0d251a3 set ENGINE/TYPE and (if possible) CHARSET. Add Charset to config.php. Se...
Sencer Yurdagül authored
88
3e35e16 @philwareham Remove first indent in code formatting - batch 1
philwareham authored
89 $txpcfg['dbcharset'] = 'utf8';
0d251a3 set ENGINE/TYPE and (if possible) CHARSET. Add Charset to config.php. Se...
Sencer Yurdagül authored
90
b94ac7c @gocom Wave of documentation.
gocom authored
91 /**
92 * Database client flags.
93 *
94 * These are optional. Use the database client flags as needed.
95 * Available flags include: MYSQL_CLIENT_SSL, MYSQL_CLIENT_COMPRESS,
96 * MYSQL_CLIENT_IGNORE_SPACE, MYSQL_CLIENT_INTERACTIVE
97 *
98 * @global int $txpcfg['client_flags']
99 * @link http://www.php.net/manual/function.mysql-connect.php
100 */
1e953ef @rwetzlmayr Support for MySQL SSL connections. Props Sam.
rwetzlmayr authored
101
3e35e16 @philwareham Remove first indent in code formatting - batch 1
philwareham authored
102 $txpcfg['client_flags'] = 0;
1e953ef @rwetzlmayr Support for MySQL SSL connections. Props Sam.
rwetzlmayr authored
103
b94ac7c @gocom Wave of documentation.
gocom authored
104 /*
147e9bf @gocom Programming style.
gocom authored
105 * Optional, advanced: http address of the site serving images
b94ac7c @gocom Wave of documentation.
gocom authored
106 * see http://forum.textpattern.com/viewtopic.php?id=34493
107 */
d5940d0 @rwetzlmayr Introduce constant 'ihu': Optional http address of the site serving imag...
rwetzlmayr authored
108
3e35e16 @philwareham Remove first indent in code formatting - batch 1
philwareham authored
109 // define('ihu', 'http://static.example.com/');
Something went wrong with that request. Please try again.