. require_once("../inc/boinc_db.inc"); require_once("../inc/util.inc"); require_once("../inc/translation.inc"); $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, work 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"); foreach ($apps as $app) { if ($xml) { echo "\n"; echo " $app->user_friendly_name\n"; echo " $app->id\n"; } else { echo " $app->user_friendly_name ".tra("Platform")." ".tra("Version")." ".tra("Installation time")." "; } foreach ($platforms as $platform) { $avs = BoincAppVersion::enum( "appid=$app->id and platformid = $platform->id and deprecated=0" ); foreach($avs as $av) { foreach ($avs as $av2) { if ($av->id == $av2->id) continue; if ($av->plan_class == $av2->plan_class && $av->version_num > $av2->version_num) { $av2->deprecated = 1; } } } foreach($avs as $av) { if ($av->deprecated) continue; $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"; echo " \n"; } else { $version_num_f = sprintf("%0.2f", $av->version_num/100); if ($av->plan_class) { $version_num_f .= " ($av->plan_class)"; } echo " $platform->user_friendly_name $version_num_f $create_time_f "; } } } if ($xml) { echo " \n"; } } if ($xml) { echo "
\n"; } else { end_table(); page_tail(); } ?>