r4070 update: 802.1Q template editor now supports single-submit edit and concerns concurrent submits
inc/ophandlers.php:
-addVSTRule: unneeded op removed (no more ops for single rule)
-delVSTRule: idem
+cloneVSTRule: template cloning code moved to 'clone' op, uses common commitUpdateVSTRules
updVSTRule: function redesigned to update whole template, not the single rule. Takes input data as text in json format. Uses common commitUpdateVSTRules.
inc/navigation.php: [editrules]add/del removed, clone added, tab renamed from 'Rules' to 'Edit'
inc/interface.php:
global $port_role_options moved to database.php
renderVSTRules: code to render read-only rules list, separated from renderVST
renderVST: uses new renderVSTRules
renderVSTRulesEditor: redesigned to render new JS-based VST editor.
inc/database.php:
$port_role_options moved from interfaces.php
getVLANSwitchTemplate: selects new fields from VLANSwitchTemplate table
commitUpdateVSTRules: new function, replaces all the rules in the VST. Updates mutex and author in VLANSwitchTemplate.
inc/functions.php:
isInteger: new function to check values to be integer. returns BOOL.
isPCRE: idem for PCRE
upgrade.php: new columns 'mutex_rev' and 'saved_by' in VLANSwitchTemplate table
install/init-structure.sql: idem