Ignore:
Timestamp:
02/28/06 20:23:38 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/db/datasetinfo.php

    r7527 r7546  
    228228    }
    229229
    230     function PrintForm($_GET, $db)
     230    function PrintForm($_GET, $host, $user, $pw, $db)
    231231    {
    232232        printf("<center>\n");
     
    269269        printf("  </td></tr><tr><td>\n");
    270270
    271         PrintPullDown($db, "Source",      "fSourceName",      "fSourceKEY", "Source Name");
     271        PrintPullDown($host, $user, $pw, $db, "Source",      "fSourceName",      "fSourceKEY", "Source Name");
    272272
    273273        printf("  </td></tr>\n");
     
    276276
    277277        if (empty($_GET["fRunMin"]))
    278             $min = GetMin("fDataSetNumber", "DataSets", $db);
     278            $min = GetMin("fDataSetNumber", "DataSets", $host, $user, $pw, $db);
    279279        else
    280280            $min = $_GET["fRunMin"];
    281281
    282282        if (empty($_GET["fRunMax"]))
    283             $max = GetMax("fDataSetNumber", "DataSets", $db);
     283            $max = GetMax("fDataSetNumber", "DataSets", $host, $user, $pw, $db);
    284284        else
    285285            $max = $_GET["fRunMax"];
     
    333333    }
    334334
    335     function PrintPage($html, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs)
    336     {
    337         $db_id = mysql_connect("hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");
     335    function PrintPage($html, $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs)
     336    {
     337        $db_id = mysql_connect($host, $user, $pw);
    338338        if ($db_id==FALSE)
    339339        {
     
    374374        header("Content-Disposition: attachment; filename=query-result.txt");
    375375
    376         PrintPage("0", $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup);
     376        PrintPage("0", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup);
    377377    }
    378378    else
     
    384384        InitGet($_GET);
    385385        if (empty($_GET["fPrintTable"]))
    386             PrintForm($_GET, $db);
     386            PrintForm($_GET, $host, $user, $pw, $db);
    387387
    388388        if ($environment==0)
     
    391391        {
    392392            if (empty($_GET["fPrintTable"]))
    393                 PrintPage("1", $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs);
     393                PrintPage("1", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs);
    394394            else
    395                 PrintPage("2", $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs);
     395                PrintPage("2", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs);
    396396        }
    397397
Note: See TracChangeset for help on using the changeset viewer.