jbe/bsw@0: --[[-- jbe/bsw@0: params = -- table with all non-list parameters jbe/bsw@0: param.get_all_cgi() jbe/bsw@0: jbe/bsw@0: This function returns a table with all non-list GET/POST parameters (except internal parameters like "_webmcp_id"). jbe/bsw@0: jbe/bsw@0: --]]-- jbe/bsw@0: jbe/bsw@0: function param.get_all_cgi() jbe/bsw@0: local result = {} jbe/bsw@0: for key, value in pairs(cgi.params) do -- TODO: exchanged params too? jbe/bsw@0: if jbe/bsw@0: (not string.match(key, "^_webmcp_")) and jbe/bsw@0: (not string.match(key, "%[%]$")) jbe/bsw@0: then jbe/bsw@0: result[key] = value jbe/bsw@0: end jbe/bsw@0: end jbe/bsw@0: return result jbe/bsw@0: end