Changeset 7546 for trunk/MagicSoft/Mars/datacenter/db/statussps.php
- Timestamp:
- 02/28/06 20:23:38 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/statussps.php
r7527 r7546 110 110 } 111 111 112 function PrintForm($_GET, $ db)112 function PrintForm($_GET, $host, $user, $pw, $db) 113 113 { 114 114 printf("<center>\n"); … … 135 135 136 136 if (empty($_GET["fRunMin"])) 137 $min = GetMin("fSequenceFirst", "SequenceProcessStatus", $ db);137 $min = GetMin("fSequenceFirst", "SequenceProcessStatus", $host, $user, $pw, $db); 138 138 else 139 139 $min = $_GET["fRunMin"]; 140 140 141 141 if (empty($_GET["fRunMax"])) 142 $max = GetMax("fSequenceFirst", "SequenceProcessStatus", $ db);142 $max = GetMax("fSequenceFirst", "SequenceProcessStatus", $host, $user, $pw, $db); 143 143 else 144 144 $max = $_GET["fRunMax"]; … … 179 179 } 180 180 181 function PrintPage($html, $ db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs)182 { 183 $db_id = mysql_connect( "hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");181 function PrintPage($html, $host, $user, $pw, $db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs) 182 { 183 $db_id = mysql_connect($host, $user, $pw); 184 184 if ($db_id==FALSE) 185 185 { … … 220 220 header("Content-Disposition: attachment; filename=query-result.txt"); 221 221 222 PrintPage("0", $ db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs);222 PrintPage("0", $host, $user, $pw, $db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs); 223 223 } 224 224 else … … 229 229 230 230 InitGet($_GET); 231 PrintForm($_GET, $ db);231 PrintForm($_GET, $host, $user, $pw, $db); 232 232 233 233 if ($environment==0) 234 234 printf("No query submitted yet.<BR>"); 235 235 else 236 PrintPage("1", $ db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs);236 PrintPage("1", $host, $user, $pw, $db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs); 237 237 238 238 echo (file_get_contents("index-footer.html"));
Note:
See TracChangeset
for help on using the changeset viewer.