Ad Widget

Collapse

[1.1] PHP Frontend regexp with (item) creation/modif forms

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LEM
    Senior Member
    Zabbix Certified Specialist
    • Sep 2004
    • 112

    #1

    [1.1] PHP Frontend regexp with (item) creation/modif forms

    Hi,

    as we recently see, there's a couple of patches for the eregi dealing with the expression in (item) creation/modification form (see here and there).

    Anyway, this eregi is used for any expression, where the latest modifications (patches) are only usefull for specific cases (str and regexp function).

    Should we split the expression part of the form by 'pieces' to get contextual eregi dealing with specific pars (for exemple, if you select the str() or regexp() functions, the ergei for the parameter part will be different than if we use last() function.

    Additionnaly, splitting the expression part of the form in piece could helps user to play with expression (value for 'host' by default the current host, listbox for functions...).

    My two cents...
    --
    LEM
Working...