Code Duplication    Length = 8-8 lines in 2 locations

index.php 2 locations

@@ 224-231 (lines=8) @@
221
}
222
223
switch ($op) {
224
    case 'delete':
225
        if ($adminview) {
226
            include_once(XOOPS_ROOT_PATH . '/header.php');
227
            delete($msg_id);
228
        } else {
229
            redirect_header('index.php', 1, '');
230
        }
231
        break;
232
233
    case 'approve':
234
        if ($adminview) {
@@ 233-240 (lines=8) @@
230
        }
231
        break;
232
233
    case 'approve':
234
        if ($adminview) {
235
            include_once(XOOPS_ROOT_PATH . '/header.php');
236
            approve($msg_id);
237
        } else {
238
            redirect_header('index.php', 1, '');
239
        }
240
        break;
241
242
    case 'show_stat':
243
        if ($options['opt_gender'] > 0) {