summaryrefslogtreecommitdiffstats
path: root/web/html/packages.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/html/packages.php')
-rw-r--r--web/html/packages.php19
1 files changed, 18 insertions, 1 deletions
diff --git a/web/html/packages.php b/web/html/packages.php
index bc398ee5..1600e41c 100644
--- a/web/html/packages.php
+++ b/web/html/packages.php
@@ -7,7 +7,24 @@ include("pkgfuncs.inc"); # package specific functions
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
+
+# set the title to something useful depending on
+# what "page" we're on
+#
+if (isset($_GET['ID'])) {
+ $id = pkgname_from_id($_GET['ID']);
+ if (!empty($id)) {
+ $title = $id;
+ }
+} else if (isset($_GET['K'])) {
+ $title = "Search: " . $_GET['K'];
+} else if (isset($_GET['do_MyPackages'])) {
+ $title = __("My Packages");
+} else {
+ $title = __("Packages");
+}
+
+html_header($title); # print out the HTML header
# enable debugging
#