Code Duplication    Length = 8-8 lines in 2 locations

index.php 2 locations

@@ 274-281 (lines=8) @@
271
}
272
273
switch ($op) {
274
    case 'delete':
275
        if ($adminview) {
276
            include_once XOOPS_ROOT_PATH . '/header.php';
277
            delete($msg_id);
278
        } else {
279
            redirect_header('index.php', 1, '');
280
        }
281
        break;
282
283
    case 'approve':
284
        if ($adminview) {
@@ 283-290 (lines=8) @@
280
        }
281
        break;
282
283
    case 'approve':
284
        if ($adminview) {
285
            include_once XOOPS_ROOT_PATH . '/header.php';
286
            approve($msg_id);
287
        } else {
288
            redirect_header('index.php', 1, '');
289
        }
290
        break;
291
292
    case 'show_stat':
293
        if ($options['opt_gender'] > 0) {