Code Duplication    Length = 9-12 lines in 3 locations

admin/cat.php 1 location

@@ 277-288 (lines=12) @@
274
                // Редирект
275
                redirect_header('cat.php', 3, _AM_INSTRUCTION_ERR_DELCAT);
276
            }
277
        } else {
278
279
            // Заголовок админки
280
            xoops_cp_header();
281
            // Навигация
282
            $adminObject->displayNavigation(basename(__FILE__));
283
284
            xoops_confirm(['ok' => 1, 'cid' => $cid, 'op' => 'delcat'], 'cat.php', sprintf(_AM_INSTRUCTION_FORMDELCAT, $objInscat->getVar('title')));
285
286
            // Текст внизу админки
287
            include __DIR__ . '/admin_footer.php';
288
        }
289
290
        break;
291

admin/instr.php 2 locations

@@ 347-355 (lines=9) @@
344
                // Редирект
345
                redirect_header('instr.php', 3, _AM_INSTRUCTION_ERR_DELINSTR);
346
            }
347
        } else {
348
            xoops_cp_header();
349
350
            $adminObject->displayNavigation(basename(__FILE__));
351
            // Форма
352
            xoops_confirm(['ok' => 1, 'instrid' => $instrid, 'op' => 'delinstr'], 'instr.php', sprintf(_AM_INSTRUCTION_FORMDELINSTR, $objInsinstr->getVar('title')));
353
            // Текст внизу админки
354
            include __DIR__ . '/admin_footer.php';
355
        }
356
357
        break;
358
@@ 569-579 (lines=11) @@
566
            } else {
567
                redirect_header('instr.php?op=viewinstr&instrid=' . $page_instrid, 3, _AM_INSTRUCTION_ERR_DELPAGE);
568
            }
569
        } else {
570
571
            // Заголовок админки
572
            xoops_cp_header();
573
            // Меню
574
            $adminObject->displayNavigation(basename(__FILE__));
575
            // Форма
576
            xoops_confirm(['ok' => 1, 'pageid' => $pageid, 'op' => 'delpage'], 'instr.php', sprintf(_AM_INSTRUCTION_FORMDELPAGE, $objInspage->getVar('title')));
577
            // Текст внизу админки
578
            include __DIR__ . '/admin_footer.php';
579
        }
580
581
        break;
582