Changeset 7546 for trunk/MagicSoft/Mars/datacenter/db/statusrps.php
- Timestamp:
- 02/28/06 20:23:38 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/statusrps.php
r7527 r7546 121 121 } 122 122 123 function PrintForm($_GET, $ db)123 function PrintForm($_GET, $host, $user, $pw, $db) 124 124 { 125 125 printf("<center>\n"); … … 146 146 147 147 if (empty($_GET["fRunMin"])) 148 $min = GetMin("fRunNumber", "RunProcessStatus", $ db);148 $min = GetMin("fRunNumber", "RunProcessStatus", $host, $user, $pw, $db); 149 149 else 150 150 $min = $_GET["fRunMin"]; 151 151 152 152 if (empty($_GET["fRunMax"])) 153 $max = GetMax("fRunNumber", "RunProcessStatus", $ db);153 $max = GetMax("fRunNumber", "RunProcessStatus", $host, $user, $pw, $db); 154 154 else 155 155 $max = $_GET["fRunMax"]; … … 190 190 } 191 191 192 function PrintPage($html, $ db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs)193 { 194 $db_id = mysql_connect( "hercules.astro.uni-wuerzburg.de", "MAGIC", "d99swMT!");192 function PrintPage($html, $host, $user, $pw, $db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs) 193 { 194 $db_id = mysql_connect($host, $user, $pw); 195 195 if ($db_id==FALSE) 196 196 { … … 231 231 header("Content-Disposition: attachment; filename=query-result.txt"); 232 232 233 PrintPage("0", $ db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs);233 PrintPage("0", $host, $user, $pw, $db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs); 234 234 } 235 235 else … … 240 240 241 241 InitGet($_GET); 242 PrintForm($_GET, $ db);242 PrintForm($_GET, $host, $user, $pw, $db); 243 243 244 244 if ($environment==0) 245 245 printf("No query submitted yet.<BR>"); 246 246 else 247 PrintPage("1", $ db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs);247 PrintPage("1", $host, $user, $pw, $db, $alias, $rightalign, $checkstatusgroup, $checkwhere, $needs); 248 248 249 249 echo (file_get_contents("index-footer.html"));
Note:
See TracChangeset
for help on using the changeset viewer.