Index: trunk/www/dch/download.php
===================================================================
--- trunk/www/dch/download.php	(revision 19935)
+++ trunk/www/dch/download.php	(revision 19936)
@@ -20,5 +20,5 @@
 }
 $maintenance=0;
-$maintenance=1;
+#$maintenance=1;
 
 if ($maintenance)
@@ -196,4 +196,9 @@
     $zd="novalue";
 
+if (!empty($_POST["crabflux"]))
+    $crabflux=$_POST["crabflux"];
+else
+    $crabflux="-";
+
 //variable for non-combinable date/source
 $warn="";
@@ -288,6 +293,6 @@
     print_popup("Email with data sent to ".$email);
     if ($maintenance)
-        echo $start." ".$stop." ".$source." ".$timebin." ".$email." ".$table." ".$time." ".$expert." ".$dch." ".$zd." ".$th." ".$light." ".$dust." ".$rmemptyrow." ".$factorcut."<br>\n";
-    $sent=shell_exec("/users/fact/SW.automatic.processing/DataCheck/Tools/get_data.sh ".$start." ".$stop." ".$source." ".$timebin." ".$email." ".$table." ".$time." ".$expert." ".$dch." ".$zd." ".$th." ".$light." ".$dust." ".$rmemptyrow." ".$factorcut);
+        echo $start." ".$stop." ".$source." ".$timebin." ".$email." ".$table." ".$time." ".$expert." ".$dch." ".$zd." ".$th." ".$light." ".$dust." ".$rmemptyrow." ".$factorcut." ".$crabflux."<br>\n";
+    $sent=shell_exec("/users/fact/SW.automatic.processing/DataCheck/Tools/get_data.sh ".$start." ".$stop." ".$source." ".$timebin." ".$email." ".$table." ".$time." ".$expert." ".$dch." ".$zd." ".$th." ".$light." ".$dust." ".$rmemptyrow." ".$factorcut." ".$crabflux);
     echo $sent;
     if (!empty($_POST["newsletter"]))
@@ -486,4 +491,5 @@
     }
     echo "</select>\n <br>\n";
+    printf("Custom conversion factor to flux: <input name='crabflux' type='text' size='4' maxlength='4' value='%s'>[10^-11 erg/s/cm2] <br>\n", $crabflux);
 }
 
@@ -527,5 +533,5 @@
     echo "</ul></li>\n";
     echo "<li>Not for all data dust measurements are available.</li>\n";
-    //echo "<li></li>\n";
+    echo "<li>Be aware that if you use a custom conversion factor to flux that you have to make sure that it is consistent with the analysis you choose.</li>\n";
     echo "</ul>";
 }
