IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 4, 2007, 9:46:32 AM (19 years ago)
Author:
eugene
Message:

updating the getimage concepts

File:
1 edited

Legend:

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

    r11490 r13241  
    2020
    2121# $basename may contain filename@filerule
    22 $basename = strtok($_GET[name],"@");
    23 $filerule = strtok("@");
     22$basename = $_GET[name];
     23$filerule = $_GET[rule];
     24$camera   = $_GET[camera];
     25$class_id = $_GET[class_id];
    2426
     27# $filerule = strtok("@");
    2528# echo "basename: $basename<br>";
    2629# echo "filerule: $filerule<br>";
    2730
    2831# need to supply the camera as well...
    29 # exec ("ipp_filerule.pl --site=$SITE $basename", $output, $status);
    3032
    31 if ($filerule) {
    32   if ($filerule == "PPIMAGE.JPEG1") {
    33     $basename = "$basename.b1.jpg";
    34   }
    35   if ($filerule == "PPIMAGE.JPEG2") {
    36     $basename = "$basename.b2.jpg";
    37   }
    38 }
     33# if ($filerule) {
     34#   if ($filerule == "PPIMAGE.JPEG1") {
     35#     $basename = "$basename.b1.jpg";
     36#   }
     37#   if ($filerule == "PPIMAGE.JPEG2") {
     38#     $basename = "$basename.b2.jpg";
     39#   }
     40# }
     41# exec ("ipp_datapath.pl --site=$SITE $basename", $output, $status);
    3942
     43# do I need to do this to the output result as well?
    4044$basename = escapeshellarg($basename);
    4145$basename = str_replace ('..','',$basename);
    4246
    43 exec ("ipp_datapath.pl --site=$SITE $basename", $output, $status);
     47exec ("ipp_filename.pl --site=$SITE --basename $basename --filerule $filerule --camera $camera --class_id $class_id", $output, $status);
    4448
    4549$filename = $output[0];
     
    5054if (0) {
    5155  echo "basename: $basename<br>";
    52   echo "result:   $result<br>";
    5356  echo "output:   $output[0]<br>";
    5457  echo "status:   $status<br>";
     
    5962$file = fopen ($filename, "r");
    6063if ($file) {
     64  # do I need to use image/jpg? can I modify this to image/png, etc, based on the type?
    6165  header ('Content-Type: image/jpg');
    6266  fpassthru ($file);
Note: See TracChangeset for help on using the changeset viewer.