Index: trunk/ippMonitor/raw/getimage.php
===================================================================
--- trunk/ippMonitor/raw/getimage.php	(revision 10696)
+++ trunk/ippMonitor/raw/getimage.php	(revision 10963)
@@ -1,6 +1,8 @@
 <?php
 
-# $IMAGEDIR = "/data/alala/eugene/swtests/pantasks/";
-$CONFIGDIR = "/data/alala/eugene/src/panstarrs/ipp/config/ipprc.config";
+### these need to be set to the correct locations!!
+$PERLLIB = "/home/kiawe/eugene/psconfig/dev.linux/lib";
+$BINDIR = "/home/kiawe/eugene/psconfig/dev.linux/bin";
+$SITE = "/home/kiawe/eugene/.ipprc";
 $MISSING = "missing.png";
 
@@ -11,10 +13,25 @@
 }
 
-$basename = $_GET[name];
+$basename = escapeshellarg($_GET[name]);
 $basename = str_replace ('..','',$basename);
 
-$filename = system ("ipp_datapath.pl --site=$CONFIGDIR $IMAGEDIR", $status);
+putenv("PERL5LIB=$PERLLIB:");
+$PATH = getenv("PATH");
+putenv("PATH=$BINDIR:$PATH");
+
+exec ("ipp_datapath.pl --site=$SITE $basename", $output, $status);
+
+$filename = $output[0];
 if ($status) {
   $filename = $MISSING;
+}
+
+if (0) {
+  echo "basename: $basename<br>";
+  echo "result:   $result<br>";
+  echo "output:   $output[0]<br>";
+  echo "status:   $status<br>";
+  echo "filename: $filename<br>";
+  exit ();
 }
 
Index: trunk/ippMonitor/raw/ipp.copy.dat
===================================================================
--- trunk/ippMonitor/raw/ipp.copy.dat	(revision 10696)
+++ trunk/ippMonitor/raw/ipp.copy.dat	(revision 10963)
@@ -24,7 +24,8 @@
 
 menutop   | menutop      | plain   | &nbsp;                       | 
+menulink  | menuselect 	 | link    | Raw Detrend Exp              | rawDetrendExp.php             
+menulink  | menuselect 	 | link    | Raw Science Exp              | rawScienceExp.php             
+menutop   | menutop      | plain   | &nbsp;                       | 
 menulink  | menuselect 	 | link    | Summit Exp                   | summitExp.php                         
 menulink  | menuselect 	 | link    | Copy Pending Exp             | pzPendingExp.php              
 menulink  | menuselect 	 | link    | New Exp                      | newExp.php                    
-menulink  | menuselect 	 | link    | Raw Detrend Exp              | rawDetrendExp.php             
-menulink  | menuselect 	 | link    | Raw Science Exp              | rawScienceExp.php             
Index: trunk/ippMonitor/raw/ipp.detrend.dat
===================================================================
--- trunk/ippMonitor/raw/ipp.detrend.dat	(revision 10696)
+++ trunk/ippMonitor/raw/ipp.detrend.dat	(revision 10963)
@@ -25,8 +25,10 @@
 menutop   | menutop      | plain   | &nbsp;                       | 
 menulink  | menuselect 	 | link    | Detrend Frames               | masterDetrendFrames.php
-menulink  | menuselect 	 | link    | Detrend Runs                 | detRunSummary.php             
+menulink  | menuselect 	 | link    | Detrend Runs                 | detRun.php             
+menulink  | menuselect 	 | link    | Detrend Iterations           | detRunSummary.php             
+menulink  | menulink     | plain   | &nbsp;                       | 
 menulink  | menuselect 	 | link    | Raw Detrend Exp              | rawDetrendExp_detrend.php
 menulink  | menuselect 	 | link    | Input Detrend Exp            | detInputExp.php
 menulink  | menuselect 	 | link    | Proc Detrend Exp             | detProcessedExp.php
+menulink  | menuselect 	 | link    | Norm Detrend Exp             | detNormalizedExp.php
 menulink  | menuselect 	 | link    | Resid Detrend Exp            | detResidExp.php
-menulink  | menuselect 	 | link    | Norm Detrend Exp             | detNormalizedExp.php
Index: trunk/ippMonitor/raw/ipp.science.dat
===================================================================
--- trunk/ippMonitor/raw/ipp.science.dat	(revision 10696)
+++ trunk/ippMonitor/raw/ipp.science.dat	(revision 10963)
@@ -27,4 +27,5 @@
 menulink  | menuselect 	 | link    | P2 Processed Exp             | p2ProcessedExp.php            
 menulink  | menuselect 	 | link    | P3 Processed Exp             | p3ProcessedExp.php            
+menutop   | menutop      | plain   | &nbsp;                       | 
 menulink  | menuselect 	 | link    | P1 Pending Exp               | p1PendingExp.php              
 menulink  | menuselect 	 | link    | P2 Pending Exp               | p2PendingExp.php              
