Changeset 11490 for trunk/ippMonitor/raw/getimage.php
- Timestamp:
- Jan 31, 2007, 11:20:53 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/raw/getimage.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/raw/getimage.php
r10963 r11490 13 13 } 14 14 15 $basename = escapeshellarg($_GET[name]);16 $basename = str_replace ('..','',$basename);17 18 15 putenv("PERL5LIB=$PERLLIB:"); 19 16 $PATH = getenv("PATH"); 20 17 putenv("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 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 } 39 40 $basename = escapeshellarg($basename); 41 $basename = str_replace ('..','',$basename); 21 42 22 43 exec ("ipp_datapath.pl --site=$SITE $basename", $output, $status);
Note:
See TracChangeset
for help on using the changeset viewer.
