This code is wrong on the top of the page:
foreach($_POST as $event => $val) {
if(is_array($_POST[$key])) $_POST[$key] = implode(", ", $_POST[$key]);
}
The variable names don't match up. I think it should be:
foreach($_POST as $key=> $val) {
if(is_array($_POST[$key])) $_POST[$key] = implode(", ", $_POST[$key]);
}
Line 53 you have:
$Email->onSend = new Email_Log("insert","email_log","EmailTo",$PowerCMSConnection_i);
I think it should be:
$Email->onSend = new Email_Log("insert","email_log","EmailTo",$Exclusives_i);
Delete your error log after making those changes and run it again. If you have more issues let me know and I can investigate further. Make sure to attach the updated version of the file in your response.