summaryrefslogtreecommitdiffstats
path: root/web/html/pkgedit.php
blob: 974c3ad8d7b142f58760f4d440f58c25859a1866 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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
?>