Just for the record, I've added the following code to my profile.php:
[code=php]if (isset($_POST['delete_user_comply']))
{
($hook = get_hook('pf_delete_user_form_submitted')) ? eval($hook) : null;
//added this ----->
function PostToHost($host, $path, $data_to_send) {
$fp = fsockopen($host,80);
fputs($fp, "POST $path HTTP/1.1\n" );
fputs($fp, "Host: $host\n" );
fputs($fp, "Content-type: application/x-www-form-urlencoded\n" );
fputs($fp, "Content-length: ".strlen($data_to_send)."\n" );
fputs($fp, "Connection: close\n\n" );
fputs($fp, $data_to_send);
fclose($fp);
}
PostToHost("www.stopforumspam.com", "/post.php", "username=" . $user['username'] . "&ip_addr=" . $user['registration_ip'] . "&email=" . $user['email'] . "&api_key=XXXXXXXXXXXXX");
//<--------
delete_user($id, isset($_POST['delete_posts']));
($hook = get_hook('pf_delete_user_pre_redirect')) ? eval($hook) : null;
redirect(forum_link($forum_url['index']), $lang_profile['User delete redirect']);
}[/code]
Seems to work nicely, submitting user to stopforumspam.com when I decide to delete a user completely (spamming is the sole reason when I delete them). API key is hardcoded in, so for this to become universally usable it would need to go somewhere into a configuration, and there should be an explicit checkbox to mark the user for submitting to stopforumspam. Should be somehow merged with KeyDog's code, but I can't do it - not enough PHP&PunBB exps