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
|
<?php
//source: birthday file
$source = ['Bdf', '/path/to/birthday.bdf'];
//Source: CSV file (simple)
$source = ['Csv', '/path/to/file.csv'];
//Source: CSV file (complex)
$source = [
'Csv',
[
'filename' => '/path/to/file.csv',
'columns' => [
'name' => 0,
'event' => 1,
'date' => 2
],
'firstLineIsHeader' => true,
'defaultEvent' => 'Birthday',
'separator' => ',',
]
];
//Source: SQL database
$source = [
'Sql',
[
'dsn' => 'mysql:dbname=bdrem;host=127.0.0.1',
'user' => 'FIXME',
'password' => 'FIXME',
'table' => 'contacts',
'fields' => [
'date' => [
//column name => event title
'c_birthday' => 'Birthday'
],
//column with name, or array with column names
'name' => ['c_name'],
//sprintf-compatible name formatting instruction
'nameFormat' => '%s',
]
]
];
//Source: LDAP
$source = [
'Ldap',
[
'host' => 'ldap.example.org',
'basedn' => 'ou=adressbuch,dc=example,dc=org',
'binddn' => 'cn=FIXME,ou=users,dc=example,dc=org',
'bindpw' => 'FIXME'
]
];
//Source: Directory of .vcf vCard files (2 subfolder levels supported)
$source = ['vCard', '/home/user/contacts/'];
$daysPrev = 3;
$daysNext = 14;
$locale = 'de_DE.UTF-8';
//email settings
$mail_from = 'birthday@example.org';
$mail_to = ['a@example.org', 'b@example.org'];
?>
|