IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 24, 2016, 3:29:05 PM (10 years ago)
Author:
eugene
Message:

merging changes from trunk

Location:
branches/czw_branch/20160809
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20160809

  • branches/czw_branch/20160809/DataStoreServer/web/php/getsmf.php

    r35330 r39719  
    55// To just list use wget 'http://ippc17/ipp-misc/getsmf.php?exp_name=o5732g0036o&list=1'
    66
    7 // Only configuration variable here, the location of the cgi script to find smf files
    8 $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;
    147
    158$error_string = "";
    169$debug = 0;
    17 
    18 # import_request_variables("g", "rvar_");
    1910
    2011$rvar_exp_name = getVar('exp_name');
     
    2415$rvar_data_group = getVar('data_group');
    2516$rvar_list = getVar('list');
     17
     18$command = "/data/ippc17.0/datastore/ds-cgi/findsmf.pl";
    2619
    2720# cam_id takes priority
     
    3831if ($command) {
    3932    if ($rvar_release) {
    40         $command .= " --release $release";
     33        if ($rvar_release == "3PI.GR1") {
     34            $rvar_release = "3PI.PV1";
     35        }
     36        $command .= " --release $rvar_release";
    4137    }
    4238    if ($rvar_data_group) {
     
    6965            }
    7066        } else {
    71             echo "unexpected output from $command: $output[0] $output[1]\n";
     67            echo "<br>unexpected output from $command: $output[0] $output[1]\n";
    7268        }
    7369    } else {
    7470        if ($debug) {
    75             echo "command failed $command_status\n";
     71            echo "<br>command failed $command_status\n";
    7672        }
    7773    }
     
    9288        readfile($pathname);
    9389    } else {
    94         echo "smf file name is $filename<br>\nfile is $pathname\n";
     90        echo "smf : $filename\n";
     91        # echo "path: $pathname\n";
    9592    }
    96 
    9793} else {
    9894    // XXX: Figure out how to stop wget from redirecting these error
Note: See TracChangeset for help on using the changeset viewer.