Changeset 7546 for trunk/MagicSoft/Mars/datacenter/db/datasetinfo.php
- Timestamp:
- 02/28/06 20:23:38 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/datasetinfo.php
r7527 r7546 228 228 } 229 229 230 function PrintForm($_GET, $ db)230 function PrintForm($_GET, $host, $user, $pw, $db) 231 231 { 232 232 printf("<center>\n"); … … 269 269 printf(" </td></tr><tr><td>\n"); 270 270 271 PrintPullDown($ db, "Source", "fSourceName", "fSourceKEY", "Source Name");271 PrintPullDown($host, $user, $pw, $db, "Source", "fSourceName", "fSourceKEY", "Source Name"); 272 272 273 273 printf(" </td></tr>\n"); … … 276 276 277 277 if (empty($_GET["fRunMin"])) 278 $min = GetMin("fDataSetNumber", "DataSets", $ db);278 $min = GetMin("fDataSetNumber", "DataSets", $host, $user, $pw, $db); 279 279 else 280 280 $min = $_GET["fRunMin"]; 281 281 282 282 if (empty($_GET["fRunMax"])) 283 $max = GetMax("fDataSetNumber", "DataSets", $ db);283 $max = GetMax("fDataSetNumber", "DataSets", $host, $user, $pw, $db); 284 284 else 285 285 $max = $_GET["fRunMax"]; … … 333 333 } 334 334 335 function PrintPage($html, $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs)336 { 337 $db_id = mysql_connect( "hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");335 function PrintPage($html, $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs) 336 { 337 $db_id = mysql_connect($host, $user, $pw); 338 338 if ($db_id==FALSE) 339 339 { … … 374 374 header("Content-Disposition: attachment; filename=query-result.txt"); 375 375 376 PrintPage("0", $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup);376 PrintPage("0", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup); 377 377 } 378 378 else … … 384 384 InitGet($_GET); 385 385 if (empty($_GET["fPrintTable"])) 386 PrintForm($_GET, $ db);386 PrintForm($_GET, $host, $user, $pw, $db); 387 387 388 388 if ($environment==0) … … 391 391 { 392 392 if (empty($_GET["fPrintTable"])) 393 PrintPage("1", $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs);393 PrintPage("1", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs); 394 394 else 395 PrintPage("2", $ db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs);395 PrintPage("2", $host, $user, $pw, $db, $alias, $rightalign, $checkwhere, $checkgroup, $checkstatusgroup, $needs); 396 396 } 397 397
Note:
See TracChangeset
for help on using the changeset viewer.