| 208 | | if (!$user_id || !$post_id || !bb_current_user_can('edit_post',$post_id) || !bb_current_user_can($bb_attachments['role']['upload'])) {return;} |
|---|
| 209 | | |
|---|
| 210 | | $user_ip=$_SERVER["REMOTE_ADDR"]; // $GLOBALS["HTTP_SERVER_VARS"]["REMOTE_ADDR"]; |
|---|
| | 208 | if (!isset($_FILES) || !is_array($_FILES) || !$user_id || !$post_id || !bb_current_user_can('edit_post',$post_id) || !bb_current_user_can($bb_attachments['role']['upload'])) {return;} |
|---|
| | 209 | |
|---|
| | 210 | $user_ip=$_SERVER["REMOTE_ADDR"]; // $GLOBALS["HTTP_SERVER_VARS"]["REMOTE_ADDR"]; |
|---|