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/datacheck.php

    r7527 r7546  
    271271    }
    272272
    273     function PrintForm($_GET, $db)
     273    function PrintForm($_GET, $host, $user, $pw, $db)
    274274    {
    275275        printf("<center>\n");
     
    321321        printf("</td><td>\n");
    322322
    323         PrintPullDown($db, "RunType",      "fRunTypeName",      "fRunTypeKEY", "Run Type");
     323        PrintPullDown($host, $user, $pw, $db, "RunType",      "fRunTypeName",      "fRunTypeKEY", "Run Type");
    324324
    325325        printf("  </td></tr>\n");
     
    328328
    329329        if (empty($_GET["fRunMin"]))
    330             $min = GetMin("fRunNumber", "RunData", $db);
     330            $min = GetMin("fRunNumber", "RunData", $host, $user, $pw, $db);
    331331        else
    332332            $min = $_GET["fRunMin"];
    333333
    334334        if (empty($_GET["fRunMax"]))
    335             $max = GetMax("fRunNumber", "RunData", $db);
     335            $max = GetMax("fRunNumber", "RunData", $host, $user, $pw, $db);
    336336        else
    337337            $max = $_GET["fRunMax"];
     
    380380    }
    381381
    382     function PrintPage($html, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $checkenumgroup, $needs)
    383     {
    384         $db_id = mysql_connect("hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");
     382    function PrintPage($html, $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $checkenumgroup, $needs)
     383    {
     384        $db_id = mysql_connect($host, $user, $pw);
    385385        if ($db_id==FALSE)
    386386        {
     
    421421        header("Content-Disposition: attachment; filename=query-result.txt");
    422422
    423         PrintPage("0", $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $checkenumgroup, $needs);
     423        PrintPage("0", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $checkenumgroup, $needs);
    424424    }
    425425    else
     
    431431        InitGet($_GET);
    432432        if (empty($_GET["fPrintTable"]))
    433             PrintForm($_GET, $db);
     433            PrintForm($_GET, $host, $user, $pw, $db);
    434434
    435435        if ($environment==0)
     
    438438        {
    439439            if (empty($_GET["fPrintTable"]))
    440                 PrintPage("1", $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $checkenumgroup, $needs);
     440                PrintPage("1", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $checkenumgroup, $needs);
    441441            else
    442                 PrintPage("2", $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $checkenumgroup, $needs);
     442                PrintPage("2", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $checkenumgroup, $needs);
    443443        }
    444444
Note: See TracChangeset for help on using the changeset viewer.