IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

update to use the new database columns

File:
1 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);
Note: See TracChangeset for help on using the changeset viewer.