IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 23, 2016, 9:17:22 AM (10 years ago)
Author:
bills
Message:

committing several data store scripts that have been in production
for quite a while but never committed to the source tree

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStoreServer/scripts/dsrootindex

    r17381 r39658  
    1414my $PS_EXIT_CONFIG_ERROR = 3;
    1515
     16# set this variable to redirect listings of the root datastore directory
     17# to the password protected php page on the postage stamp server web site.
     18# Since the data store is restricted by IP address now this is no longer necessary
     19my $redirect_root_to_pstamp = 0;
     20if ($redirect_root_to_pstamp) {
     21
     22        print '
     23        <html>
     24        <head>
     25        <meta HTTP-EQUIV="REFRESH" content="0; url=http://pstamp.ipp.ifa.hawaii.edu/dsroot.php">
     26        </head>
     27        </html>
     28        ';
     29
     30        exit 0;
     31}
     32
    1633my $dbh = getDBHandle();
    1734
    18 my $stmt = $dbh->prepare("SELECT * FROM dsProduct");
     35my $stmt = $dbh->prepare("SELECT * FROM dsProduct ORDER BY type");
    1936$stmt->execute();
    2037
     
    3653        $row->{type}, $row->{description};
    3754
     55    # XXX EAM : security by obfuscation
    3856    print $line;
    3957}
Note: See TracChangeset for help on using the changeset viewer.