1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
// CONFIG |
4
|
|
|
|
5
|
|
|
// hostname or IP address of Fritz!Box |
6
|
|
|
// Note: Some Boxes are configured to reject login via IP. |
7
|
|
|
// If that's the case with your box, then you have to specify the hostname. |
8
|
|
|
$config['fritzbox_ip'] = 'fritz.box'; |
9
|
|
|
$config['fritzbox_ip_ftp'] = 'fritz.box'; |
10
|
|
|
|
11
|
|
|
// user name/password to access Fritz!Box |
12
|
|
|
$config['fritzbox_user'] = 'fb_username'; |
13
|
|
|
$config['fritzbox_pw'] = 'fb_password'; |
14
|
|
|
//$config['fritzbox_force_local_login'] = true; |
15
|
|
|
|
16
|
|
|
// number of the internal phone book and its name |
17
|
|
|
// 0 - main phone book |
18
|
|
|
// 1..n - additional phone books |
19
|
|
|
$config['phonebook_number'] = '0'; |
20
|
|
|
$config['phonebook_name'] = 'Telefonbuch'; |
21
|
|
|
|
22
|
|
|
// Fullname format options |
|
|
|
|
23
|
|
|
// 'only if exist and switched to true here in config' |
24
|
|
|
// 0: "Prefix Lastname, Firstname AdditionalNames Suffix (orgname)" |
25
|
|
|
// 1: "Prefix Firstname Lastname AdditionalNames Suffix (orgname)" |
26
|
|
|
// 2: "Prefix Firstname AdditionalNames Lastname Suffix (orgname)" |
27
|
|
|
$config['fullname_format'] = 0; |
28
|
|
|
|
29
|
|
|
// Fullname parts |
30
|
|
|
$config['prefix'] = false; // include prefix in fullname if existing |
31
|
|
|
$config['suffix'] = false; // include suffix in fullname if existing |
32
|
|
|
$config['addnames'] = false; // include additionalnames in fullname if existing |
33
|
|
|
$config['orgname'] = false; // include organisation (company) in fullname if existing |
34
|
|
|
|
35
|
|
|
// Quickdial starting keyword in notes |
36
|
|
|
//$config['quickdial_keyword'] = 'Quickdial:'; // once activated you may add 'Quickdial:+49030123456:**709' to the contact note field and the number will set as quickdialnumber. You may add more quickdials for a single contact each in a new line |
37
|
|
|
|
38
|
|
|
// optional: write output to file of sending it to the Fritz!Box |
39
|
|
|
//$config['output_file'] = '/media/usbdisk/share/phonebook.xml'; |
40
|
|
|
// optional: once activated phonebook will also be upload to FRITZ!Box if changes are detectet (output_file must be set) |
41
|
|
|
//$config['output_and_upload'] = false; |
42
|
|
|
|
43
|
|
|
// optional: import only contacts of the given groups |
44
|
|
|
//$config['group_filter'] = array('Arzt','Familie','Freunde','Friseur','Geschäftlich','Hotline','Notruf','Restaurant','Shops'); |
45
|
|
|
|
46
|
|
|
// group name of 'important' callers |
47
|
|
|
$config['group_vip'] = 'VIP'; |
48
|
|
|
|
49
|
|
|
// base path of USB storage of Fritz!Box under which the path 'FRITZ\fonpix' could be found |
50
|
|
|
// '' -> use internal fritzbox storage |
51
|
|
|
//$config['usb_disk'] = 'Generic-FlashDisk-01'; |
52
|
|
|
|
53
|
|
|
// many version Fritz!Box use 'file:///var/media/ftp/' others 'file:///var/InternerSpeicher/' to check just export an your current phonebook and have a look at any imageURL tag `<imageURL>file:///var/media/ftp/(HERE_config_from:usb_disk)/FRITZ/fonpix/9.jpg</imageURL>`. |
54
|
|
|
//$config['fritzbox_path'] = 'file:///var/media/ftp/'; |
55
|
|
|
|
56
|
|
|
// multiple carddav adressbooks could be specified and will be merged together. |
57
|
|
|
|
58
|
|
|
// first |
59
|
|
|
$config['carddav'][0] = array( |
60
|
|
|
// URL of first CardDAV address book on cloud storage |
61
|
|
|
'url' => 'https://raspserver/owncloud/remote.php/carddav/addressbooks/fritzbox/fb_contacts', |
62
|
|
|
// user name/password for CardDAV access |
63
|
|
|
'user' => 'oc_username', |
64
|
|
|
'pw' => 'oc_password', |
65
|
|
|
// vcf extension |
66
|
|
|
'extension' => '.vcf' |
67
|
|
|
); |
68
|
|
|
|
69
|
|
|
// second |
70
|
|
|
//$config['carddav'][1] = array( |
71
|
|
|
// 'url' => 'https://raspserver/owncloud/remote.php/carddav/addressbooks/fritzbox/fb_contacts_second', |
72
|
|
|
// 'user' => 'oc_username', |
73
|
|
|
// 'pw' => 'oc_password', |
74
|
|
|
// 'extension' => '.vcf' |
75
|
|
|
//); |
76
|
|
|
|
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.