function make_new_settings_file($posi_list, $accnt_ident_list, $kword_ident_list, $submt_ident_list) { $conf_arr = []; $conf_arr['posi_configs'] = makeconf_posi($posi_list); $conf_arr['accnt_ident_configs'] = makeconf_accnt_ident($accnt_ident_list); $conf_arr['kword_ident_configs'] = makeconf_kword_ident($kword_ident_list); $conf_arr['submt_ident_configs'] = makeconf_submt_ident($submt_ident_list); appand_to_settings($conf_arr); merge_js_files(); }
function update_loader_js() { $settings = get_settings(); $posi_list = get_positions(); $accnt_ident_list = $settings['accounts']; $kword_ident_list = array_merge($settings['carts'], $settings['favorites'], $settings['interests']); $submt_ident_list = $settings['searchs']; $conf_arr = []; $conf_arr['posi_configs'] = makeconf_posi($posi_list); $conf_arr['accnt_ident_configs'] = makeconf_default($accnt_ident_list); $conf_arr['kword_ident_configs'] = makeconf_default($kword_ident_list); $conf_arr['submt_ident_configs'] = makeconf_default($submt_ident_list); $system = get_system_confs(); append_configs($conf_arr, $system); }