Changeset 7546 for trunk/MagicSoft/Mars/datacenter/db/datacheck.php
- Timestamp:
- 02/28/06 20:23:38 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/datacheck.php
r7527 r7546 271 271 } 272 272 273 function PrintForm($_GET, $ db)273 function PrintForm($_GET, $host, $user, $pw, $db) 274 274 { 275 275 printf("<center>\n"); … … 321 321 printf("</td><td>\n"); 322 322 323 PrintPullDown($ db, "RunType", "fRunTypeName", "fRunTypeKEY", "Run Type");323 PrintPullDown($host, $user, $pw, $db, "RunType", "fRunTypeName", "fRunTypeKEY", "Run Type"); 324 324 325 325 printf(" </td></tr>\n"); … … 328 328 329 329 if (empty($_GET["fRunMin"])) 330 $min = GetMin("fRunNumber", "RunData", $ db);330 $min = GetMin("fRunNumber", "RunData", $host, $user, $pw, $db); 331 331 else 332 332 $min = $_GET["fRunMin"]; 333 333 334 334 if (empty($_GET["fRunMax"])) 335 $max = GetMax("fRunNumber", "RunData", $ db);335 $max = GetMax("fRunNumber", "RunData", $host, $user, $pw, $db); 336 336 else 337 337 $max = $_GET["fRunMax"]; … … 380 380 } 381 381 382 function PrintPage($html, $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $checkenumgroup, $needs)383 { 384 $db_id = mysql_connect( "hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");382 function PrintPage($html, $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $checkenumgroup, $needs) 383 { 384 $db_id = mysql_connect($host, $user, $pw); 385 385 if ($db_id==FALSE) 386 386 { … … 421 421 header("Content-Disposition: attachment; filename=query-result.txt"); 422 422 423 PrintPage("0", $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $checkenumgroup, $needs);423 PrintPage("0", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $checkenumgroup, $needs); 424 424 } 425 425 else … … 431 431 InitGet($_GET); 432 432 if (empty($_GET["fPrintTable"])) 433 PrintForm($_GET, $ db);433 PrintForm($_GET, $host, $user, $pw, $db); 434 434 435 435 if ($environment==0) … … 438 438 { 439 439 if (empty($_GET["fPrintTable"])) 440 PrintPage("1", $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $checkenumgroup, $needs);440 PrintPage("1", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $checkenumgroup, $needs); 441 441 else 442 PrintPage("2", $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $checkenumgroup, $needs);442 PrintPage("2", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $checkenumgroup, $needs); 443 443 } 444 444
Note:
See TracChangeset
for help on using the changeset viewer.