summaryrefslogtreecommitdiffstats
path: root/web/html/pkgsubmit.php
diff options
context:
space:
mode:
authorpjmattal <pjmattal>2005-04-06 04:54:11 +0200
committerpjmattal <pjmattal>2005-04-06 04:54:11 +0200
commit71b5b9e6b7e92fe1f2c0c49f47af1c1255f41e24 (patch)
tree7ecc58341c00433e99bf52f61384c525ebdff8c2 /web/html/pkgsubmit.php
parent7fccb8b634118a2f4f92220b194dc74273b15957 (diff)
downloadaur-71b5b9e6b7e92fe1f2c0c49f47af1c1255f41e24.tar.gz
aur-71b5b9e6b7e92fe1f2c0c49f47af1c1255f41e24.tar.xz
many changes in prep for launch
new doc page added changed AUR to community lower-cased unsupported fixed half of the bug with changing categories: categories now can't be changed for packages in community however they can still be changed out from under maintainers by joe users for unsupported packages debugged problem with package details not found when unsupported uploads were with Category 0 (changed default to 19)
Diffstat (limited to 'web/html/pkgsubmit.php')
-rw-r--r--web/html/pkgsubmit.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index bd635f44..a73ca5ae 100644
--- a/web/html/pkgsubmit.php
+++ b/web/html/pkgsubmit.php
@@ -330,7 +330,8 @@ if ($_COOKIE["AURSID"]) {
#
$q = "UPDATE Packages SET ";
$q.="Name='".mysql_escape_string($new_pkgbuild['pkgname'])."', ";
- $q.="Version='".mysql_escape_string($new_pkgbuild['pkgver'])."',";
+ $q.="Version='".mysql_escape_string($new_pkgbuild['pkgver'])."-".
+ mysql_escape_string($new_pkgbuild['pkgrel'])."',";
$q.="CategoryID=".mysql_escape_string($_REQUEST['category']).", ";
$q.="Description='".mysql_escape_string($new_pkgbuild['pkgdesc'])."', ";
$q.="URL='".mysql_escape_string($new_pkgbuild['url'])."', ";
@@ -389,7 +390,8 @@ if ($_COOKIE["AURSID"]) {
$q.= " SubmittedTS, SubmitterUID, MaintainerUID, FSPath, URLPath) ";
$q.= "VALUES ('";
$q.= mysql_escape_string($new_pkgbuild['pkgname'])."', '";
- $q.= mysql_escape_string($new_pkgbuild['pkgver'])."', ";
+ $q.= mysql_escape_string($new_pkgbuild['pkgver'])."-".
+ mysql_escape_string($new_pkgbuild['pkgrel'])."', ";
$q.= mysql_escape_string($_REQUEST['category']).", '";
$q.= mysql_escape_string($new_pkgbuild['pkgdesc'])."', '";
$q.= mysql_escape_string($new_pkgbuild['url']);
@@ -478,7 +480,7 @@ if ($_COOKIE["AURSID"]) {
print __("Package Category").":</td>\n";
print " <td span='f4' align='left'>";
print "<select name='category'>";
- print "<option value='0'> " . __("Select Category") . "</option>";
+ print "<option value='19'> " . __("Select Category") . "</option>";
while (list($k, $v) = each($pkg_categories)) {
print "<option value='".$k."'> " . $v . "</option>";
}