Changeset 1114
- Timestamp:
- 05/22/08 04:44:48 (6 months ago)
- Files:
-
- bb-attachments/trunk/bb-attachments.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
bb-attachments/trunk/bb-attachments.php
r1097 r1114 206 206 if (!$post_id) {$post_id=intval($_GET['bb_attachments']);} // only can upload if user is allowed to edit post 207 207 $user_id=bb_get_current_user_info( 'id' ); 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;}208 if (!isset($_FILES['bb_attachments']) || !is_array($_FILES['bb_attachments']) || !$user_id || !$post_id || !bb_current_user_can('edit_post',$post_id) || !bb_current_user_can($bb_attachments['role']['upload'])) {return;} 209 209 210 210 $user_ip=$_SERVER["REMOTE_ADDR"]; // $GLOBALS["HTTP_SERVER_VARS"]["REMOTE_ADDR"];
