case 'superfecta_multi.php': require_once dirname(__FILE__) . '/processors/superfecta_multi.php'; $options['multifecta_id'] = isset($multifecta_id) ? $multifecta_id : null; $options['source'] = isset($source) ? $source : null; $superfecta = new superfecta_multi($options); break; case 'superfecta_single.php': default: require_once dirname(__FILE__) . '/processors/superfecta_single.php'; $superfecta = new superfecta_single($options); break; } $superfecta->setCLI($cli); $superfecta->setDID($trunk_info['did']); //We only want to run all of this if it's a parent-multifecta or the original code (single-fecta), No need to run this for every child if ($superfecta->isDebug() && $superfecta->is_master()) { // If debugging, report all errors if ($superfecta->isDebug(3)) { error_reporting(E_ALL | E_NOTICE); //strict is way too much information! :-( } else { error_reporting(E_ALL); // -1 was not letting me see the wood for the trees. } ini_set('display_errors', '1'); $superfecta->outn("<strong>Debug is on and set at level " . $superfecta->getDebug() . "</strong>"); $superfecta->outn("<strong>The Original Number: </strong>" . $trunk_info['callerid']); $superfecta->outn("<strong>The Scheme: </strong>" . $superfecta->scheme_name); $superfecta->outn("<strong>Scheme Type: </strong>" . $superfecta->type . "FECTA"); $superfecta->outn("<strong>SPAM Destination: </strong>" . $scheme_param['spam_destination']); $superfecta->out("<strong>is CLI: </strong>");