Index: /trunk/ippMonitor/doc/notes.txt
===================================================================
--- /trunk/ippMonitor/doc/notes.txt	(revision 10594)
+++ /trunk/ippMonitor/doc/notes.txt	(revision 10595)
@@ -1,2 +1,17 @@
+
+Installation:
+
+the code currently requires three (3) hardwired paths to be set before
+installation:
+
+- the DESTBIN directory in the Makefile must be set to the directory
+  in your apache installation where the package will reside
+
+- the database hostname, user, and password must be set in ipp.php
+
+- the location of the ipprc.config file must be specific in
+  getimage.php
+
+** TODO: set these with a configure script.
 
 - to update the mysql database from a dump:
Index: /trunk/ippMonitor/raw/getimage.php
===================================================================
--- /trunk/ippMonitor/raw/getimage.php	(revision 10594)
+++ /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");
Index: /trunk/ippMonitor/raw/phptest.php
===================================================================
--- /trunk/ippMonitor/raw/phptest.php	(revision 10594)
+++ /trunk/ippMonitor/raw/phptest.php	(revision 10595)
@@ -19,4 +19,7 @@
 }
 
+$value = system ("ls /etc", $status);
+echo "status: $status\n";
+
 menu_end();
 ?>
