| @@ 81-89 (lines=9) @@ | ||
| 78 | } |
|
| 79 | ||
| 80 | // set the path directory file |
|
| 81 | if (!empty($row_users['group_id'])) { |
|
| 82 | $path_user_info = $userGroup->get_group_picture_path_by_id( |
|
| 83 | $row_users['group_id'], |
|
| 84 | 'system', |
|
| 85 | true |
|
| 86 | ); |
|
| 87 | } else { |
|
| 88 | $path_user_info['dir'] = UserManager::getUserPathById($message_uid, 'system'); |
|
| 89 | } |
|
| 90 | ||
| 91 | $full_file_name = $path_user_info['dir'].'message_attachments/'.$file_url; |
|
| 92 | ||
| @@ 611-615 (lines=5) @@ | ||
| 608 | // User-reserved directory where photos have to be placed.* |
|
| 609 | $userGroup = new UserGroup(); |
|
| 610 | ||
| 611 | if (!empty($group_id)) { |
|
| 612 | $path_user_info = $userGroup->get_group_picture_path_by_id($group_id, 'system', true); |
|
| 613 | } else { |
|
| 614 | $path_user_info['dir'] = UserManager::getUserPathById($message_user_id, 'system'); |
|
| 615 | } |
|
| 616 | ||
| 617 | $path_message_attach = $path_user_info['dir'] . 'message_attachments/'; |
|
| 618 | ||
| @@ 660-672 (lines=13) @@ | ||
| 657 | $attach_id = $row['id']; |
|
| 658 | $new_path = $path . '_DELETED_' . $attach_id; |
|
| 659 | ||
| 660 | if (!empty($group_id)) { |
|
| 661 | $userGroup = new UserGroup(); |
|
| 662 | $path_user_info = $userGroup->get_group_picture_path_by_id( |
|
| 663 | $group_id, |
|
| 664 | 'system', |
|
| 665 | true |
|
| 666 | ); |
|
| 667 | } else { |
|
| 668 | $path_user_info['dir'] = UserManager::getUserPathById( |
|
| 669 | $message_uid, |
|
| 670 | 'system' |
|
| 671 | ); |
|
| 672 | } |
|
| 673 | ||
| 674 | $path_message_attach = $path_user_info['dir'] . 'message_attachments/'; |
|
| 675 | if (is_file($path_message_attach . $path)) { |
|