- set_user_prefs($_POST['prices'], $_POST['Quantities'],
- $_POST['Rates'], $_POST['Percent'],
- check_value('show_gl'),
- check_value('show_codes'),
- $_POST['date_format'], $_POST['date_sep'],
- $_POST['tho_sep'], $_POST['dec_sep'],
- $_POST['theme'], $_POST['page_size'], check_value('show_hints'),
- $_POST['profile'], check_value('rep_popup'),
- (int)($_POST['query_size']), check_value('graphic_links'),
- $_POST['language']);
+ set_user_prefs(get_post(
+ array('prices_dec', 'qty_dec', 'rates_dec', 'percent_dec',
+ 'date_format', 'date_sep', 'tho_sep', 'dec_sep', 'print_profile',
+ 'theme', 'page_size', 'language', 'startup_tab',
+ 'show_gl' => 0, 'show_codes'=> 0, 'show_hints' => 0,
+ 'rep_popup' => 0, 'graphic_links' => 0, 'sticky_doc_date' => 0,
+ 'query_size' => 10.0)));