Changeset 39659
- Timestamp:
- Aug 23, 2016, 9:20:47 AM (10 years ago)
- Location:
- trunk/DataStoreServer/web/php
- Files:
-
- 2 added
- 1 edited
-
getskycalcmf.php (added)
-
getsmf.php (modified) (5 diffs)
-
listsmfs.php (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataStoreServer/web/php/getsmf.php
r35330 r39659 5 5 // To just list use wget 'http://ippc17/ipp-misc/getsmf.php?exp_name=o5732g0036o&list=1' 6 6 7 // Only configuration variable here, the location of the cgi script to find smf files8 $command = "/data/ippc17.0/datastore/ds-cgi/findsmf.pl";9 10 $rvar_exp_name = "";11 $rvar_cam_id = "";12 $rvar_data_group = "";13 $rvar_list = 0;14 7 15 8 $error_string = ""; 16 9 $debug = 0; 17 18 # import_request_variables("g", "rvar_");19 10 20 11 $rvar_exp_name = getVar('exp_name'); … … 24 15 $rvar_data_group = getVar('data_group'); 25 16 $rvar_list = getVar('list'); 17 18 $command = "/data/ippc17.0/datastore/ds-cgi/findsmf.pl"; 26 19 27 20 # cam_id takes priority … … 38 31 if ($command) { 39 32 if ($rvar_release) { 40 $command .= " --release $release"; 33 if ($rvar_release == "3PI.GR1") { 34 $rvar_release = "3PI.PV1"; 35 } 36 $command .= " --release $rvar_release"; 41 37 } 42 38 if ($rvar_data_group) { … … 69 65 } 70 66 } else { 71 echo " unexpected output from $command: $output[0] $output[1]\n";67 echo "<br>unexpected output from $command: $output[0] $output[1]\n"; 72 68 } 73 69 } else { 74 70 if ($debug) { 75 echo " command failed $command_status\n";71 echo "<br>command failed $command_status\n"; 76 72 } 77 73 } … … 92 88 readfile($pathname); 93 89 } else { 94 echo "smf file name is $filename<br>\nfile is $pathname\n"; 90 echo "smf : $filename\n"; 91 # echo "path: $pathname\n"; 95 92 } 96 97 93 } else { 98 94 // XXX: Figure out how to stop wget from redirecting these error
Note:
See TracChangeset
for help on using the changeset viewer.
