Revision 185, 439 bytes
(checked in by exi, 15 years ago)
|
Added stripslashes to the mail_forward eventhandler.
Changed db.php to check for strict type of define.
Reworked large chunks of the battle overview to reflect the actual count of lost/killed ships which was really mind numbing.
|
Line | |
---|
1 | <?php |
---|
2 | event::register('killmail_added', 'post_forward::handler'); |
---|
3 | |
---|
4 | class post_forward |
---|
5 | { |
---|
6 | function handler($object) |
---|
7 | { |
---|
8 | require_once('common/class.http.php'); |
---|
9 | |
---|
10 | $req = new http_request(config::get('forward_site').'?a=post'); |
---|
11 | |
---|
12 | $req->set_postform('password', config::get('forward_pass')); |
---|
13 | $req->set_postform('killmail', stripslashes($_POST['killmail'])); |
---|
14 | $req->request(); |
---|
15 | } |
---|
16 | } |
---|
17 | ?> |
---|