Changeset 7546 for trunk/MagicSoft/Mars/datacenter/db/querystar.php
- Timestamp:
- 02/28/06 20:23:38 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/querystar.php
r7504 r7546 75 75 } 76 76 77 function PrintForm($_GET, $ db)77 function PrintForm($_GET, $host, $user, $pw, $db) 78 78 { 79 79 printf("<center>\n"); … … 103 103 104 104 if (empty($_GET["fRunMin"])) 105 $min = GetMin("fSequenceFirst", "Sequences", $ db);105 $min = GetMin("fSequenceFirst", "Sequences", $host, $user, $pw, $db); 106 106 else 107 107 $min = $_GET["fRunMin"]; 108 108 109 109 if (empty($_GET["fRunMax"])) 110 $max = GetMax("fSequenceFirst", "Sequences", $ db);110 $max = GetMax("fSequenceFirst", "Sequences", $host, $user, $pw, $db); 111 111 else 112 112 $max = $_GET["fRunMax"]; … … 147 147 } 148 148 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); 152 152 if ($db_id==FALSE) 153 153 { … … 188 188 header("Content-Disposition: attachment; filename=query-result.txt"); 189 189 190 PrintPage("0", $ db, $alias, $rightalign, $checkwhere);190 PrintPage("0", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere); 191 191 } 192 192 else … … 197 197 198 198 InitGet($_GET); 199 PrintForm($_GET, $ db);199 PrintForm($_GET, $host, $user, $pw, $db); 200 200 201 201 if ($environment==0) 202 202 printf("No query submitted yet.<BR>"); 203 203 else 204 PrintPage("1", $ db, $alias, $rightalign, $checkwhere);204 PrintPage("1", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere); 205 205 206 206 echo (file_get_contents("index-footer.html"));
Note:
See TracChangeset
for help on using the changeset viewer.