diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..9e572cee --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.swp +web/lib/config.inc + diff --git a/web/html/account.php b/web/html/account.php index fd9cc617..3d981715 100644 --- a/web/html/account.php +++ b/web/html/account.php @@ -13,6 +13,10 @@ html_header(); # print out the HTML header # Main page processing here # +echo "
";
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('', ''))." "; # MAIN: Top Right print " | ";
@@ -178,9 +178,6 @@ print "
\n"; print __("The selected packages have been flagged out-of-date."); print "
\n"; + + # notification by tardo. + $f_name = username_from_sid($_COOKIE['AURSID']); + $f_email = email_from_sid($_COOKIE['AURSID']); + $f_uid = uid_from_sid($_COOKIE['AURSID']); + $q = "SELECT Packages.Name, Users.Email, Packages.ID "; + $q.= "FROM Packages, Users "; + $q.= "WHERE Packages.ID IN (" . $flag .") "; + $q.= "AND Users.ID = Packages.MaintainerUID "; + $q.= "AND Users.ID != " . $f_uid; + $result = db_query($q, $dbh); + if (mysql_num_rows($result)) { + while ($row = mysql_fetch_assoc($result)) { + # construct email + $body = "Your package " . $row['Name'] . " has been flagged out of date by " . $f_name . ". You may view your package at:\nhttp://aur.archlinux.org/packages.php?do_Details=1&ID=" . $row['ID']; + $body = wordwrap($body, 70); + $headers = "To: ".$row['Email']."\nReply-to: nobody@archlinux.org\nFrom:aur-notify@archlinux.org\nX-Mailer: PHP\nX-MimeOLE: Produced By AUR\n"; + @mail(' ', "AUR Out-of-date Notification for ".$row['Name'], $body, $headers); + } + } + } else { print "\n"; print __("You did not select any packages to flag."); diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 2e05f1cf..abccd662 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -9,7 +9,9 @@ include("config.inc"); # configuration file with dir locations set_lang(); # this sets up the visitor's language check_sid(); # see if they're still logged in html_header(); # print out the HTML header -print "
"; - print __("%s: %sAn ArchLinux project%s", array("AUR", "", "")); - print " | \n"; - print "||
\n";
- print "
| \n";
- print " ||
";
- print " .:";
- print " ".__("Home")." ";
- print " - ";
- print " ".__("Accounts")." ";
- print " - ";
- print " ".__("Packages")." ";
+END1;
if ($_COOKIE["AURSID"]) {
- # Only display these items if the visitor is logged in. This should
- # be a safe check because check_sid() has been called prior to
- # html_header().
- #
- print " - ";
- print " ".__("Submit")." ";
+ # This is a usability change, so we can go to My Packages page
+ # with just one click
+ # Added by: dsa | ";
- print " ||
\n";
- print " \n"; - print "\n\n"; - - return; + echo ' '."\n";
+ echo " \n";
+ echo " \n";
+ echo "\n";
+ echo "\n";
+ echo "\n\n";
+ return;
}
@@ -437,9 +414,6 @@ function html_header() {
function html_footer($ver="") {
print "\n\n\n";
print " \n"; - print " | \n";
- print "
\n"; print "
"; - print "".__("Package Details")." | \n"; - print "|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
\n";
- print "
\n\n"; - print " |
".__("Actions")." |
".__("Comments")." | |
";
-
- print " | |
\n";
+ echo " | \n";
+ echo "
\n"; - print str_replace("\n", "
\n"; - print "", str_replace('"',""", htmlspecialchars(strip_tags(stripslashes($carr["Comments"]))))); - print "
\n"; + echo nl2br(htmlspecialchars($carr["Comments"])); + echo "