Changeset 10595 for trunk/ippMonitor/raw/getimage.php
- Timestamp:
- Dec 8, 2006, 5:02:30 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/raw/getimage.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/raw/getimage.php
r9347 r10595 1 1 <?php 2 2 3 $IMAGEDIR = "/data/alala/eugene/swtests/pantasks/"; 3 # $IMAGEDIR = "/data/alala/eugene/swtests/pantasks/"; 4 $CONFIGDIR = "/data/alala/eugene/src/panstarrs/ipp/config/ipprc.config"; 5 $MISSING = "missing.png"; 4 6 5 7 // load an image file from the image directory 6 7 8 // validate request 8 9 if ($_SERVER[REQUEST_METHOD] != 'GET') { … … 13 14 $basename = str_replace ('..','',$basename); 14 15 15 $filename = $IMAGEDIR . $basename; 16 $filename = system ("ipp_datapath.pl --site=$CONFIGDIR $IMAGEDIR", $status); 17 if ($status) { 18 $filename = $MISSING; 19 } 16 20 17 21 $file = fopen ($filename, "r");
Note:
See TracChangeset
for help on using the changeset viewer.
