Index: trunk/MagicSoft/Mars/datacenter/db/querystar.php
===================================================================
--- trunk/MagicSoft/Mars/datacenter/db/querystar.php	(revision 7504)
+++ trunk/MagicSoft/Mars/datacenter/db/querystar.php	(revision 7546)
@@ -75,5 +75,5 @@
     }
 
-    function PrintForm($_GET, $db)
+    function PrintForm($_GET, $host, $user, $pw, $db)
     {
         printf("<center>\n");
@@ -103,10 +103,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"];
@@ -147,7 +147,7 @@
     }
 
-    function PrintPage($html, $db, $alias, $rightalign, $checkwhere)
-    {
-        $db_id = mysql_connect("hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");
+    function PrintPage($html, $host, $user, $pw, $db, $alias, $rightalign, $checkwhere)
+    {
+        $db_id = mysql_connect($host, $user, $pw);
         if ($db_id==FALSE)
         {
@@ -188,5 +188,5 @@
         header("Content-Disposition: attachment; filename=query-result.txt");
 
-        PrintPage("0", $db, $alias, $rightalign, $checkwhere);
+        PrintPage("0", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere);
     }
     else
@@ -197,10 +197,10 @@
 
         InitGet($_GET);
-        PrintForm($_GET, $db);
+        PrintForm($_GET, $host, $user, $pw, $db);
 
         if ($environment==0)
             printf("No query submitted yet.<BR>");
         else
-            PrintPage("1", $db, $alias, $rightalign, $checkwhere);
+            PrintPage("1", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere);
 
         echo (file_get_contents("index-footer.html"));
