summaryrefslogtreecommitdiffstats
path: root/web/html/pkgedit.php
diff options
context:
space:
mode:
authoreric <eric>2005-03-06 22:44:56 +0100
committereric <eric>2005-03-06 22:44:56 +0100
commite3587ddf94ba742beabdaa8a68023f8ee0234b58 (patch)
treec5b579f1b92b8fd20453fb348f0bb240832ec8c8 /web/html/pkgedit.php
parentaae43d9ad6fc83d04a4975f27392c1422dfa0ec4 (diff)
downloadaur-e3587ddf94ba742beabdaa8a68023f8ee0234b58.tar.gz
aur-e3587ddf94ba742beabdaa8a68023f8ee0234b58.tar.xz
started working on pkgedit for comments
Diffstat (limited to 'web/html/pkgedit.php')
-rw-r--r--web/html/pkgedit.php48
1 files changed, 48 insertions, 0 deletions
diff --git a/web/html/pkgedit.php b/web/html/pkgedit.php
new file mode 100644
index 00000000..974c3ad8
--- /dev/null
+++ b/web/html/pkgedit.php
@@ -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
+?>