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

    r7527 r7546  
    100100    }
    101101
    102     function PrintForm($_GET, $db)
     102    function PrintForm($_GET, $host, $user, $pw, $db)
    103103    {
    104104        printf("<center>\n");
     
    122122
    123123        if (empty($_GET["fRunMin"]))
    124             $min = GetMin("fDate", "SequenceBuildStatus", $db);
     124            $min = GetMin("fDate", "SequenceBuildStatus", $host, $user, $pw, $db);
    125125        else
    126126            $min = $_GET["fRunMin"];
    127127
    128128        if (empty($_GET["fRunMax"]))
    129             $max = GetMax("fDate", "SequenceBuildStatus", $db);
     129            $max = GetMax("fDate", "SequenceBuildStatus", $host, $user, $pw, $db);
    130130        else
    131131            $max = $_GET["fRunMax"];
     
    166166    }
    167167
    168     function PrintPage($html, $db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs)
    169     {
    170         $db_id = mysql_connect("hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");
     168    function PrintPage($html, $host, $user, $pw, $db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs)
     169    {
     170        $db_id = mysql_connect($host, $user, $pw);
    171171        if ($db_id==FALSE)
    172172        {
     
    207207        header("Content-Disposition: attachment; filename=query-result.txt");
    208208
    209         PrintPage("0", $db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs);
     209        PrintPage("0", $host, $user, $pw, $db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs);
    210210    }
    211211    else
     
    216216
    217217        InitGet($_GET);
    218         PrintForm($_GET, $db);
     218        PrintForm($_GET, $host, $user, $pw, $db);
    219219
    220220        if ($environment==0)
    221221            printf("No query submitted yet.<BR>");
    222222        else
    223             PrintPage("1", $db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs);
     223            PrintPage("1", $host, $user, $pw, $db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs);
    224224
    225225        echo (file_get_contents("index-footer.html"));
Note: See TracChangeset for help on using the changeset viewer.