Ad Widget

Collapse

Trying to understand function check_fields($fields)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #1

    Trying to understand function check_fields($fields)

    I've been working on a few hacks over the last few days and I can't exactly figure out how the function function_checks as defined in include/validate.inc.php works.

    As I understand it you pass it an array ($fields) of elements which correspond to elements in the $_REQUEST array. My question is what is the structure of the $fields array? What do the various flags mean?
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

Working...