Index: trunk/MagicSoft/Mars/datacenter/db/ganymed.php
===================================================================
--- trunk/MagicSoft/Mars/datacenter/db/ganymed.php	(revision 7520)
+++ trunk/MagicSoft/Mars/datacenter/db/ganymed.php	(revision 7546)
@@ -42,5 +42,5 @@
     }
 
-    function PrintForm($_GET, $db)
+    function PrintForm($_GET, $host, $user, $pw, $db)
     {
         printf("<center>\n");
@@ -54,10 +54,10 @@
         if (empty($_GET["fRunMin"]))
             $min = "100";
-//            $min = GetMin("fDataSetNumber", "DataSets", $db);
+//            $min = GetMin("fDataSetNumber", "DataSets", $host, $user, $pw, $db);
         else
             $min = $_GET["fRunMin"];
 
         if (empty($_GET["fRunMax"]))
-            $max = GetMax("fDataSetNumber", "DataSets", $db);
+            $max = GetMax("fDataSetNumber", "DataSets", $host, $user, $pw, $db);
         else
             $max = $_GET["fRunMax"];
@@ -139,5 +139,5 @@
 */
 
-    function PrintDataSetInfo($result0, $db_id, $db)
+    function PrintDataSetInfo($result0)
     {
         $numres = mysql_num_rows($result0);
@@ -219,7 +219,7 @@
     }
 
-    function PrintPage($html, $db)
-    {
-        $db_id = mysql_connect("hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");
+    function PrintPage($html, $host, $user, $pw, $db)
+    {
+        $db_id = mysql_connect($host, $user, $pw);
         if ($db_id==FALSE)
         {
@@ -236,5 +236,5 @@
         {
             if ($html=="1" || $html=="2")
-                PrintDataSetInfo($result0, $db_id, $db);
+                PrintDataSetInfo($result0);
             else
                 PrintText($result0);
@@ -259,5 +259,5 @@
         header("Content-Disposition: attachment; filename=query-result.txt");
 
-        PrintPage("0", $db);
+        PrintPage("0", $host, $user, $pw, $db);
     }
     else
@@ -269,5 +269,5 @@
         InitGet($_GET);
         if (empty($_GET["fPrintTable"]))
-            PrintForm($_GET, $db);
+            PrintForm($_GET, $host, $user, $pw, $db);
 
         if ($environment==0)
@@ -276,7 +276,7 @@
         {
             if (empty($_GET["fPrintTable"]))
-                PrintPage("1", $db);
+                PrintPage("1", $host, $user, $pw, $db);
             else
-                PrintPage("2", $db);
+                PrintPage("2", $host, $user, $pw, $db);
         }
 
