Changeset 370 for dev/mods/mail_forward
- Timestamp:
- 06/14/09 06:51:49 (12 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/mods/mail_forward/init.php
r198 r370 1 1 <?php 2 2 event::register('killmail_added', 'post_forward::handler'); 3 event::register('killmail_imported', 'import_forward::importhandler'); 3 4 4 5 class post_forward … … 19 20 } 20 21 } 22 23 24 class import_forward 25 { 26 function importhandler($object) 27 { 28 if (config::get('forward_active') == false) 29 { 30 return; 31 } 32 require_once('common/includes/class.http.php'); 33 34 $req = new http_request(config::get('forward_site').'?a=post'); 35 36 $req->set_postform('password', config::get('forward_pass')); 37 $req->set_postform('killmail', stripslashes($object->killmail_)); 38 $req->request(); 39 } 40 } 41 21 42 ?>