simulation(); $mailoutPlugins = e107::getConfig()->get('e_mailout_list'); if(empty($_GET['id'])) { $this->invalidURL(); return; } $tmp = base64_decode($_GET['id']); parse_str($tmp,$data); $data['plugin'] = $tp->filter($data['plugin'],'str'); $data['email'] = $tp->filter($data['email'],'email'); e107::getMessage()->addDebug(print_a($data,true)); $plugin = vartrue($data['plugin'],false); if(empty($data) || !e107::isInstalled($plugin) || !in_array($plugin, $mailoutPlugins)) { $this->invalidURL(); return; } $ml = e107::getAddon($plugin, 'e_mailout'); if(!empty($data['userclass'])) // userclass unsubscribe. { $data['userclass'] = intval($data['userclass']); $listName = e107::getUserClass()->getName($data['userclass']); } else { $listName = $ml->mailerName; } if(vartrue($_POST['remove']) && !empty($data)) { if($ml->unsubscribe('process',$data)!=false) { $text = "
".$data['email']." has been removed from ".$listName.".
"; $mes->addSuccess($text); } else { $text = "There was a problem when attempting to remove ".$data['email']." from ".$listName.".
"; $mes->addError($text); } echo "We are very sorry for the inconvenience.
Please click the button below to remove ".$data['email']." from ".$listName.".