Code Duplication    Length = 8-8 lines in 2 locations

index.php 2 locations

@@ 242-249 (lines=8) @@
239
}
240
241
switch ($op) {
242
    case 'delete':
243
        if ($adminview) {
244
            include_once XOOPS_ROOT_PATH . '/header.php';
245
            delete($msg_id);
246
        } else {
247
            redirect_header('index.php', 1, '');
248
        }
249
        break;
250
251
    case 'approve':
252
        if ($adminview) {
@@ 251-258 (lines=8) @@
248
        }
249
        break;
250
251
    case 'approve':
252
        if ($adminview) {
253
            include_once XOOPS_ROOT_PATH . '/header.php';
254
            approve($msg_id);
255
        } else {
256
            redirect_header('index.php', 1, '');
257
        }
258
        break;
259
260
    case 'show_stat':
261
        if ($options['opt_gender'] > 0) {