Index: trunk/DataStoreServer/scripts/dsrootindex
===================================================================
--- trunk/DataStoreServer/scripts/dsrootindex	(revision 17381)
+++ trunk/DataStoreServer/scripts/dsrootindex	(revision 39658)
@@ -14,7 +14,24 @@
 my $PS_EXIT_CONFIG_ERROR = 3;
 
+# set this variable to redirect listings of the root datastore directory
+# to the password protected php page on the postage stamp server web site.
+# Since the data store is restricted by IP address now this is no longer necessary
+my $redirect_root_to_pstamp = 0;
+if ($redirect_root_to_pstamp) {
+
+        print '
+        <html>
+        <head>
+        <meta HTTP-EQUIV="REFRESH" content="0; url=http://pstamp.ipp.ifa.hawaii.edu/dsroot.php">
+        </head>
+        </html>
+        ';
+
+        exit 0;
+}
+
 my $dbh = getDBHandle();
 
-my $stmt = $dbh->prepare("SELECT * FROM dsProduct");
+my $stmt = $dbh->prepare("SELECT * FROM dsProduct ORDER BY type");
 $stmt->execute();
 
@@ -36,4 +53,5 @@
         $row->{type}, $row->{description};
 
+    # XXX EAM : security by obfuscation
     print $line;
 }
