IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 1, 2008, 5:42:05 PM (18 years ago)
Author:
bills
Message:

get web page working again with job sequencing through the database

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/web/request.php

    r16279 r16283  
    1414<pre>
    1515<?php
     16
     17$COMMAND_DIR = "/export/data0/bills/src/ipp/pstamp/scripts";
     18$STAMPS_DIR = "stamps";
    1619
    1720// Initialize variables
     
    416419    global $rvar_id, $rvar_class_id;
    417420    global $command_line;
     421    global $STAMPS_DIR;
    418422
    419423    $cmd = "pstampwebrequest.sh";
     
    430434        throw new Exception('Stamp Name must be specified.');
    431435    }
    432     $cmd .= " -user_tag $rvar_user_tag";
     436    $cmd .= " -user_tag $STAMPS_DIR/$rvar_user_tag";
    433437
    434438    // Set up the ROI parameters
     
    493497    global $error_line;
    494498    global $command_status;
    495 
    496     $HOME = "/export/data1/bills/pstamp";
    497     $cmd_dir  = "$HOME/bin";
    498     $work_dir = "$HOME/work";
    499 
    500 
    501     exec ("$cmd_dir/$command_line", $output_array, $command_status);
     499    global $COMMAND_DIR;
     500
     501
     502    exec ("$COMMAND_DIR/$command_line", $output_array, $command_status);
    502503
    503504    $size = sizeof($output_array);
     
    520521function printURL($path)
    521522{
    522     $fileName = basename($path);
    523523    echo "<tr><td>";
    524     echo "<a href=\"http:$path\" target=\"_blank\" type=\"image/fits\">";
    525     echo $fileName;
    526     echo "</a>";
     524    $doURL = 1;
     525    if ($doURL) {
     526        $fileName = basename($path);
     527        echo "<a href=\"http:$path\" target=\"_blank\" type=\"image/fits\">";
     528        echo $fileName;
     529        echo "</a>";
     530    } else {
     531        print "$path";
     532    }
    527533    echo "</td></tr>";
    528534}
Note: See TracChangeset for help on using the changeset viewer.