Changeset 7546 for trunk/MagicSoft/Mars/datacenter/db/sources.php
- Timestamp:
- 02/28/06 20:23:38 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/sources.php
r7484 r7546 87 87 } 88 88 89 function PrintPage($html, $ db, $alias, $rightalign)89 function PrintPage($html, $host, $user, $pw, $db, $alias, $rightalign) 90 90 { 91 $db_id = mysql_connect( "hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");91 $db_id = mysql_connect($host, $user, $pw); 92 92 if ($db_id==FALSE) 93 93 { … … 128 128 header("Content-Disposition: attachment; filename=query-result.txt"); 129 129 130 PrintPage("0", $ db, $alias, $rightalign);130 PrintPage("0", $host, $user, $pw, $db, $alias, $rightalign); 131 131 } 132 132 else … … 142 142 printf("No query submitted yet.<BR>"); 143 143 else 144 PrintPage("1", $ db, $alias, $rightalign);144 PrintPage("1", $host, $user, $pw, $db, $alias, $rightalign); 145 145 146 146 echo (file_get_contents("index-footer.html"));
Note:
See TracChangeset
for help on using the changeset viewer.