From e3587ddf94ba742beabdaa8a68023f8ee0234b58 Mon Sep 17 00:00:00 2001 From: eric Date: Sun, 6 Mar 2005 21:44:56 +0000 Subject: started working on pkgedit for comments --- web/html/packages.php | 3 --- web/html/pkgedit.php | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ web/html/pkgmgmnt.php | 19 ------------------- 3 files changed, 48 insertions(+), 22 deletions(-) create mode 100644 web/html/pkgedit.php delete mode 100644 web/html/pkgmgmnt.php (limited to 'web/html') diff --git a/web/html/packages.php b/web/html/packages.php index 823a4ca..a211b34 100644 --- a/web/html/packages.php +++ b/web/html/packages.php @@ -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") { diff --git a/web/html/pkgedit.php b/web/html/pkgedit.php new file mode 100644 index 0000000..974c3ad --- /dev/null +++ b/web/html/pkgedit.php @@ -0,0 +1,48 @@ +\n"; + print_r($_REQUEST); + print "\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 "
\n"; +} else { + if (!$_REQUEST["ID"]) { + print __("Missing package ID."); + print "
\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 +?> diff --git a/web/html/pkgmgmnt.php b/web/html/pkgmgmnt.php deleted file mode 100644 index 6c8cddd..0000000 --- a/web/html/pkgmgmnt.php +++ /dev/null @@ -1,19 +0,0 @@ -\n"; - -# NOTE: managing an orphaned package will automatically force adoption -# - - -html_footer("\$Id$"); -# vim: ts=2 sw=2 noet ft=php -?> -- cgit v1.2.3-54-g00ecf