} } } //****** PROCESSING BEGINS HERE if ($_SERVER['REQUEST_METHOD'] == "GET") { print "<br><br><strong>Sorry but HiQ FormMail is not designed to be used in this manner"; print "<br>TERMINATED</strong><br>"; exit; } // Process config file $configname = getPostValue('configfilename'); if ($configname == '') { $configname = "HiQFMConfg"; } include './class.HiQFMConfig.php'; $config = new FormConfiguration($configname); $email = trim(getPostValue('email')); $thebanned = $config->getDirective('banned'); if ($email != '') { if ($thebanned[0] != '') { isBanned($thebanned, $email); } if (!eregi('^[_\\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\\.)+[a-z]{2,6}$', $email)) { $errorlist .= "<BR><b>The email address ({$email}) is not valid.</b><BR>"; } } // Process recipient information //$config->dump (); $temp = getPostValue('SelectRecipient_Special'); // Adding SelectRecipient - scalar $selectedMultiple = getPostValue('SelectRecipient');
function storeDirective($directive, $value) { // - - - - - - - - - - - - - - - - - - - - if (FormConfiguration::DIRECTIVES($directive) == 'single') { $this->configuration[$directive] = $value; } else { if (!isset($this->configuration[$directive])) { $this->configuration[$directive] = array(); } $this->configuration[$directive][] = $value; } }