return; // unknown payout type } $db->update_user($member_id, $user); return $err; } switch ($vars['action']) { case 'enable_aff': enable_aff($member_id); display_links($member_id); break; case 'links': display_links($member_id); break; case 'stats': display_stats($member_id, $vars); break; case 'payout_info': if ($vars['save'] && !$vars['type_change']) { $u = $vars; $u['data'] = $vars; $err = update_payout_info($member_id, $vars); if (!$err) { $u = $db->get_user($member_id); } } else { $u = $db->get_user($member_id); } if ($vars['type_change']) { $u['aff_payout_type'] = $vars['aff_payout_type']; }
$given_dates = array_key_exists("dates", $_GET) ? $_GET['dates'] : date("Y-m-01 - Y-m-d"); $total_hash = null; $focus_where = null; $basic_select = "sum(num_mpi_install_pass + num_mpi_install_fail) as mpi_install, " . "sum(num_test_build_pass + num_test_build_fail) as test_build, " . "sum(num_test_run_pass + num_test_run_fail + num_test_run_timed) as test_run, " . "sum(num_test_run_perf) as perf "; $basic_where = "is_day = 't'"; $basic_from = "FROM mtt_stats_contrib "; ####################################### # Determine the date range ####################################### print "<html>" . "\n<head>" . "\n<title>Open MPI Test Statistics</title>" . $head_html . "\n</head>" . "\n<body>" . $body_html_prefix . print_ga() . "\n"; process_stat_dates(); process_stat_input(); #display_debug_input(); display_stats_header(); print html_select_stats(); display_stats(); # All done pg_close(); print "\n<hr>" . $body_html_suffix . "\n</body>" . "\n</html>"; ###################################################################### function display_stats() { global $start_collection_date; global $end_collection_date; # # Get totals # get_total_results(); # # Display database stats #