Code Duplication    Length = 5-5 lines in 2 locations

admin/index.php 2 locations

@@ 1784-1788 (lines=5) @@
1781
        xoops_cp_header();
1782
        if ('newsletter' === $_GET['type']) {
1783
            $newsfile = XOOPS_ROOT_PATH . '/uploads/news/newsletter.txt';
1784
            if (unlink($newsfile)) {
1785
                redirect_header('index.php', 2, _AM_NEWS_DELETED_OK);
1786
            } else {
1787
                redirect_header('index.php', 2, _AM_NEWS_DELETED_PB);
1788
            }
1789
        } else {
1790
            if ('xml' === $_GET['type']) {
1791
                $xmlfile = XOOPS_ROOT_PATH . '/uploads/news/stories.xml';
@@ 1792-1796 (lines=5) @@
1789
        } else {
1790
            if ('xml' === $_GET['type']) {
1791
                $xmlfile = XOOPS_ROOT_PATH . '/uploads/news/stories.xml';
1792
                if (unlink($xmlfile)) {
1793
                    redirect_header('index.php', 2, _AM_NEWS_DELETED_OK);
1794
                } else {
1795
                    redirect_header('index.php', 2, _AM_NEWS_DELETED_PB);
1796
                }
1797
            }
1798
        }
1799
        break;