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

    r7527 r7546  
    121121    }
    122122
    123     function PrintForm($_GET, $db)
     123    function PrintForm($_GET, $host, $user, $pw, $db)
    124124    {
    125125        printf("<center>\n");
     
    146146
    147147        if (empty($_GET["fRunMin"]))
    148             $min = GetMin("fRunNumber", "RunProcessStatus", $db);
     148            $min = GetMin("fRunNumber", "RunProcessStatus", $host, $user, $pw, $db);
    149149        else
    150150            $min = $_GET["fRunMin"];
    151151
    152152        if (empty($_GET["fRunMax"]))
    153             $max = GetMax("fRunNumber", "RunProcessStatus", $db);
     153            $max = GetMax("fRunNumber", "RunProcessStatus", $host, $user, $pw, $db);
    154154        else
    155155            $max = $_GET["fRunMax"];
     
    190190    }
    191191
    192     function PrintPage($html, $db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs)
    193     {
    194         $db_id = mysql_connect("hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");
     192    function PrintPage($html, $host, $user, $pw, $db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs)
     193    {
     194        $db_id = mysql_connect($host, $user, $pw);
    195195        if ($db_id==FALSE)
    196196        {
     
    231231        header("Content-Disposition: attachment; filename=query-result.txt");
    232232
    233         PrintPage("0", $db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs);
     233        PrintPage("0", $host, $user, $pw, $db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs);
    234234    }
    235235    else
     
    240240
    241241        InitGet($_GET);
    242         PrintForm($_GET, $db);
     242        PrintForm($_GET, $host, $user, $pw, $db);
    243243
    244244        if ($environment==0)
    245245            printf("No query submitted yet.<BR>");
    246246        else
    247             PrintPage("1", $db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs);
     247            PrintPage("1", $host, $user, $pw, $db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs);
    248248
    249249        echo (file_get_contents("index-footer.html"));
Note: See TracChangeset for help on using the changeset viewer.