###PERL_LIB: use lib /botm/lib/bsta
use botm_common (
'HTTP_STATUS',
+ 'merge_settings',
'fail_method', 'fail_content_type',
'http_header_status', 'http_header_allow',
'merge_url',
'print_html_body_start', 'print_html_body_end',
'write_index',
'get_remote_addr', 'get_password',
- 'merge_settings',
'ong',
'read_story', 'write_story',
'read_settings', 'read_state'
###PERL_LIB: use lib /botm/lib/bsta
use botm_common (
'HTTP_STATUS',
+ 'merge_settings',
'fail_method', 'fail_content_type', 'fail_attachment', 'fail_500',
'redirect',
'read_header_env',
);
use bsta_lib (
'STATE',
- 'merge_settings',
'get_id', 'get_password',
'read_settings', 'read_state', 'read_attachment'
);
'read_header_env',
'url_query_decode',
'merge_url',
- 'http_header_status'
+ 'http_header_status',
+ 'merge_settings'
);
use bsta_lib (
'STATE',
'get_frame', 'get_password',
- 'merge_settings',
'eval_bb', 'bb_to_bbcode',
'get_frame_file',
'read_frame_data', 'read_default', 'read_noaccess',
-Subproject commit 599a7e9a41f68c89f64cd982db730167d2acf28e
+Subproject commit 111fb5f38624401ac7f332dd8bf7fa65e7bf5b23
our @EXPORT_OK = (
'STATE', 'TEXT_MODE', 'INTF_STATE', 'CHAT_STATE', 'CHAT_ACTION',
'get_remote_addr', 'get_id', 'get_frame', 'get_password',
- 'merge_settings',
'print_html_start', 'print_html_end',
'print_html_head_start', 'print_html_head_end',
'print_html_body_start', 'print_html_body_end',
'join_path',
'copy_encoded', 'open_encoded', '_x_encoded',
'http_header_line', 'http_status',
- 'http_header_status', 'http_header_allow', 'http_header_location'
+ 'http_header_status', 'http_header_allow', 'http_header_location',
+ 'merge_settings'
);
###PERL_PATH_SEPARATOR: PATH_SEPARATOR = /
}
-sub merge_settings {
- my %final_settings;
-
- foreach my $settings (@_) {
- foreach my $ind (keys %$settings) {
- $final_settings{$ind} = $settings->{$ind};
- }
- }
- return %final_settings;
-}
-
-
# BB code stuff
# different & simpler implementation than in post library
# to consider:
'merge_url',
'html_entity_encode_dec',
'open_encoded',
- 'http_header_status'
+ 'http_header_status',
+ 'merge_settings'
);
use bsta_lib (
'STATE', 'CHAT_STATE', 'CHAT_ACTION',
'print_html_start', 'print_html_end',
'print_html_head_start', 'print_html_head_end',
'print_html_body_start', 'print_html_body_end',
- 'merge_settings',
'read_chat', 'write_chat',
'read_coincidence', 'read_settings', 'read_state'
);
'join_path',
'merge_url',
'open_encoded', 'stat_encoded',
- 'http_header_line', 'http_header_content_length', 'http_header_content_disposition'
+ 'http_header_line', 'http_header_content_length', 'http_header_content_disposition',
+ 'merge_settings'
);
use bsta_lib (
'STATE', 'INTF_STATE',
'get_frame', 'get_password',
- 'merge_settings',
'get_frame_file',
'read_frame_data', 'read_default', 'read_noaccess',
'read_settings', 'read_state', 'read_story'
'redirect',
'read_header_env',
'url_query_decode',
- '_x_encoded'
+ '_x_encoded',
+ 'merge_settings'
);
use bsta_lib (
'STATE',
'get_password',
'print_goto',
- 'merge_settings',
'read_settings', 'read_state', 'read_goto'
);
'http_header_status',
'read_header_env',
'write_data_file',
- 'url_query_decode'
+ 'url_query_decode',
+ 'merge_settings'
);
use bsta_lib (
'STATE',
'get_password',
- 'merge_settings',
'get_page_file', 'get_frame_file',
'read_frame_data', 'read_default', 'read_noaccess',
'read_settings', 'read_default', 'read_state',
'html_entity_encode_dec',
'open_encoded',
'join_path',
+ 'merge_settings',
'merge_url',
'make_id',
'http_header_status'
'print_html_head_start', 'print_html_head_end',
'print_html_body_start', 'print_html_body_end',
'bb_to_html', 'eval_bb',
- 'merge_settings',
'write_index', 'write_static_viewer_page',
'read_settings', 'read_state',
'read_words', 'write_words',
use botm_common (
'write_data_file',
'opendir_encoded', 'readdir_decoded', 'unlink_encoded',
- 'join_path'
+ 'join_path',
+ 'merge_settings'
);
use bsta_lib (
'STATE', 'INTF_STATE', 'CHAT_STATE',
'write_index',
- 'merge_settings',
'get_page_file', 'get_frame_file',
'read_settings', 'read_default', 'read_frame_data', 'read_attachment', 'read_state'
);
'join_path',
'open_encoded', '_x_encoded',
'http_header_status',
+ 'merge_settings',
'merge_url'
);
use bsta_lib (
'STATE', 'TEXT_MODE', 'INTF_STATE',
'get_remote_addr', 'get_frame', 'get_password',
- 'merge_settings',
'print_viewer_page',
'write_index', 'write_static_goto', 'write_static_viewer_page',
'ong',