mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Hand diff of simo's patch to remove flag safe functionality.
Simo's original commit text: The idea of safe flagging is unclear, poorly named, misunderstood, and not even used. At the time this patch was created, less than a third of the packages in unsupported were flagged safe, and less than a tenth of users knew how to interpret it. The safe flag has been replaced by a disclaimer on the main page.
This commit is contained in:
parent
6dbe12264a
commit
a9837329d6
5 changed files with 2 additions and 177 deletions
|
@ -412,11 +412,6 @@ if ($_COOKIE["AURSID"]) {
|
|||
$q.="Description='".mysql_real_escape_string($new_pkgbuild['pkgdesc'])."', ";
|
||||
$q.="URL='".mysql_real_escape_string($new_pkgbuild['url'])."', ";
|
||||
$q.="LocationID=2, ";
|
||||
if (account_from_sid($_COOKIE["AURSID"]) == "Trusted User" || account_from_sid($_COOKIE["AURSID"]) == "Developer") {
|
||||
$q.="Safe=1, VerifiedBy=".uid_from_sid($_COOKIE["AURSID"]).", ";
|
||||
} else {
|
||||
$q.="Safe=0, ";
|
||||
}
|
||||
$fspath=INCOMING_DIR.$pkg_name."/".$_FILES["pfile"]["name"];
|
||||
$q.="FSPath='".mysql_real_escape_string($fspath)."', ";
|
||||
$urlpath=URL_DIR.$pkg_name."/".$_FILES["pfile"]["name"];
|
||||
|
@ -481,9 +476,6 @@ if ($_COOKIE["AURSID"]) {
|
|||
#
|
||||
$q = "INSERT INTO Packages ";
|
||||
$q.= " (Name, License, Version, CategoryID, Description, URL, LocationID, ";
|
||||
if (account_from_sid($_COOKIE["AURSID"]) == "Trusted User" || account_from_sid($_COOKIE["AURSID"]) == "Developer") {
|
||||
$q.= "Safe, VerifiedBy,";
|
||||
}
|
||||
$q.= " SubmittedTS, SubmitterUID, MaintainerUID, FSPath, URLPath) ";
|
||||
$q.= "VALUES ('";
|
||||
$q.= mysql_real_escape_string($new_pkgbuild['pkgname'])."', '";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue