IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40093


Ignore:
Timestamp:
Jul 11, 2017, 3:43:11 PM (9 years ago)
Author:
eugene
Message:

new check_restrict mode "value" for int values to be tested as an = not a like

Location:
trunk/ippMonitor
Files:
2 edited

Legend:

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

    r39498 r40093  
    510510    $where = $where . " $key like '$value'";
    511511  }
     512  if ($mode == 'value') {
     513    // can we pass the '%' through the html?
     514    $where = $where . " $key = '$value'";
     515  }
    512516  if ($mode == 'min') {
    513517    // can we pass the '%' through the html?
  • trunk/ippMonitor/scripts/generate

    r34014 r40093  
    342342            next;
    343343        }
    344         print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'string', 1.0);\n";
     344        print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'value', 1.0);\n";
    345345        print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'min', 1.0);\n";
    346346        print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'max', 1.0);\n";
Note: See TracChangeset for help on using the changeset viewer.