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.
|
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/includes/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 | ?> |
---|