From d25c1772295cff12e96f6836203c0515ddd4bc2a Mon Sep 17 00:00:00 2001 From: Callan Barrett Date: Fri, 10 Oct 2008 11:29:37 +0800 Subject: Turn on package notification by default for new packages Version using package functions Signed-off-by: Callan Barrett Signed-off-by: Loui Chang --- web/html/pkgsubmit.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'web') diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index b2c7c0e..1db6abc 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -372,6 +372,7 @@ if ($_COOKIE["AURSID"]): header('Location: packages.php?ID=' . $pdata['ID']); } else { + $uid = uid_from_sid($_COOKIE["AURSID"]); # This is a brand new package $q = sprintf("INSERT INTO Packages (Name, License, Version, CategoryID, Description, URL, LocationID, SubmittedTS, SubmitterUID, MaintainerUID, FSPath, URLPath) VALUES ('%s', '%s', '%s-%s', %d, '%s', '%s', 2, UNIX_TIMESTAMP(), %d, %d, '%s', '%s')", @@ -416,6 +417,8 @@ if ($_COOKIE["AURSID"]): db_query($q, $dbh); } } + + pkg_notify(account_from_sid($_COOKIE["AURSID"]), array($packageID)); header('Location: packages.php?ID=' . $packageID); -- cgit v1.2.3-70-g09d2