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

    r7504 r7546  
    7575    }
    7676
    77     function PrintForm($_GET, $db)
     77    function PrintForm($_GET, $host, $user, $pw, $db)
    7878    {
    7979        printf("<center>\n");
     
    103103
    104104        if (empty($_GET["fRunMin"]))
    105             $min = GetMin("fSequenceFirst", "Sequences", $db);
     105            $min = GetMin("fSequenceFirst", "Sequences", $host, $user, $pw, $db);
    106106        else
    107107            $min = $_GET["fRunMin"];
    108108
    109109        if (empty($_GET["fRunMax"]))
    110             $max = GetMax("fSequenceFirst", "Sequences", $db);
     110            $max = GetMax("fSequenceFirst", "Sequences", $host, $user, $pw, $db);
    111111        else
    112112            $max = $_GET["fRunMax"];
     
    147147    }
    148148
    149     function PrintPage($html, $db, $alias, $rightalign, $checkwhere)
    150     {
    151         $db_id = mysql_connect("hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");
     149    function PrintPage($html, $host, $user, $pw, $db, $alias, $rightalign, $checkwhere)
     150    {
     151        $db_id = mysql_connect($host, $user, $pw);
    152152        if ($db_id==FALSE)
    153153        {
     
    188188        header("Content-Disposition: attachment; filename=query-result.txt");
    189189
    190         PrintPage("0", $db, $alias, $rightalign, $checkwhere);
     190        PrintPage("0", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere);
    191191    }
    192192    else
     
    197197
    198198        InitGet($_GET);
    199         PrintForm($_GET, $db);
     199        PrintForm($_GET, $host, $user, $pw, $db);
    200200
    201201        if ($environment==0)
    202202            printf("No query submitted yet.<BR>");
    203203        else
    204             PrintPage("1", $db, $alias, $rightalign, $checkwhere);
     204            PrintPage("1", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere);
    205205
    206206        echo (file_get_contents("index-footer.html"));
Note: See TracChangeset for help on using the changeset viewer.