. require_once("../inc/util.inc"); check_get_args(array("xml")); $platforms = BoincPlatform::enum("deprecated=0"); $xml = get_str('xml', true); if ($xml) { require_once('../inc/xml.inc'); xml_header(); echo "\n"; } else { page_head(tra("Applications")); echo tra("%1 currently has the following applications. When you participate in %1, tasks for one or more of these applications will be assigned to your computer. The current version of the application will be downloaded to your computer. This happens automatically; you don't have to do anything.", PROJECT)."

"; start_table(); } $apps = BoincApp::enum("deprecated=0"); $total_gf = 0; foreach ($apps as $app) { if ($xml) { echo "\n"; echo " $app->user_friendly_name\n"; echo " $app->name\n"; echo " $app->id\n"; if ($app->beta) { echo " \n"; } } else { $b = $app->beta?" (beta test)":""; echo " $app->user_friendly_name$b ".tra("Platform")." ".tra("Version")." ".tra("Created")." ".tra("Average computing")." "; } foreach ($platforms as $platform) { $avs = latest_avs_app_platform($app->id, $platform->id); foreach($avs as $av) { $create_time_f = pretty_time_str($av->create_time); if ($xml) { echo " \n"; echo " $platform->name\n"; echo " $platform->user_friendly_name\n"; echo " $av->version_num\n"; echo " $av->plan_class\n"; echo " $create_time_f\n"; echo " $av->create_time\n"; if ($av->beta) { echo " \n"; } echo " \n"; } else { $version_num_f = sprintf("%0.2f", $av->version_num/100); if ($av->plan_class) { $version_num_f .= " ($av->plan_class)"; } $gf = $av->expavg_credit/200; $total_gf += $gf; $gf = number_format($gf, 0); $b = $av->beta?" (beta test)":""; echo " $platform->user_friendly_name $version_num_f$b $create_time_f $gf GigaFLOPS "; } } } if ($xml) { echo " \n"; } } if ($xml) { echo "
\n"; } else { end_table(); $x = number_format($total_gf, 0); echo "

Total average computing: $x GigaFLOPS"; page_tail(); } ?>