Changeset 13692
- Timestamp:
- Jun 6, 2007, 3:57:40 PM (19 years ago)
- Location:
- trunk/ippMonitor
- Files:
-
- 5 edited
-
def/detNormalizedExp.d (modified) (1 diff)
-
def/detProcessedImfile.d (modified) (1 diff)
-
def/detResidExp.d (modified) (2 diffs)
-
def/detResidImfile.d (modified) (1 diff)
-
raw/ipp.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/def/detNormalizedExp.d
r13481 r13692 6 6 # the following WHERE clauses are added to all queries joined by AND 7 7 WHERE detNormalizedExp.det_id = detRun.det_id 8 WHERE detNormalizedExp.iteration = detRun.iteration8 # WHERE detNormalizedExp.iteration = detRun.iteration 9 9 10 10 # define image names to be used below -
trunk/ippMonitor/def/detProcessedImfile.d
r13282 r13692 16 16 17 17 TAIL PHP insert_image ('PPIMAGE.JPEG1'); 18 TAIL PHP insert_log ('LOG.EXP'); -
trunk/ippMonitor/def/detResidExp.d
r13595 r13692 20 20 ARGS ARG2 basename=$detResidExp.path_base 21 21 22 OP OP1 $detResidExp.bg / $detResidExp.b g_stdev22 OP OP1 $detResidExp.bg / $detResidExp.bin_stdev 23 23 24 24 # field size name show link to linkargs … … 31 31 FIELD detResidExp.bg_mean_stdev, 8, [stdev] 32 32 FIELD detResidExp.bg_stdev, 8, stdev, value 33 FIELD detResidExp.bin_stdev, 8, bin stdev, value 33 34 FIELD *, 8, S/N, op=OP1 34 35 FIELD rawExp.dateobs, 8, obs date, value -
trunk/ippMonitor/def/detResidImfile.d
r13595 r13692 17 17 18 18 TAIL PHP insert_image ('PPIMAGE.JPEG1'); 19 TAIL PHP insert_ image ('PPIMAGE.JPEG2');19 TAIL PHP insert_log ('LOG.EXP'); -
trunk/ippMonitor/raw/ipp.php
r13604 r13692 451 451 // expect image supplied with key=name 452 452 // this function should define matching hidden inputs in the form 453 function insert_log ($filerule) { 454 455 if ($_SERVER[REQUEST_METHOD] == 'GET') { 456 $basename = $_GET['basename']; 457 $class_id = $_GET['class']; 458 $camera = $_GET['camera']; 459 } else { 460 $basename = $_POST['basename']; 461 $class_id = $_POST['class']; 462 $camera = $_POST['camera']; 463 } 464 465 if (! $class_id) { $class_id = "NONE"; } 466 467 if ($basename && $camera && $filerule) { 468 469 // do I need to do this to the output result as well? 470 $basename = escapeshellarg($basename); 471 $basename = str_replace ('..','',$basename); 472 473 # XXX !!! 474 $PERLLIB = "/home/kiawe/eugene/psconfig/dev.linux/lib"; 475 $BINDIR = "/home/kiawe/eugene/psconfig/dev.linux/bin"; 476 $SITE = "/home/kiawe/eugene/.ipprc"; 477 putenv("PERL5LIB=$PERLLIB:"); 478 $PATH = getenv("PATH"); 479 putenv("PATH=$BINDIR:$PATH"); 480 481 // echo "<br><b>ipp_filename.pl --site=$SITE --basename $basename --filerule $filerule --camera $camera --class_id $class_id</b><br>\n"; 482 exec ("ipp_filename.pl --site=$SITE --basename $basename --filerule $filerule --camera $camera --class_id $class_id", $output, $status); 483 484 if (0) { 485 echo "basename: $basename<br>"; 486 for ($i = 0; $i < count($output); $i++) { 487 echo "output $i: $output[$i]<br>"; 488 } 489 echo "output: $output[0]<br>"; 490 echo "status: $status<br>"; 491 echo "filename: $filename<br>"; 492 exit (); 493 } 494 495 $filename = $output[0]; 496 if ($status) { 497 echo "log file not found<br>\n"; 498 return; 499 } 500 501 echo "<pre>\n"; 502 $file = fopen ($filename, "r"); 503 if ($file && !$debug) { 504 fpassthru ($file); 505 } 506 echo "</pre>\n"; 507 } 508 } 509 510 // expect image supplied with key=name 511 // this function should define matching hidden inputs in the form 453 512 function insert_backref ($page, $key, $link) { 454 513
Note:
See TracChangeset
for help on using the changeset viewer.
