Index: trunk/MagicSoft/Mars/datacenter/db/findoffdata.php
===================================================================
--- trunk/MagicSoft/Mars/datacenter/db/findoffdata.php	(revision 7527)
+++ trunk/MagicSoft/Mars/datacenter/db/findoffdata.php	(revision 7546)
@@ -392,5 +392,5 @@
     }
 
-    function PrintForm($_GET, $db, $limits, $rms, $alias)
+    function PrintForm($_GET, $host, $user, $pw, $db, $limits, $rms, $alias)
     {
         printf("<center>\n");
@@ -478,11 +478,11 @@
         printf(" <table><tr><td>\n");
 
-        PrintPullDown($db, "Source",                      "fSourceName",                      "fSourceKEY",                      "Source Name");
+        PrintPullDown($host, $user, $pw, $db, "Source",                      "fSourceName",                      "fSourceKEY",                      "Source Name");
         printf("  </td><td>\n");
-        PrintPullDown($db, "LightConditions",             "fLightConditionsName",             "fLightConditionsKEY",             "Light Conditions");
+        PrintPullDown($host, $user, $pw, $db, "LightConditions",             "fLightConditionsName",             "fLightConditionsKEY",             "Light Conditions");
         printf("  </td><td>\n");
-        PrintPullDown($db, "DiscriminatorThresholdTable", "fDiscriminatorThresholdTableName", "fDiscriminatorThresholdTableKEY", "DT Table");
+        PrintPullDown($host, $user, $pw, $db, "DiscriminatorThresholdTable", "fDiscriminatorThresholdTableName", "fDiscriminatorThresholdTableKEY", "DT Table");
         printf("  </td></tr><tr><td>\n");
-        PrintPullDown($db, "ManuallyChanged",             "fManuallyChangedName",             "fManuallyChangedKEY",             "Manually changed");
+        PrintPullDown($host, $user, $pw, $db, "ManuallyChanged",             "fManuallyChangedName",             "fManuallyChangedKEY",             "Manually changed");
         printf("  </td><td>\n");
         PrintStatusMenu("fStar",                "Star");
@@ -507,10 +507,10 @@
 
         if (empty($_GET["fStarStart"]))
-            $starmin = GetMin("fStar", "SequenceProcessStatus", $db);
+            $starmin = GetMin("fStar", "SequenceProcessStatus", $host, $user, $pw, $db);
         else
             $starmin = $_GET["fStarStart"];
 
         if (empty($_GET["fStarStop"]))
-            $starmax = GetMax("fStar", "SequenceProcessStatus", $db);
+            $starmax = GetMax("fStar", "SequenceProcessStatus", $host, $user, $pw, $db);
         else
             $starmax = $_GET["fStarStop"];
@@ -528,10 +528,10 @@
 
         if (empty($_GET["fStartDate"]))
-            $timemin = GetMin("fRunStart", "Sequences", $db);
+            $timemin = GetMin("fRunStart", "Sequences", $host, $user, $pw, $db);
         else
             $timemin = $_GET["fStartDate"];
 
         if (empty($_GET["fStopDate"]))
-            $timemax = GetMax("fRunStart", "Sequences", $db);
+            $timemax = GetMax("fRunStart", "Sequences", $host, $user, $pw, $db);
         else
             $timemax = $_GET["fStopDate"];
@@ -541,10 +541,10 @@
 
         if (empty($_GET["fRunMin"]))
-            $min = GetMin("fSequenceFirst", "Sequences", $db);
+            $min = GetMin("fSequenceFirst", "Sequences", $host, $user, $pw, $db);
         else
             $min = $_GET["fRunMin"];
 
         if (empty($_GET["fRunMax"]))
-            $max = GetMax("fSequenceFirst", "Sequences", $db);
+            $max = GetMax("fSequenceFirst", "Sequences", $host, $user, $pw, $db);
         else
             $max = $_GET["fRunMax"];
@@ -604,7 +604,7 @@
     }
 
-    function PrintPage($html, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $limits, $rms, $needs)
+    function PrintPage($html, $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $limits, $rms, $needs)
     {
-        $db_id = mysql_connect("hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");
+        $db_id = mysql_connect($host, $user, $pw);
         if ($db_id==FALSE)
         {
@@ -645,5 +645,5 @@
         header("Content-Disposition: attachment; filename=query-result.txt");
 
-        PrintPage("0", $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $limits, $rms, $needs);
+        PrintPage("0", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $limits, $rms, $needs);
     }
     else
@@ -655,5 +655,5 @@
         InitGet($_GET);
         if (empty($_GET["fPrintTable"]))
-            PrintForm($_GET, $db, $limits, $rms, $alias);
+            PrintForm($_GET, $host, $user, $pw, $db, $limits, $rms, $alias);
 
         if ($environment==0)
@@ -662,7 +662,7 @@
         {
             if (empty($_GET["fPrintTable"]))
-                PrintPage("1", $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $limits, $rms, $needs);
-            else
-                PrintPage("2", $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $limits, $rms, $needs);
+                PrintPage("1", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $limits, $rms, $needs);
+            else
+                PrintPage("2", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $limits, $rms, $needs);
         }
 
