private function addNodeToGlob(&$getArr) { $getName = &$getArr["xmlValue"]; $getValue = &$_GET[$getName]; if (isset($getValue) == false) { return; } /*- * Valid / Filter / Guard -> check -> add */ try { /*- * check Valid */ if (array_key_exists("valid", $getArr["xmlAttribute"]) == true) { $setValid = &$getArr["xmlAttribute"]["valid"]; CSecure::validData($getValue, $setValid); } /*- * filter value */ if (array_key_exists("filter", $getArr["xmlAttribute"]) == true) { $filter = &$getArr["xmlAttribute"]["filter"]; CSecure::filterData($getValue, $filter); } /*- * Guard */ if (strtolower($getArr["xmlAttribute"]["guard"]) != "off") { CSecure::guard($getValue); } /*- * If you use a key for protect the value */ $key = $this->getKey($getArr["xmlAttribute"]); /** * add to Glob */ $this->m_cGlob->setGet($getName, $getValue, $key); } catch (CError $error) { if ($this->confXml["usestrict"]["xmlValue"] == true) { throw new CError(ERROR_GET_VALID, array($getName, $error->getMessage())); } } }