summaryrefslogtreecommitdiffstats
path: root/web/html/pkgsubmit.php
diff options
context:
space:
mode:
authorCallan Barrett <wizzomafizzo@gmail.com>2008-10-10 11:29:37 +0800
committerLoui Chang <louipc.ist@gmail.com>2009-06-18 02:05:02 -0400
commitd25c1772295cff12e96f6836203c0515ddd4bc2a (patch)
tree81b872af3a500629f7c96dd0a20e585741baa3bb /web/html/pkgsubmit.php
parent0427eebaa4b3343fa0d165fbfef2ff0857897b57 (diff)
downloadaurweb-d25c1772295cff12e96f6836203c0515ddd4bc2a.tar.xz
Turn on package notification by default for new packages
Version using package functions Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com> Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/html/pkgsubmit.php')
-rw-r--r--web/html/pkgsubmit.php3
1 files changed, 3 insertions, 0 deletions
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);