X-Git-Url: https://git.cweiske.de/bdrem.git/blobdiff_plain/cbf951471e3a3bb3f7ddd0f9ca2d07241aba756d..refs/remotes/github/master:/data/bdrem.config.php.dist diff --git a/data/bdrem.config.php.dist b/data/bdrem.config.php.dist index 076533f..55dbe81 100644 --- a/data/bdrem.config.php.dist +++ b/data/bdrem.config.php.dist @@ -1,27 +1,61 @@ '/path/to/file.csv', + 'columns' => [ + 'name' => 0, + 'event' => 1, + 'date' => 2 + ], + 'firstLineIsHeader' => true, + 'defaultEvent' => 'Birthday', + 'separator' => ',', + ] +]; //Source: SQL database -$source = array( +$source = [ 'Sql', - array( + [ 'dsn' => 'mysql:dbname=bdrem;host=127.0.0.1', 'user' => 'FIXME', 'password' => 'FIXME', 'table' => 'contacts', - 'fields' => array( - 'date' => array( + 'fields' => [ + 'date' => [ //column name => event title 'c_birthday' => 'Birthday' - ), + ], //column with name, or array with column names - 'name' => array('c_name'), + '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; @@ -29,5 +63,5 @@ $locale = 'de_DE.UTF-8'; //email settings $mail_from = 'birthday@example.org'; -$mail_to = array('a@example.org', 'b@example.org'); +$mail_to = ['a@example.org', 'b@example.org']; ?>