mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
started working on pkgedit for comments
This commit is contained in:
parent
aae43d9ad6
commit
e3587ddf94
8 changed files with 148 additions and 28 deletions
|
@ -133,7 +133,6 @@ if (isset($_REQUEST["do_Flag"])) {
|
|||
$disown .= ", ".$pid;
|
||||
}
|
||||
}
|
||||
$atype = account_from_sid($_COOKIE["AURSID"]);
|
||||
if ($atype == "Trusted User" || $atype == "Developer") {
|
||||
$field = "AURMaintainerUID";
|
||||
} elseif ($atype == "User") {
|
||||
|
@ -185,7 +184,6 @@ if (isset($_REQUEST["do_Flag"])) {
|
|||
$delete .= ", ".$pid;
|
||||
}
|
||||
}
|
||||
$atype = account_from_sid($_COOKIE["AURSID"]);
|
||||
if ($atype == "Trusted User" || $atype == "Developer") {
|
||||
$field = "AURMaintainerUID";
|
||||
} elseif ($atype == "User") {
|
||||
|
@ -282,7 +280,6 @@ if (isset($_REQUEST["do_Flag"])) {
|
|||
$adopt .= ", ".$pid;
|
||||
}
|
||||
}
|
||||
$atype = account_from_sid($_COOKIE["AURSID"]);
|
||||
if ($atype == "Trusted User" || $atype == "Developer") {
|
||||
$field = "AURMaintainerUID";
|
||||
} elseif ($atype == "User") {
|
||||
|
|
48
web/html/pkgedit.php
Normal file
48
web/html/pkgedit.php
Normal file
|
@ -0,0 +1,48 @@
|
|||
<?
|
||||
include("aur.inc"); # access AUR common functions
|
||||
include("pkgfuncs.inc"); # use some form of this for i18n support
|
||||
set_lang(); # this sets up the visitor's language
|
||||
check_sid(); # see if they're still logged in
|
||||
html_header(); # print out the HTML header
|
||||
|
||||
|
||||
$DBUG = 0;
|
||||
if ($DBUG) {
|
||||
print "<pre>\n";
|
||||
print_r($_REQUEST);
|
||||
print "</pre>\n";
|
||||
}
|
||||
|
||||
if (isset($_COOKIE["AURSID"])) {
|
||||
$atype = account_from_sid($_COOKIE["AURSID"]);
|
||||
} else {
|
||||
$atype = "";
|
||||
}
|
||||
|
||||
if (!$atype) {
|
||||
print __("You must be logged in before you can edit package information.");
|
||||
print "<br />\n";
|
||||
} else {
|
||||
if (!$_REQUEST["ID"]) {
|
||||
print __("Missing package ID.");
|
||||
print "<br />\n";
|
||||
} else {
|
||||
|
||||
# Main script processing here... basic error checking done.
|
||||
#
|
||||
if ($_REQUEST["add_Comment"]) {
|
||||
if ($_REQUEST["comment"]) {
|
||||
} else {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
html_footer("\$Id$"); # Use the $Id$ keyword
|
||||
# NOTE: when checking in a new file, use
|
||||
# 'svn propset svn:keywords "Id" filename.php'
|
||||
# to tell svn to expand the "Id" keyword.
|
||||
|
||||
# vim: ts=2 sw=2 et ft=php
|
||||
?>
|
|
@ -1,19 +0,0 @@
|
|||
<?
|
||||
include("aur.inc"); # access AUR common functions
|
||||
include("mgmnt_po.inc"); # use some form of this for i18n support
|
||||
set_lang(); # this sets up the visitor's language
|
||||
check_sid(); # see if they're still logged in
|
||||
html_header(); # print out the HTML header
|
||||
|
||||
|
||||
# vistor has requested package management for a specific package
|
||||
#
|
||||
print __("Manage package ID: %s", array($_REQUEST["ID"])) . "<br />\n";
|
||||
|
||||
# NOTE: managing an orphaned package will automatically force adoption
|
||||
#
|
||||
|
||||
|
||||
html_footer("\$Id$");
|
||||
# vim: ts=2 sw=2 noet ft=php
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue