| @@ 44-61 (lines=18) @@ | ||
| 41 | ||
| 42 | ||
| 43 | ||
| 44 | if ($delete_att_1 !== 'none') { |
|
| 45 | $op = 'delete_attachment'; |
|
| 46 | $id_del = 1; |
|
| 47 | } elseif ($delete_att_2 !== 'none') { |
|
| 48 | $op = 'delete_attachment'; |
|
| 49 | $id_del = 2; |
|
| 50 | } elseif ($delete_att_3 !== 'none') { |
|
| 51 | $op = 'delete_attachment'; |
|
| 52 | $id_del = 3; |
|
| 53 | } elseif ($delete_att_4 !== 'none') { |
|
| 54 | $op = 'delete_attachment'; |
|
| 55 | $id_del = 4; |
|
| 56 | } elseif ($delete_att_5 !== 'none') { |
|
| 57 | $op = 'delete_attachment'; |
|
| 58 | $id_del = 5; |
|
| 59 | } else { |
|
| 60 | $id_del = 0; |
|
| 61 | } |
|
| 62 | ||
| 63 | switch ($op) { |
|
| 64 | case 'delete_attachment': |
|
| @@ 47-64 (lines=18) @@ | ||
| 44 | $delete_att_4 = XoopsRequest::getString('delete_attachment_4', 'none'); |
|
| 45 | $delete_att_5 = XoopsRequest::getString('delete_attachment_5', 'none'); |
|
| 46 | ||
| 47 | if ($delete_att_1 !== 'none') { |
|
| 48 | $op = 'delete_attachment'; |
|
| 49 | $id_del = 1; |
|
| 50 | } elseif ($delete_att_2 !== 'none') { |
|
| 51 | $op = 'delete_attachment'; |
|
| 52 | $id_del = 2; |
|
| 53 | } elseif ($delete_att_3 !== 'none') { |
|
| 54 | $op = 'delete_attachment'; |
|
| 55 | $id_del = 3; |
|
| 56 | } elseif ($delete_att_4 !== 'none') { |
|
| 57 | $op = 'delete_attachment'; |
|
| 58 | $id_del = 4; |
|
| 59 | } elseif ($delete_att_5 !== 'none') { |
|
| 60 | $op = 'delete_attachment'; |
|
| 61 | $id_del = 5; |
|
| 62 | } else { |
|
| 63 | $id_del = 0; |
|
| 64 | } |
|
| 65 | ||
| 66 | switch ($op) { |
|
| 67 | case 'list_subscrs' : |
|