Index: trunk/ippMonitor/def/README
===================================================================
--- trunk/ippMonitor/def/README	(revision 28615)
+++ trunk/ippMonitor/def/README	(revision 28616)
@@ -173,6 +173,9 @@
 To avoid this problem, the function delete_old_tmp_files() in ipp.php
 was created. It checks the /tmp directory and removes all files
-belonging to the apache user and that are older than 15 minutes.
-delete_old_tmp_files() is called at the beginning of the
-autocodeImage.php template script (line 4) and is therefore present in
-all generated plotting scripts.
+belonging to the $DELETION_USER user and that are older than
+$DELETION_DELAY minutes. delete_old_tmp_files() is called at the
+beginning of the autocodeImage.php template script (line 4) and is
+therefore present in all generated plotting scripts.
+
+$DELETION_USER and $DELETION_DELAY are defined in site.php.in (values
+are 'apache' and '15').
Index: trunk/ippMonitor/raw/ipp.php
===================================================================
--- trunk/ippMonitor/raw/ipp.php	(revision 28615)
+++ trunk/ippMonitor/raw/ipp.php	(revision 28616)
@@ -879,7 +879,7 @@
 //
 function delete_old_tmp_files() {
-  // define after how many minutes the files should be deleted
-  $expire_time = 15;
-  exec("find /tmp -user apache -amin +$expire_time", $output, $status);
+  global $DELETION_USER;    // defined in raw/site.php.in
+  global $DELETION_DELAY;   // defined in raw/site.php.in
+  exec("find /tmp -user $DELETION_USER -amin +$DELETION_DELAY", $output, $status);
   foreach ($output as $key => $value) {
     exec("rm -f $value");
Index: trunk/ippMonitor/raw/site.php.in
===================================================================
--- trunk/ippMonitor/raw/site.php.in	(revision 28615)
+++ trunk/ippMonitor/raw/site.php.in	(revision 28616)
@@ -15,3 +15,9 @@
 
 $DBI     = "@DBI@";
+
+// Temporary files belonging to DELETION_USER and older than 
+// DELETION_DELAY minutes will be delayed by the
+// delete_old_tmp_files() function (see raw/ipp.php)
+$DELETION_USER  = "apache";
+$DELETION_DELAY = 15;
 ?>
