@@ -221,7 +221,7 @@ function add($username, $password, $email, $type, $firstname, $lastname, $callsi
221221 $ user_show_profile_image , $ user_previous_qsl_type , $ user_amsat_status_upload , $ user_mastodon_url ,
222222 $ user_default_band , $ user_default_confirmation , $ user_qso_end_times , $ user_qso_db_search_priority ,$ user_quicklog , $ user_quicklog_enter ,
223223 $ user_language , $ user_hamsat_key , $ user_hamsat_workable_only , $ user_iota_to_qso_tab , $ user_sota_to_qso_tab ,
224- $ user_wwff_to_qso_tab , $ user_pota_to_qso_tab , $ user_sig_to_qso_tab , $ user_dok_to_qso_tab ,
224+ $ user_wwff_to_qso_tab , $ user_pota_to_qso_tab , $ user_sig_to_qso_tab , $ user_dok_to_qso_tab , $ user_station_to_qso_tab ,
225225 $ user_lotw_name , $ user_lotw_password , $ user_eqsl_name , $ user_eqsl_password , $ user_clublog_name , $ user_clublog_password ,
226226 $ user_winkey , $ on_air_widget_enabled , $ on_air_widget_display_last_seen , $ on_air_widget_show_only_most_recent_radio ,
227227 $ qso_widget_display_qso_time , $ dashboard_banner , $ dashboard_solar , $ global_oqrs_text , $ oqrs_grouped_search ,
@@ -307,6 +307,7 @@ function add($username, $password, $email, $type, $firstname, $lastname, $callsi
307307 $ this ->db ->query ("insert into user_options (user_id, option_type, option_name, option_key, option_value) values ( " . $ insert_id . ", 'qso_tab','pota','show', " .(xss_clean ($ user_pota_to_qso_tab ?? 'off ' ) == "on " ? 1 : 0 )."); " );
308308 $ this ->db ->query ("insert into user_options (user_id, option_type, option_name, option_key, option_value) values ( " . $ insert_id . ", 'qso_tab','sig','show', " .(xss_clean ($ user_sig_to_qso_tab ?? 'off ' ) == "on " ? 1 : 0 )."); " );
309309 $ this ->db ->query ("insert into user_options (user_id, option_type, option_name, option_key, option_value) values ( " . $ insert_id . ", 'qso_tab','dok','show', " .(xss_clean ($ user_dok_to_qso_tab ?? 'off ' ) == "on " ? 1 : 0 )."); " );
310+ $ this ->db ->query ("insert into user_options (user_id, option_type, option_name, option_key, option_value) values ( " . $ insert_id . ", 'qso_tab','station','show', " .(xss_clean ($ user_station_to_qso_tab ?? 'off ' ) == "on " ? 1 : 0 )."); " );
310311 $ this ->db ->query ("insert into user_options (user_id, option_type, option_name, option_key, option_value) values ( " . $ insert_id . ", 'dashboard','show_map','boolean',' " .xss_clean ($ dashboard_map ?? 'Y ' )."'); " );
311312 $ this ->db ->query ("insert into user_options (user_id, option_type, option_name, option_key, option_value) values ( " . $ insert_id . ", 'dashboard','show_dashboard_banner','boolean',' " .xss_clean ($ dashboard_banner ?? 'Y ' )."'); " );
312313 $ this ->db ->query ("insert into user_options (user_id, option_type, option_name, option_key, option_value) values ( " . $ insert_id . ", 'dashboard','show_dashboard_solar','boolean',' " .xss_clean ($ dashboard_solar ?? 'Y ' )."'); " );
@@ -380,6 +381,7 @@ function edit($fields) {
380381 $ this ->db ->query ("replace into user_options (user_id, option_type, option_name, option_key, option_value) values ( " . $ fields ['id ' ] . ", 'qso_tab','pota','show', " .(xss_clean ($ fields ['user_pota_to_qso_tab ' ] ?? 'off ' ) == "on " ? 1 : 0 )."); " );
381382 $ this ->db ->query ("replace into user_options (user_id, option_type, option_name, option_key, option_value) values ( " . $ fields ['id ' ] . ", 'qso_tab','sig','show', " .(xss_clean ($ fields ['user_sig_to_qso_tab ' ] ?? 'off ' ) == "on " ? 1 : 0 )."); " );
382383 $ this ->db ->query ("replace into user_options (user_id, option_type, option_name, option_key, option_value) values ( " . $ fields ['id ' ] . ", 'qso_tab','dok','show', " .(xss_clean ($ fields ['user_dok_to_qso_tab ' ] ?? 'off ' ) == "on " ? 1 : 0 )."); " );
384+ $ this ->db ->query ("replace into user_options (user_id, option_type, option_name, option_key, option_value) values ( " . $ fields ['id ' ] . ", 'qso_tab','station','show', " .(xss_clean ($ fields ['user_station_to_qso_tab ' ] ?? 'off ' ) == "on " ? 1 : 0 )."); " );
383385 $ this ->db ->query ("replace into user_options (user_id, option_type, option_name, option_key, option_value) values ( " . $ fields ['id ' ] . ", 'widget','on_air','enabled',' " .(xss_clean ($ fields ['on_air_widget_enabled ' ] ?? 'false ' ))."'); " );
384386 $ this ->db ->query ("replace into user_options (user_id, option_type, option_name, option_key, option_value) values ( " . $ fields ['id ' ] . ", 'widget','on_air','display_last_seen',' " .(xss_clean ($ fields ['on_air_widget_display_last_seen ' ] ?? 'false ' ))."'); " );
385387 $ this ->db ->query ("replace into user_options (user_id, option_type, option_name, option_key, option_value) values ( " . $ fields ['id ' ] . ", 'widget','on_air','display_only_most_recent_radio',' " .(xss_clean ($ fields ['on_air_widget_show_only_most_recent_radio ' ] ?? 'true ' ))."'); " );
0 commit comments