IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 4, 2007, 3:07:41 PM (19 years ago)
Author:
eugene
Message:

updates to use new API for images

File:
1 edited

Legend:

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

    r12835 r13264  
    11<?php
    22
    3 $dTABLE = 40;
     3$dTABLE = 10;
    44
    55function logintext () {
     
    316316// expect image supplied with key=name
    317317// this function should define matching hidden inputs in the form
    318 function insert_image ($key) {
     318function insert_image ($rule) {
    319319
    320320  if ($_SERVER[REQUEST_METHOD] == 'GET') {
    321     $name = $_GET[$key];
    322   } else {
    323     $name = $_POST[$key];
    324   }
    325 
    326   if ($name) {
    327     echo "<img src=\"getimage.php?name=$name\">\n";
     321    $basename = $_GET['basename'];
     322    $class_id = $_GET['class'];
     323    $camera   = $_GET['camera'];
     324  } else {
     325    $basename = $_POST['basename'];
     326    $class_id = $_POST['class'];
     327    $camera   = $_POST['camera'];
     328  }
     329
     330  if (! $class_id) { $class_id = "NONE"; }
     331
     332  if ($basename && $camera && $rule) {
     333    echo "<img src=\"getimage.php?name=$basename&rule=$rule&camera=$camera&class_id=$class_id\">\n";
    328334  }
    329335}
Note: See TracChangeset for help on using the changeset viewer.