Index: trunk/ippMonitor/raw/getimage.php
===================================================================
--- trunk/ippMonitor/raw/getimage.php	(revision 9347)
+++ trunk/ippMonitor/raw/getimage.php	(revision 10595)
@@ -1,8 +1,9 @@
 <?php
 
-$IMAGEDIR = "/data/alala/eugene/swtests/pantasks/";
+# $IMAGEDIR = "/data/alala/eugene/swtests/pantasks/";
+$CONFIGDIR = "/data/alala/eugene/src/panstarrs/ipp/config/ipprc.config";
+$MISSING = "missing.png";
 
 // load an image file from the image directory
-
 // validate request
 if ($_SERVER[REQUEST_METHOD] != 'GET') { 
@@ -13,5 +14,8 @@
 $basename = str_replace ('..','',$basename);
 
-$filename = $IMAGEDIR . $basename;
+$filename = system ("ipp_datapath.pl --site=$CONFIGDIR $IMAGEDIR", $status);
+if ($status) {
+  $filename = $MISSING;
+}
 
 $file = fopen ($filename, "r");
