Changeset 10963 for trunk/ippMonitor/raw/getimage.php
- Timestamp:
- Jan 8, 2007, 11:33:32 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/raw/getimage.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/raw/getimage.php
r10595 r10963 1 1 <?php 2 2 3 # $IMAGEDIR = "/data/alala/eugene/swtests/pantasks/"; 4 $CONFIGDIR = "/data/alala/eugene/src/panstarrs/ipp/config/ipprc.config"; 3 ### these need to be set to the correct locations!! 4 $PERLLIB = "/home/kiawe/eugene/psconfig/dev.linux/lib"; 5 $BINDIR = "/home/kiawe/eugene/psconfig/dev.linux/bin"; 6 $SITE = "/home/kiawe/eugene/.ipprc"; 5 7 $MISSING = "missing.png"; 6 8 … … 11 13 } 12 14 13 $basename = $_GET[name];15 $basename = escapeshellarg($_GET[name]); 14 16 $basename = str_replace ('..','',$basename); 15 17 16 $filename = system ("ipp_datapath.pl --site=$CONFIGDIR $IMAGEDIR", $status); 18 putenv("PERL5LIB=$PERLLIB:"); 19 $PATH = getenv("PATH"); 20 putenv("PATH=$BINDIR:$PATH"); 21 22 exec ("ipp_datapath.pl --site=$SITE $basename", $output, $status); 23 24 $filename = $output[0]; 17 25 if ($status) { 18 26 $filename = $MISSING; 27 } 28 29 if (0) { 30 echo "basename: $basename<br>"; 31 echo "result: $result<br>"; 32 echo "output: $output[0]<br>"; 33 echo "status: $status<br>"; 34 echo "filename: $filename<br>"; 35 exit (); 19 36 } 20 37
Note:
See TracChangeset
for help on using the changeset viewer.
