]> bicyclesonthemoon.info Git - ott/bsta/commitdiff
move merge_settings to common library main
authorb <rowerynaksiezycu@gmail.com>
Tue, 26 Mar 2024 19:25:58 +0000 (19:25 +0000)
committerb <rowerynaksiezycu@gmail.com>
Tue, 26 Mar 2024 19:25:58 +0000 (19:25 +0000)
12 files changed:
2words.1.pl
attach.1.pl
bbcode.1.pl
botm-common
bsta_lib.1.pm
chat.1.pl
frame.1.pl
goto.1.pl
info.1.pl
opomba.1.pl
reset.1.pl
viewer.1.pl

index 5f0f94192010c0e97232f4c551bae4516e412f42..a1894c66c5aec143fba7c6016b33d48b2a4fb314 100644 (file)
@@ -28,6 +28,7 @@ use Encode ('encode', 'decode');
 ###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',
@@ -44,7 +45,6 @@ use bsta_lib (
        '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'
index 4adfce4b26c7df5f298a8176ad60a0f651a007e3..23c003c1ccafe679813bbc235dcd3660d74a911e 100644 (file)
@@ -28,6 +28,7 @@ use Encode ('encode', 'decode');
 ###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',
@@ -39,7 +40,6 @@ use botm_common (
 );
 use bsta_lib (
        'STATE',
-       'merge_settings',
        'get_id', 'get_password',
        'read_settings', 'read_state', 'read_attachment'
 );
index 089d557c37676d17f60aab19c11eb2009beaf043..04a0ff4e89ded354973bb29db4103d6390be966b 100644 (file)
@@ -32,12 +32,12 @@ use botm_common (
        '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',
index 599a7e9a41f68c89f64cd982db730167d2acf28e..111fb5f38624401ac7f332dd8bf7fa65e7bf5b23 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 599a7e9a41f68c89f64cd982db730167d2acf28e
+Subproject commit 111fb5f38624401ac7f332dd8bf7fa65e7bf5b23
index 781ee0ed7a3a4cdba827619da059fe2bd9a936e3..90e6e448cebd0f05322f1d6cc2366129b8561cf7 100644 (file)
@@ -37,7 +37,6 @@ our @EXPORT      = ();
 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',
@@ -67,7 +66,8 @@ use botm_common (
        '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     = /
@@ -281,18 +281,6 @@ sub get_password {
 }
 
 
-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:
index 73c7ce9fa668b42b395b6e1e6886a605f326f01f..325ca2942a0079302854e2817d3c9970e6b9ae33 100644 (file)
--- a/chat.1.pl
+++ b/chat.1.pl
@@ -35,7 +35,8 @@ use botm_common (
        'merge_url',
        'html_entity_encode_dec',
        'open_encoded',
-       'http_header_status'
+       'http_header_status',
+       'merge_settings'
 );
 use bsta_lib (
        'STATE', 'CHAT_STATE', 'CHAT_ACTION',
@@ -43,7 +44,6 @@ use bsta_lib (
        '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'
 );
index ea9db038861154b2696bea1aaa4475a8b333cd0e..60595ae0b052dd1e92300024afe455efaec60ac4 100644 (file)
@@ -34,12 +34,12 @@ use botm_common (
        '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'
index 8588e259491ace99ec3c2d6e4c964763559f68be..26eef98e2214ae4248e39ecfebf1a7cc33656cf2 100644 (file)
--- a/goto.1.pl
+++ b/goto.1.pl
@@ -31,13 +31,13 @@ use botm_common (
        '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'
 );
 
index dfab493aa4a553ba1ff74e159a9c3ed83bda202d..58a675fc51381708ecc28dd61556ccd33c189b99 100644 (file)
--- a/info.1.pl
+++ b/info.1.pl
@@ -32,12 +32,12 @@ use botm_common (
        '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',
index 1821df55414ffc57be1762f3434c4f0e604761dc..bee3b49a7fcf381e25944dfe9fdfa6e1f0a4e3ae 100644 (file)
@@ -35,6 +35,7 @@ use botm_common (
        'html_entity_encode_dec',
        'open_encoded',
        'join_path',
+       'merge_settings',
        'merge_url',
        'make_id',
        'http_header_status'
@@ -46,7 +47,6 @@ use bsta_lib (
        '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',
index 9aa95418b656d4ea255f9f5f1a9c0a324c495f65..f57cf9c3681dcbb9f9048deda43415c994a218b7 100644 (file)
@@ -28,12 +28,12 @@ use Encode ('encode', 'decode');
 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'
 );
index 69c0abaad567a6489ed6216ec405787783e3967c..f0ed2c2524dd6832b42029dbdd9c9ffe5b3c3588 100644 (file)
@@ -34,12 +34,12 @@ use botm_common (
        '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',