. require_once("../inc/boinc_db.inc"); require_once("../inc/util.inc"); require_once("../inc/translation.inc"); $platforms = BoincPlatform::enum("deprecated=0"); $xml = $_GET['xml']; 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"; } else { echo " $app->user_friendly_name ".tra("Platform")." ".tra("Version")." ".tra("Plan class")." ".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; $y = 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 " $y\n"; echo " $av->create_time\n"; echo " \n"; } else { $x = sprintf("%0.2f", $av->version_num/100); echo " $platform->user_friendly_name $x $av->plan_class $y "; } } } if ($xml) { echo " \n"; } } if ($xml) { echo "
\n"; } else { end_table(); page_tail(); } ?>