diff --git a/web/html/index.php b/web/html/index.php index 4e9e93f2..62cbd9a6 100644 --- a/web/html/index.php +++ b/web/html/index.php @@ -76,12 +76,11 @@ html_header(); # Big Top Level Table (Table 1) print "
"; +# MAIN: Top Left +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('', ''))." ".__("Remember to vote for your favourite packages!")." ".__("Though we can't vouch for their contents, we provide a %hlist of user repositories%h for your convenience.", array('', ''))." "; -print "\n"; +# MAIN: Top Right +print " | ";
+print "";
+
+# Now present the user login stuff
+if (!isset($_COOKIE["AURSID"])) {
+ # the user is not logged in, give them login widgets
+ #
+ if ($login_error) {
+ print "" . $login_error . " \n"; + } + print " | ";
+print "||||||
";
+
+#Hey, how about listing the newest pacakges? :D
+$q = "SELECT * FROM Packages ";
+$q.= "WHERE DummyPkg != 1 ";
+$q.= "ORDER BY SubmittedTS DESC ";
+$q.= "LIMIT 0 , 10";
+$result = db_query($q,$dbh);
+# Table 2
+print '
| "; +#print " | \n"; + +# MAIN: Bottom Right +print " | "; +print ""; # AUR STATISTICS @@ -142,6 +231,13 @@ print " | "; print "$community_count | "; print "||||
"; +print "".__("Packages added or updated in the past 7 days").""; +print " | "; +print "$update_count | "; +print "|||||||
"; print "".__("Registered Users").""; @@ -156,95 +252,8 @@ print " | "; print "$tu_count | "; print "|||||||
"; -print "".__("Packages added or updated in the past 7 days").""; -print " | "; -print "$update_count | "; -print "
';
-print ' ![]() | ';
-print '|
---|---|
'; - - print ''; - print $row["Name"]." ".$row["Version"].""; - - print ' | '; - print '';
-
- # figure out the mod string
- $mod_int = intval($row["ModifiedTS"]);
- $sub_int = intval($row["SubmittedTS"]);
- if ($mod_int != 0) {
- $modstring = date("r", $mod_int);
- }
- elseif ($sub_int != 0) {
- $modstring = '![]() | ';
- print '