Changeset 16283 for trunk/pstamp/web/request.php
- Timestamp:
- Feb 1, 2008, 5:42:05 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/web/request.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/web/request.php
r16279 r16283 14 14 <pre> 15 15 <?php 16 17 $COMMAND_DIR = "/export/data0/bills/src/ipp/pstamp/scripts"; 18 $STAMPS_DIR = "stamps"; 16 19 17 20 // Initialize variables … … 416 419 global $rvar_id, $rvar_class_id; 417 420 global $command_line; 421 global $STAMPS_DIR; 418 422 419 423 $cmd = "pstampwebrequest.sh"; … … 430 434 throw new Exception('Stamp Name must be specified.'); 431 435 } 432 $cmd .= " -user_tag $ rvar_user_tag";436 $cmd .= " -user_tag $STAMPS_DIR/$rvar_user_tag"; 433 437 434 438 // Set up the ROI parameters … … 493 497 global $error_line; 494 498 global $command_status; 495 496 $HOME = "/export/data1/bills/pstamp"; 497 $cmd_dir = "$HOME/bin"; 498 $work_dir = "$HOME/work"; 499 500 501 exec ("$cmd_dir/$command_line", $output_array, $command_status); 499 global $COMMAND_DIR; 500 501 502 exec ("$COMMAND_DIR/$command_line", $output_array, $command_status); 502 503 503 504 $size = sizeof($output_array); … … 520 521 function printURL($path) 521 522 { 522 $fileName = basename($path);523 523 echo "<tr><td>"; 524 echo "<a href=\"http:$path\" target=\"_blank\" type=\"image/fits\">"; 525 echo $fileName; 526 echo "</a>"; 524 $doURL = 1; 525 if ($doURL) { 526 $fileName = basename($path); 527 echo "<a href=\"http:$path\" target=\"_blank\" type=\"image/fits\">"; 528 echo $fileName; 529 echo "</a>"; 530 } else { 531 print "$path"; 532 } 527 533 echo "</td></tr>"; 528 534 }
Note:
See TracChangeset
for help on using the changeset viewer.
