IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 43007


Ignore:
Timestamp:
May 3, 2026, 2:50:02 PM (4 days ago)
Author:
eugene
Message:

clearer names for global database variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-pstamp-20260421/pstamp/web/request.php

    r42996 r43007  
    309309//    echo "$cmd<br>\n";
    310310
    311     if ($dbname) {
     311    global $PS_DATABASE, $PS_HOSTNAME;
     312    if ($PS_DATABASE && $PS_HOSTNAME) {
    312313        $cmd .= " --dbname $PS_DATABASE --dbserver $PS_HOSTNAME";
    313314    }
     
    337338        $wholefile = 0;
    338339        if ($sky_checked) {
    339             if ($rvar_RA == NULL || $rvar_DEC == NULL) {
     340            if ($rvar_RA === NULL || $rvar_DEC === NULL) {
    340341                throw new Exception("RA and DEC must be specified. Got: ($rvar_RA, $rvar_DEC)");
    341342            }
     
    452453
    453454    // EAM : testing:
    454     echo "<br>running $command_line\n<br>";
     455    # echo "<br>running $command_line\n<br>";
    455456
    456457    // EAM : testing:
    457     // exec ("$command_line", $output_array, $command_status);
     458    exec ("$command_line", $output_array, $command_status);
    458459    http_response_code(400);
    459     echo "<b> run command $command_line</b><br>";
    460     die ("run command $command_line");
     460    # echo "<b> run command $command_line</b><br>";
     461    # die ("run command $command_line");
    461462
    462463    $size = sizeof($output_array);
     
    502503            $fileName = basename($path);
    503504            if ($state == "stop") {
    504                 global $dsroot;
    505                 $dirName  = "$dsroot/$product/$req_name";
     505                global $DS_ROOT;
     506                $dirName  = "$DS_ROOT/$product/$req_name";
    506507                $filesetURL = "$DS_URL/$product/$req_name";
    507508
Note: See TracChangeset for help on using the changeset viewer.