IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 23, 2012, 12:19:36 PM (13 years ago)
Author:
Serge CHASTEL
Message:

Set a default value for the 'camera' assuming it's related to the project name (no camera for staticsky and I don't want to return back to the warpRun table...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/raw/ipp.php

    r30454 r34687  
    799799  // echo "<b>class_id: $class_id</b><br>\n";
    800800  // echo "<b>camera:   $camera</b><br>\n";
     801  // echo "<b>filerule:   $filerule</b><br>\n";
    801802
    802803  if (! $class_id) { $class_id = "NONE"; }
    803804
     805  //SCH: I set a default value for the 'camera' which is based on the
     806  //'proj' parameter.
     807  //It's necessary for staticsky logs and it would require to join tables
     808  //back to the warpRun table
     809  if (! $camera) { $camera = strtoupper($_GET['proj']); }
     810
    804811  if ($basename && $camera && $filerule) {
    805 
    806812    // do I need to do this to the output result as well?
    807813    $basename = escapeshellarg($basename);
     
    841847      return;
    842848    }
     849    echo "<b>log filename: $filename</b><br>\n";
    843850
    844851    echo "<pre>\n";
     
    850857  }
    851858}
     859
    852860
    853861// expect image supplied with key=name
Note: See TracChangeset for help on using the changeset viewer.