4 // Get session and API handles
5 require_once 'plc_session.php';
6 global $plc, $api, $adm;
9 require_once 'plc_drupal.php';
10 drupal_set_title('About myplc');
11 include 'plc_header.php';
14 require_once 'plc_functions.php';
16 function __cmp_lower ($a,$b) {
17 return strcmp(strtolower($a),strtolower($b));
20 $release=$adm->GetPlcRelease ();
22 print "<table><tbody>\n";
24 foreach ( array( "build", "tags", "rpms" ) as $field) {
26 print "<tr><th colspan='2' align='center'></th></tr>\n";
27 print "<tr><th colspan='2' align='center'><h2>" . ucwords($field . " details") . "</h2></th></tr>\n";
28 $keys=array_keys($release[$field]);
29 usort($keys,"__cmp_lower");
31 foreach ($keys as $key) {
32 print "<tr><th align='right'>" . $key . "</th>";
33 print "<td class='plc-foreign'>" . $release[$field][$key] . "</td></tr>";
37 print '</tbody></table>';
39 include 'plc_footer.php';