-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
74 lines (57 loc) · 1.58 KB
/
config.php
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
use lib\Config as Config;
use Illuminate\Database\Capsule\Manager as Capsule;
/*
* Project configuration
* EDITABLE
*/
// Database information
$settings = array(
'driver' => 'mysql',
'host' => 'localhost',
'port' => '',
'database' => 'forms',
'username' => 'forms',
'password' => 'forms',
'collation' => 'utf8_general_ci',
'charset' => 'utf8',
'prefix' => ''
);
// Base path of the project (important if you are installing in inside a subdirectory)
$base_path = '';
// Port of the project
$port_project = '9079';
// Require authentication
$auth_required = true;
// Mails will be sent with this address as sender
$email_from = 'your-name@domain';
// Template to use for emails
// (files are located on app/templates/[name].html)
$email_template = 'default';
/*
* END EDITABLE
*/
/*
* Touch only if you know what you are doing
*/
// Allowed input element names on fields form (Form edition)
$field_form_elements = array(
'field_name',
'placeholder',
);
// Allowed input element names on contact form (Form edition)
$contact_form_elements = array(
'contact_name',
'contact_email'
);
Config::write('field_form_elements', $field_form_elements);
Config::write('contact_form_elements', $contact_form_elements);
Config::write('base_path', $base_path);
Config::write('email_from', $email_from);
Config::write('email_template', $email_template);
Config::write('port_project', $port_project);
Config::write('auth_required', $auth_required);
$capsule = new Capsule;
$capsule->addConnection($settings);
$capsule->setAsGlobal();
$capsule->bootEloquent();