Changeset 7546 for trunk/MagicSoft/Mars/datacenter/db/statussbs.php
- Timestamp:
- 02/28/06 20:23:38 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/statussbs.php
r7527 r7546 100 100 } 101 101 102 function PrintForm($_GET, $ db)102 function PrintForm($_GET, $host, $user, $pw, $db) 103 103 { 104 104 printf("<center>\n"); … … 122 122 123 123 if (empty($_GET["fRunMin"])) 124 $min = GetMin("fDate", "SequenceBuildStatus", $ db);124 $min = GetMin("fDate", "SequenceBuildStatus", $host, $user, $pw, $db); 125 125 else 126 126 $min = $_GET["fRunMin"]; 127 127 128 128 if (empty($_GET["fRunMax"])) 129 $max = GetMax("fDate", "SequenceBuildStatus", $ db);129 $max = GetMax("fDate", "SequenceBuildStatus", $host, $user, $pw, $db); 130 130 else 131 131 $max = $_GET["fRunMax"]; … … 166 166 } 167 167 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); 171 171 if ($db_id==FALSE) 172 172 { … … 207 207 header("Content-Disposition: attachment; filename=query-result.txt"); 208 208 209 PrintPage("0", $ db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs);209 PrintPage("0", $host, $user, $pw, $db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs); 210 210 } 211 211 else … … 216 216 217 217 InitGet($_GET); 218 PrintForm($_GET, $ db);218 PrintForm($_GET, $host, $user, $pw, $db); 219 219 220 220 if ($environment==0) 221 221 printf("No query submitted yet.<BR>"); 222 222 else 223 PrintPage("1", $ db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs);223 PrintPage("1", $host, $user, $pw, $db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs); 224 224 225 225 echo (file_get_contents("index-footer.html"));
Note:
See TracChangeset
for help on using the changeset viewer.