Changeset 7546 for trunk/MagicSoft/Mars/datacenter/db/ganymed.php
- Timestamp:
- 02/28/06 20:23:38 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/ganymed.php
r7520 r7546 42 42 } 43 43 44 function PrintForm($_GET, $ db)44 function PrintForm($_GET, $host, $user, $pw, $db) 45 45 { 46 46 printf("<center>\n"); … … 54 54 if (empty($_GET["fRunMin"])) 55 55 $min = "100"; 56 // $min = GetMin("fDataSetNumber", "DataSets", $ db);56 // $min = GetMin("fDataSetNumber", "DataSets", $host, $user, $pw, $db); 57 57 else 58 58 $min = $_GET["fRunMin"]; 59 59 60 60 if (empty($_GET["fRunMax"])) 61 $max = GetMax("fDataSetNumber", "DataSets", $ db);61 $max = GetMax("fDataSetNumber", "DataSets", $host, $user, $pw, $db); 62 62 else 63 63 $max = $_GET["fRunMax"]; … … 139 139 */ 140 140 141 function PrintDataSetInfo($result0 , $db_id, $db)141 function PrintDataSetInfo($result0) 142 142 { 143 143 $numres = mysql_num_rows($result0); … … 219 219 } 220 220 221 function PrintPage($html, $ db)222 { 223 $db_id = mysql_connect( "hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");221 function PrintPage($html, $host, $user, $pw, $db) 222 { 223 $db_id = mysql_connect($host, $user, $pw); 224 224 if ($db_id==FALSE) 225 225 { … … 236 236 { 237 237 if ($html=="1" || $html=="2") 238 PrintDataSetInfo($result0 , $db_id, $db);238 PrintDataSetInfo($result0); 239 239 else 240 240 PrintText($result0); … … 259 259 header("Content-Disposition: attachment; filename=query-result.txt"); 260 260 261 PrintPage("0", $ db);261 PrintPage("0", $host, $user, $pw, $db); 262 262 } 263 263 else … … 269 269 InitGet($_GET); 270 270 if (empty($_GET["fPrintTable"])) 271 PrintForm($_GET, $ db);271 PrintForm($_GET, $host, $user, $pw, $db); 272 272 273 273 if ($environment==0) … … 276 276 { 277 277 if (empty($_GET["fPrintTable"])) 278 PrintPage("1", $ db);278 PrintPage("1", $host, $user, $pw, $db); 279 279 else 280 PrintPage("2", $ db);280 PrintPage("2", $host, $user, $pw, $db); 281 281 } 282 282
Note:
See TracChangeset
for help on using the changeset viewer.