Added Simo's patch for #2579, adding user info page

also modified it slightly so that we no longer look at AURMaintainerUID for maintainer
This commit is contained in:
pjmattal 2005-06-10 04:52:46 +00:00
parent 45e5883a15
commit c7e4f5c7fa
4 changed files with 84 additions and 7 deletions

View file

@ -309,14 +309,15 @@ function package_details($id=0, $SID="") {
print "</tr>\n";
print "<tr>\n";
print " <td colspan='2'><span class='f3'>".__("Maintainer").": ";
if ($row["AURMaintainerUID"]) {
$maintainer = username_from_id($row["AURMaintainerUID"]);
} elseif ($row["MaintainerUID"]) {
if ($row["MaintainerUID"]) {
$maintainer = username_from_id($row["MaintainerUID"]);
print "<a href='/account.php?Action=AccountInfo&ID=";
print $row["MaintainerUID"] . "'>";
print $maintainer . "</a></span></td>";
} else {
$maintainer = "None";
print $maintainer . "</span></td>";
}
print $maintainer . "</span></td>";
print "</tr>\n";
print "<tr>\n";
print " <td colspan='2'><img src='/images/pad.gif' height='15'></td>";