diff options
author | eric <eric> | 2004-06-23 18:54:50 +0000 |
---|---|---|
committer | eric <eric> | 2004-06-23 18:54:50 +0000 |
commit | 252855ad9cbc9667faba0627680333137d70da9f (patch) | |
tree | 6c1117f54c366fb708bfb894e691ac5b26c1e1e1 /web/html | |
parent | 342d5dfce063550faa6c8871768367e56577bb2c (diff) | |
download | aurweb-252855ad9cbc9667faba0627680333137d70da9f.tar.xz |
possibly merge some scripts?
Diffstat (limited to 'web/html')
-rw-r--r-- | web/html/pkgsearch.php | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/web/html/pkgsearch.php b/web/html/pkgsearch.php index f5ef888..3911b85 100644 --- a/web/html/pkgsearch.php +++ b/web/html/pkgsearch.php @@ -4,11 +4,38 @@ include("search_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 + +# TODO Maybe pkgsearch, pkgvote can be consolidated? This script can +# provide a search form. In the results, it can contain a checkbox +# for 'flag out of date', 'vote', 'details' link, and a link to 'pkgmgmnt'. +# +# the results page should have columns for, +# pkg name/ver, location, maintainer, description, O-O-D, Vote, details, mgmnt +# -# Any text you print out to the visitor, use the __() function -# for i18n support. See 'testpo.php' for more details. +# get login privileges # +if (isset($_COOKIE["AURSID"])) { + # Only logged in users can do stuff + # + $atype = account_from_sid($_COOKIE["AURSID"]); +} else { + $atype = ""; +} + + +if ($atype && $_REQUEST["Action"] == "Something") { + # do something based on what the user specifies + # +} elseif ($atype && $_REQUEST["Action"] == "SomethingElse") { + # do something else based on what the user specifies + # +} else { + # do the default thing - give the user a search form that they + # can specify: location, category, maintainer, name, 'my pkgs' + # +} print __("Under construction...")."<br/>\n"; |