IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 31, 2016, 6:26:07 AM (10 years ago)
Author:
eugene
Message:

fix MDB2 DBI methods; avoid php warnings by putting quotes around hash arguments; check for hash element existence before using; simplify code with get_htmlkey_value function

File:
1 edited

Legend:

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

    r37983 r39498  
    1717// load an image file from the image directory
    1818// validate request
    19 if ($_SERVER[REQUEST_METHOD] != 'GET') {
     19if ($_SERVER['REQUEST_METHOD'] != 'GET') {
    2020  exit ();
    2121}
     
    3737
    3838// $basename may contain filename@filerule
    39 $basename = $_GET[name];
     39$basename = $_GET['name'];
    4040if ($basename == "noimage.noimage") {
    4141  $file = fopen ("noimage.png", "r");//$MISSING?
     
    4747  exit ();
    4848}
    49 $filerule = $_GET[rule];
    50 $camera   = $_GET[camera];
    51 $class_id = $_GET[class_id];
     49$filerule = $_GET['rule'];
     50$camera   = $_GET['camera'];
     51$class_id = $_GET['class_id'];
    5252
    5353# $filerule = strtok("@");
Note: See TracChangeset for help on using the changeset viewer.