Changeset 39658 for trunk/DataStoreServer/scripts/dsrootindex
- Timestamp:
- Aug 23, 2016, 9:17:22 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/DataStoreServer/scripts/dsrootindex (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataStoreServer/scripts/dsrootindex
r17381 r39658 14 14 my $PS_EXIT_CONFIG_ERROR = 3; 15 15 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 19 my $redirect_root_to_pstamp = 0; 20 if ($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 16 33 my $dbh = getDBHandle(); 17 34 18 my $stmt = $dbh->prepare("SELECT * FROM dsProduct ");35 my $stmt = $dbh->prepare("SELECT * FROM dsProduct ORDER BY type"); 19 36 $stmt->execute(); 20 37 … … 36 53 $row->{type}, $row->{description}; 37 54 55 # XXX EAM : security by obfuscation 38 56 print $line; 39 57 }
Note:
See TracChangeset
for help on using the changeset viewer.
