debug option for mail renderer
[bdrem.git] / data / bdrem.config.php.dist
1 <?php
2 //source: birthday file
3 $source = array('Bdf', '/path/to/birthday.bdf');
4
5 //Source: CSV file (simple)
6 $source = array('Csv', '/path/to/file.csv');
7
8 //Source: CSV file (complex)
9 $source = array(
10     'Csv',
11     array(
12         'filename' => '/path/to/file.csv',
13         'columns' => array(
14             'name'  => 0,
15             'event' => 1,
16             'date'  => 2
17         ),
18         'firstLineIsHeader' => true,
19         'defaultEvent' => 'Birthday',
20         'separator' => ',',
21     )
22 );
23
24 //Source: SQL database
25 $source = array(
26     'Sql',
27     array(
28         'dsn' => 'mysql:dbname=bdrem;host=127.0.0.1',
29         'user' => 'FIXME',
30         'password' => 'FIXME',
31         'table' => 'contacts',
32         'fields' => array(
33             'date' => array(
34                 //column name => event title
35                 'c_birthday' => 'Birthday'
36             ),
37             //column with name, or array with column names
38             'name' => array('c_name'),
39             //sprintf-compatible name formatting instruction
40             'nameFormat' => '%s',
41         )
42     )
43 );
44
45 //Source: LDAP
46 $source = array(
47     'Ldap',
48     array(
49         'host'   => 'ldap.example.org',
50         'basedn' => 'ou=adressbuch,dc=example,dc=org',
51         'binddn' => 'cn=FIXME,ou=users,dc=example,dc=org',
52         'bindpw' => 'FIXME'
53     )
54 );
55
56
57 $daysPrev = 3;
58 $daysNext = 14;
59 $locale = 'de_DE.UTF-8';
60
61 //email settings
62 $mail_from = 'birthday@example.org';
63 $mail_to = array('a@example.org', 'b@example.org');
64 ?>