diff --git a/web/html/images/new.gif b/web/html/images/new.gif new file mode 100644 index 00000000..7df48235 Binary files /dev/null and b/web/html/images/new.gif differ diff --git a/web/html/images/rss.gif b/web/html/images/rss.gif new file mode 100644 index 00000000..d1b03eb4 Binary files /dev/null and b/web/html/images/rss.gif differ diff --git a/web/html/index.php b/web/html/index.php index ac5026b3..88413f21 100644 --- a/web/html/index.php +++ b/web/html/index.php @@ -74,40 +74,133 @@ if (isset($_REQUEST["user"]) || isset($_REQUEST["pass"])) { # html_header(); +# Big Top Level Table (Table 1) print "
";
-print " ".__("Welcome to the AUR! If you're a newcomer, you may want to read the %hGuidelines%h.", array('', ''))." "; -print "".__("If you have feedback about the AUR, please leave it in %hFlyspray%h.", array('', ''))." "; -print "".__("Email discussion about the AUR takes place on the %sTUR Users List%s.", array('', '')); -print " ".__("Though we can't vouch for their contents, we provide a %hlist of user repositories%h for your convenience.", array('', ''))." "; + +# Left half of front page +print " | ";
+print " ".__("Welcome to the AUR! Please read the %hAUR User Guidelines%h and %hAUR TU Guidelines%h for more information.", array('', '', '', ''))." ".__("If you have feedback about the AUR, please leave it in %hFlyspray%h.", array('', ''))." ".__("Though we can't vouch for their contents, we provide a %hlist of user repositories%h for your convenience.", array('', ''))." "; print "\n"; +# PACKAGE COUNTS + +$q = "SELECT count(*) FROM Packages,PackageLocations WHERE Packages.LocationID = PackageLocations.ID AND PackageLocations.Location = 'unsupported'"; +$result = db_query($q, $dbh); +$row = mysql_fetch_row($result); +$unsupported_count = $row[0]; + +$q = "SELECT count(*) FROM Packages,PackageLocations WHERE Packages.LocationID = PackageLocations.ID AND PackageLocations.Location = 'community'"; +$result = db_query($q, $dbh); +$row = mysql_fetch_row($result); +$community_count = $row[0]; + +$q = "SELECT count(*) from Users"; +$result = db_query($q, $dbh); +$row = mysql_fetch_row($result); +$user_count = $row[0]; + +$q = "SELECT count(*) from Users,AccountTypes WHERE Users.AccountTypeID = AccountTypes.ID AND AccountTypes.AccountType = 'Trusted User'"; +$result = db_query($q, $dbh); +$row = mysql_fetch_row($result); +$tu_count = $row[0]; + +print "
| ";
-# XXX Is this the proper way to add some spacing between table cells?
-#
print " "; print " | \n"; + +# Now present the user login stuff if (!isset($_COOKIE["AURSID"])) { # the user is not logged in, give them login widgets # @@ -136,10 +229,12 @@ if (!isset($_COOKIE["AURSID"])) { print __("Logged-in as: %h%s%h", array("", username_from_sid($_COOKIE["AURSID"]), "")); } + +# Close out the right column print " | "; print "