root/dev/mods/mail_forward/init.php @ 190

Revision 190, 448 bytes (checked in by exi, 15 years ago)

This is a big update...
Moved all admin scripts to common/admin.
Moved all includes and classes to common/includes.
Edited all include-paths to reflect the movement.
Fixed a bug with the session system allowing every registered user to access admin pages.
Replaced calls to date() to use a wrapper so gmdate can be used.
Replaced some calls to $config with calls to the static object.
Fixed a big which caused the portrait_grab to not download a new picute.
Added a classified-state to kills.
Removed the sync_server server script in this tree.
Added code to help modules find the includes to index.php.

2event::register('killmail_added', 'post_forward::handler');
4class post_forward
6    function handler($object)
7    {
[190]8        require_once('common/includes/class.http.php');
10        $req = new http_request(config::get('forward_site').'?a=post');
12        $req->set_postform('password', config::get('forward_pass'));
[185]13        $req->set_postform('killmail', stripslashes($_POST['killmail']));
[181]14        $req->request();
15    }
Note: See TracBrowser for help on using the browser.