|
1
|
|
|
<?php |
|
2
|
|
|
if ( !isset($this->config) ) |
|
3
|
|
|
{ |
|
4
|
|
|
die(__FILE__ . ' must not be called directly'); |
|
5
|
|
|
} |
|
6
|
|
|
|
|
7
|
|
|
####################### central API config ######################## |
|
8
|
|
|
# notice: you only have to set values differing from the defaults # |
|
9
|
|
|
################################################################### |
|
10
|
|
|
|
|
11
|
|
|
# use the new .lua login method in current (end 2012) labor and newer firmwares (Fritz!OS 5.50 and up) |
|
12
|
|
|
$this->config->setItem('use_lua_login_method', true); |
|
13
|
|
|
|
|
14
|
|
|
# set to your Fritz!Box IP address or DNS name (defaults to fritz.box), for remote config mode, use the dyndns-name like example.dyndns.org |
|
15
|
|
|
$this->config->setItem('fritzbox_ip', 'fritz.box'); |
|
16
|
|
|
|
|
17
|
|
|
# if needed, enable remote config here |
|
|
|
|
|
|
18
|
|
|
#$this->config->setItem('enable_remote_config', true); |
|
19
|
|
|
#$this->config->setItem('remote_config_user', 'test'); |
|
20
|
|
|
#$this->config->setItem('remote_config_password', 'test123'); |
|
21
|
|
|
|
|
22
|
|
|
# set to your Fritz!Box username, if login with username is enabled (will be ignored, when remote config is enabled) |
|
23
|
|
|
$this->config->setItem('username', false); |
|
24
|
|
|
|
|
25
|
|
|
# set to your Fritz!Box password (defaults to no password, will be ignored, when remote config is enabled) |
|
26
|
|
|
$this->config->setItem('password', false); |
|
27
|
|
|
|
|
28
|
|
|
# set the logging mechanism (defaults to console logging) |
|
29
|
|
|
$this->config->setItem('logging', 'console'); // output to the console |
|
|
|
|
|
|
30
|
|
|
#$this->config->setItem('logging', 'silent'); // do not output anything, be careful with this logging mode |
|
31
|
|
|
#$this->config->setItem('logging', 'tam.log'); // the path to a writeable logfile |
|
32
|
|
|
|
|
33
|
|
|
# the newline character for the logfile (does not need to be changed in most cases) |
|
34
|
|
|
$this->config->setItem('newline', (PHP_OS == 'WINNT') ? "\r\n" : "\n"); |
|
35
|
|
|
|
|
36
|
|
|
|
|
37
|
|
|
############## module specific config ############### |
|
38
|
|
|
|
|
39
|
|
|
# set the path for the call list for the foncalls module |
|
40
|
|
|
$this->config->setItem('foncallslist_path', __DIR__ . '\foncallsdaten.csv'); |
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.