summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorswiergot <swiergot>2006-08-21 21:06:02 +0000
committerswiergot <swiergot>2006-08-21 21:06:02 +0000
commitd0da4199aeb0e032cb700c0a1fa19fcefcec28e6 (patch)
tree2b7976497dfaee07920694edd077cbc540ca6b30 /web/lib
parent8383a9d21627b097a0d6a2b267924cd3b2b20863 (diff)
downloadaurweb-d0da4199aeb0e032cb700c0a1fa19fcefcec28e6.tar.xz
Actually additional code was needed to close #3201 with a clear conscience.
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/pkgfuncs.inc25
1 files changed, 24 insertions, 1 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
index bfe6e03..6fd8ad9 100644
--- a/web/lib/pkgfuncs.inc
+++ b/web/lib/pkgfuncs.inc
@@ -328,6 +328,11 @@ function package_details($id=0, $SID="") {
print $maintainer . "</span></td>";
}
print "</tr>\n";
+
+ print "<tr>\n";
+ print " <td class='boxSoft' colspan='2'><span class='f3'>".__("Votes").": ";
+ print $row["NumVotes"] . "</span></td>";
+ print "</tr>\n";
print "<tr>\n";
print " <td class='boxSoft' colspan='2'><img src='/images/pad.gif' height='15'></td>";
@@ -477,18 +482,36 @@ function package_details($id=0, $SID="") {
print " value='".__("Unflag Safe")."' title='".__("Unflag Package Safe To Use")."'>";
}
}
+ if ($row["OutOfDate"] == 0)
+ {
print "<input type='submit' class='button' name='do_Flag'";
print " value='".__("Flag Out-of-date")."'>\n";
+ }
+ else
+ {
print "<input type='submit' class='button' name='do_UnFlag'";
print " value='".__("Unflag Out-of-date")."'>\n";
-
+ }
+
+ if ($row["AURMaintainerUID"] == 0 && $row["MaintainerUID"] == 0)
+ {
print "<input type='submit' class='button' name='do_Adopt'";
print " value='".__("Adopt Packages")."'>\n";
+ }
+
+ if ($row["MaintainerUID"] == uid_from_sid($SID))
+ {
print "<input type='submit' class='button' name='do_Disown'";
print " value='".__("Disown Packages")."'>\n";
+ }
+ if ($row["MaintainerUID"] == uid_from_sid($SID) ||
+ account_from_sid($SID) == "Trusted User" ||
+ account_from_sid($SID) == "Developer")
+ {
print "<input type='submit' class='button' name='do_Delete'";
print " value='".__("Delete Packages")."'>\n";
+ }
print "</form></td></tr>\n";
print "</table><br />\n";