deprecated) continue; array_push($platforms, $platform); } mysql_free_result($r2); $xml = $_GET['xml']; if ($xml) { require_once('../inc/xml.inc'); xml_header(); echo "\n"; } else { page_head(tr(APPS_TITLE)); echo tr(APPS_DESCRIPTION)."

"; start_table(); } $result = mysql_query("select * from app where deprecated=0"); while ($app = mysql_fetch_object($result)) { if ($xml) { echo "\n"; echo " $app->user_friendly_name\n"; } else { echo " $app->user_friendly_name ".tr(APPS_PLATFORM)."".tr(APPS_VERSION)."".tr(APPS_INSTALLTIME)."\n "; } for ($i=0; $iid and platformid = $platform->id"); while ($av = mysql_fetch_object($r2)) { if ($av->deprecated) continue; if (!$newest || $av->version_num>$newest->version_num) { $newest = $av; } } if ($newest) { $y = pretty_time_str($newest->create_time); if ($xml) { echo " \n"; echo " $platform->name\n"; echo " $platform->user_friendly_name\n"; echo " $newest->version_num\n"; echo " $y\n"; echo " $newest->create_time\n"; echo " \n"; } else { $x = sprintf("%0.2f", $newest->version_num/100); echo " $platform->user_friendly_name $x $y "; } } } if ($xml) { echo " \n"; } } mysql_free_result($result); if ($xml) { echo "
\n"; } else { end_table(); page_tail(); } ?>