Revision 198, 0.5 KB
(checked in by exi, 15 years ago)
|
Small patch from Mintoko belongin to the about message.
Fixed a bug which caused the mail_forward mod to relay mails even if its turned off.
|
Line | |
---|
1 | <?php |
---|
2 | event::register('killmail_added', 'post_forward::handler'); |
---|
3 | |
---|
4 | class post_forward |
---|
5 | { |
---|
6 | function handler($object) |
---|
7 | { |
---|
8 | if (config::get('forward_active') == false) |
---|
9 | { |
---|
10 | return; |
---|
11 | } |
---|
12 | require_once('common/includes/class.http.php'); |
---|
13 | |
---|
14 | $req = new http_request(config::get('forward_site').'?a=post'); |
---|
15 | |
---|
16 | $req->set_postform('password', config::get('forward_pass')); |
---|
17 | $req->set_postform('killmail', stripslashes($_POST['killmail'])); |
---|
18 | $req->request(); |
---|
19 | } |
---|
20 | } |
---|
21 | ?> |
---|