- use \\ instead of just \ in FileName - Use file_put_contents instead of open/write - Use file_exist instead of stat - Added /lib directory - Moved /tftpboot/index.cfg -> /config.ini - Moved /tftpboot/resolver.php -> /lib/resolver.php - Added /lib/config.php - include /lib/config.php in resolver.php and index.php - Changed $config array - Remove print_r($config['main']['base_path']) from config.php - Add isValidRequest() function - Use Boolean in tree_base data - Simplify config['subdirs'] substitution - Add lib/utils.php file - Added simple shell/utf/html escape checking - Added a collection of test cases (we need some more escape checking ones) - Added lib/logger.php (copied from tftpserver.php, so that it can be reused for that). - Clarify config.ini logformat - Update logger implementation - Replaced index.php with version that uses lib/resolver.php - Replaced ../etc/nginx/sites-available/tftpboot Example file
18 lines
590 B
INI
18 lines
590 B
INI
[main]
|
|
debug = on ; The output in the browser window for more information
|
|
cache_filename = "/tmp/provision_sccp_resolver.cache"
|
|
default_language = English_United_States
|
|
log_type = SYSLOG ; SYSLOG|STDERR|STDOUT|NULL|FILE
|
|
log_level = LOG_INFO ; LOG_EMERG|LOG_ALERT|LOG_CRIT|LOG_ERR|LOG_WARNING|LOG_NOTICE|LOG_INFO|LOG_DEBUG
|
|
;log_filename = provision.log ; only in case of log_type = FILE
|
|
|
|
[subdirs]
|
|
tftproot = tftpboot
|
|
firmware = firmware
|
|
settings = settings
|
|
wallpapers = wallpapers
|
|
ringtones = ringtones
|
|
locales = locales
|
|
countries = countries
|
|
languages = languages
|