Changeset 7546 for trunk/MagicSoft/Mars/datacenter/db/sequence.php
- Timestamp:
- 02/28/06 20:23:38 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/sequence.php
r7507 r7546 74 74 } 75 75 76 function PrintForm($_GET, $ db)76 function PrintForm($_GET, $host, $user, $pw, $db) 77 77 { 78 78 printf("<center>\n"); … … 86 86 87 87 if (empty($_GET["fRunMin"])) 88 $min = GetMin("fSequenceFirst", "Sequences", $ db);88 $min = GetMin("fSequenceFirst", "Sequences", $host, $user, $pw, $db); 89 89 else 90 90 $min = $_GET["fRunMin"]; 91 91 92 92 if (empty($_GET["fRunMax"])) 93 $max = GetMax("fSequenceFirst", "Sequences", $ db);93 $max = GetMax("fSequenceFirst", "Sequences", $host, $user, $pw, $db); 94 94 else 95 95 $max = $_GET["fRunMax"]; … … 510 510 } 511 511 512 function PrintPage($html, $ db)513 { 514 $db_id = mysql_connect( "hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");512 function PrintPage($html, $host, $user, $pw, $db) 513 { 514 $db_id = mysql_connect($host, $user, $pw); 515 515 if ($db_id==FALSE) 516 516 { … … 550 550 header("Content-Disposition: attachment; filename=query-result.txt"); 551 551 552 PrintPage("0", $ db);552 PrintPage("0", $host, $user, $pw, $db); 553 553 } 554 554 else … … 560 560 InitGet($_GET); 561 561 if (empty($_GET["fPrintTable"])) 562 PrintForm($_GET, $ db);562 PrintForm($_GET, $host, $user, $pw, $db); 563 563 564 564 if ($environment==0) … … 567 567 { 568 568 if (empty($_GET["fPrintTable"])) 569 PrintPage("1", $ db);569 PrintPage("1", $host, $user, $pw, $db); 570 570 else 571 PrintPage("2", $ db);571 PrintPage("2", $host, $user, $pw, $db); 572 572 } 573 573
Note:
See TracChangeset
for help on using the changeset viewer.