-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathconfig.php.default
More file actions
41 lines (33 loc) · 909 Bytes
/
Copy pathconfig.php.default
File metadata and controls
41 lines (33 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* Display option for ideas
* Used to allow vetting of ideas first
*
* 0 : Unapproved
* 1 : Approved
*/
define('DISPLAY_OPTION', 1);
/**
* Validation Language Directory
*/
define('VALIDATION_LANG_PATH', dirname(__FILE__) . '/app/lang/');
/**
* Database Details
*/
$activeGroup = 'local';
$db['local']['hostname'] = 'localhost';
$db['local']['username'] = '';
$db['local']['password'] = '';
$db['local']['database'] = '';
$db['local']['dbProvider'] = 'mysql';
switch ($db[$activeGroup]['dbProvider']) {
case 'mysql':
$providerString = sprintf('mysql:host=%s;dbname=%s', $db[$activeGroup]['hostname'], $db[$activeGroup]['database']);
break;
default:
$providerString = null;
break;
}
// Alias RedBean_Facade to R
class R extends RedBean_Facade{}
R::setup($providerString, $db[$activeGroup]['username'], $db[$activeGroup]['password']);