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

    r7484 r7546  
    134134    }
    135135
    136     function PrintForm($_GET, $db)
     136    function PrintForm($_GET, $host, $user, $pw, $db)
    137137    {
    138138        printf("<center>\n");
     
    155155        printf(" <table>\n");
    156156        printf("  <tr><td>\n");
    157         PrintPullDown($db, "Source",      "fSourceName",      "fSourceKEY", "Source Name");
     157        PrintPullDown($host, $user, $pw, $db, "Source",      "fSourceName",      "fSourceKEY", "Source Name");
    158158        printf("  </td></tr>\n");
    159159        printf(" </table>\n");
     
    161161
    162162        if (empty($_GET["fRunMin"]))
    163             $min = GetMin("fSequenceFirst", "Sequences", $db);
     163            $min = GetMin("fSequenceFirst", "Sequences", $host, $user, $pw, $db);
    164164        else
    165165            $min = $_GET["fRunMin"];
    166166
    167167        if (empty($_GET["fRunMax"]))
    168             $max = GetMax("fSequenceFirst", "Sequences", $db);
     168            $max = GetMax("fSequenceFirst", "Sequences", $host, $user, $pw, $db);
    169169        else
    170170            $max = $_GET["fRunMax"];
     
    210210    }
    211211
    212     function PrintPage($html, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup)
    213     {
    214         $db_id = mysql_connect("hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");
     212    function PrintPage($html, $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup)
     213    {
     214        $db_id = mysql_connect($host, $user, $pw);
    215215        if ($db_id==FALSE)
    216216        {
     
    251251        header("Content-Disposition: attachment; filename=query-result.txt");
    252252
    253         PrintPage("0", $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup);
     253        PrintPage("0", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup);
    254254    }
    255255    else
     
    260260
    261261        InitGet($_GET);
    262         PrintForm($_GET, $db);
     262        PrintForm($_GET, $host, $user, $pw, $db);
    263263
    264264        if ($environment==0)
    265265            printf("No query submitted yet.<BR>");
    266266        else
    267             PrintPage("1", $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup);
     267            PrintPage("1", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup);
    268268
    269269        echo (file_get_contents("index-footer.html"));
Note: See TracChangeset for help on using the changeset viewer.