diff options
author | pjmattal <pjmattal> | 2004-12-15 01:33:12 +0000 |
---|---|---|
committer | pjmattal <pjmattal> | 2004-12-15 01:33:12 +0000 |
commit | 252afad9fc0c46089b327a1315580a342cbc87c0 (patch) | |
tree | 6584678cf105deb47d6c85e7a8c00b54b61e3690 /web/lib/aur.inc | |
parent | 7549ca2d967e5146892b86b3334278c2591d3379 (diff) | |
download | aurweb-252afad9fc0c46089b327a1315580a342cbc87c0.tar.xz |
tweaks to package functions and schema
Diffstat (limited to 'web/lib/aur.inc')
-rw-r--r-- | web/lib/aur.inc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/web/lib/aur.inc b/web/lib/aur.inc index e696d5b..267b650 100644 --- a/web/lib/aur.inc +++ b/web/lib/aur.inc @@ -444,19 +444,6 @@ function dbug($msg) { return; } -# check to see if the package name exists -# -function package_exists($name="") { - if (!$name) {return 0;} - $dbh = db_connect(); - $q = "SELECT COUNT(*) FROM Packages "; - $q.= "WHERE Name = '".mysql_escape_string($name)."'"; - $result = db_query($q, $dbh); - if (!$result) {return 0;} - $row = mysql_fetch_row($result); - return $row[0]; -} - # check to see if the user can overwrite an existing package # function can_overwrite_pkg($name="", $sid="") { |