IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11490 for trunk/ippMonitor/raw


Ignore:
Timestamp:
Jan 31, 2007, 11:20:53 AM (19 years ago)
Author:
eugene
Message:

update to use the new database columns

Location:
trunk/ippMonitor/raw
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/raw/getimage.php

    r10963 r11490  
    1313}
    1414
    15 $basename = escapeshellarg($_GET[name]);
    16 $basename = str_replace ('..','',$basename);
    17 
    1815putenv("PERL5LIB=$PERLLIB:");
    1916$PATH = getenv("PATH");
    2017putenv("PATH=$BINDIR:$PATH");
     18
     19# echo "args: $args<br>";
     20
     21# $basename may contain filename@filerule
     22$basename = strtok($_GET[name],"@");
     23$filerule = strtok("@");
     24
     25# echo "basename: $basename<br>";
     26# echo "filerule: $filerule<br>";
     27
     28# need to supply the camera as well...
     29# exec ("ipp_filerule.pl --site=$SITE $basename", $output, $status);
     30
     31if ($filerule) {
     32  if ($filerule == "PPIMAGE.JPEG1") {
     33    $basename = "$basename.b1.jpg";
     34  }
     35  if ($filerule == "PPIMAGE.JPEG2") {
     36    $basename = "$basename.b2.jpg";
     37  }
     38}
     39
     40$basename = escapeshellarg($basename);
     41$basename = str_replace ('..','',$basename);
    2142
    2243exec ("ipp_datapath.pl --site=$SITE $basename", $output, $status);
  • trunk/ippMonitor/raw/ipp.copy.dat

    r10963 r11490  
    2626menulink  | menuselect   | link    | Raw Detrend Exp              | rawDetrendExp.php             
    2727menulink  | menuselect   | link    | Raw Science Exp              | rawScienceExp.php             
     28menulink  | menuselect   | link    | Raw Unknown Exp              | rawUnknownExp.php             
    2829menutop   | menutop      | plain   | &nbsp;                       |
    2930menulink  | menuselect   | link    | Summit Exp                   | summitExp.php                         
    3031menulink  | menuselect   | link    | Copy Pending Exp             | pzPendingExp.php             
    3132menulink  | menuselect   | link    | New Exp                      | newExp.php                   
     33menutop   | menutop      | plain   | &nbsp;                       |
     34menulink  | menuselect   | link    | Failed Raw Imfiles           | rawImfile_failed.php                         
     35menulink  | menuselect   | link    | Failed Raw Exp               | rawExp_failed.php                   
  • trunk/ippMonitor/raw/ipp.php

    r10621 r11490  
    200200  echo "<body>\n";
    201201
    202   $root = "/phpipp";
     202  $root = "/ippMonitor";
    203203
    204204  if (! $project) { $project = "none"; }
     
    307307}
    308308
     309// expect image supplied with key=name
     310// this function should define matching hidden inputs in the form
     311function insert_backref ($page, $key, $link) {
     312
     313  if ($_SERVER[REQUEST_METHOD] == 'GET') {
     314    $name = $_GET[$key];
     315  } else {
     316    $name = $_POST[$key];
     317  }
     318
     319  if ($name) {
     320    echo "back to <a href=\"$page?$link&$key=$name\"> $name </a><br>\n";
     321  }
     322}
     323
    309324// $myPage = $_SERVER[SCRIPT_NAME] . "?pass=$pass";
    310325
Note: See TracChangeset for help on using the changeset viewer.