Code Duplication    Length = 13-13 lines in 2 locations

admin/manage.php 2 locations

@@ 108-120 (lines=13) @@
105
switch ($op) {
106
    case 'verifybeforeedit':
107
        if (isset($_POST['submit']) && $_POST['submit'] !== '') {
108
            if ($_POST['longdesc'] === '') {
109
                xoops_cp_header();
110
                $adminObject = \Xmf\Module\Admin::getInstance();
111
                $adminObject->displayNavigation(basename(__FILE__));
112
                echo "<table width='100%' border='0' cellspacing='1' class='outer'>\n";
113
                echo '<tr><td class="odd">';
114
                echo "<a href='manage.php'><h4>" . _AM_MYIFRAME_CONFIG . '</h4></a>';
115
                echo _AM_MYIFRAME_ERROR_ADD_INDEX;
116
                echo '</td></tr></table>';
117
                include_once __DIR__ . '/admin_footer.php';
118
                xoops_cp_footer();
119
                exit();
120
            }
121
122
            $frameid = $_POST['frameid'];
123
            $frame   = $iframeHandler->get($frameid);
@@ 154-166 (lines=13) @@
151
            $frame   = $iframeHandler->get($frameid);
152
            AddEditForm($frameid, 'verifybeforeedit', _AM_MYIFRAME_CONFIG, $frame->getVar('frame_description', 'e'), $frame->getVar('frame_width', 'e'), $frame->getVar('frame_height', 'e'), $frame->getVar('frame_align', 'e'),
153
                        $frame->getVar('frame_frameborder', 'e'), $frame->getVar('frame_marginwidth', 'e'), $frame->getVar('frame_marginheight', 'e'), $frame->getVar('frame_scrolling', 'e'), $frame->getVar('frame_url', 'e'), _AM_MYIFRAME_UPDATE);
154
        } else {
155
            xoops_cp_header();
156
            $adminObject = \Xmf\Module\Admin::getInstance();
157
            $adminObject->displayNavigation(basename(__FILE__));
158
            echo "<table width='100%' border='0' cellspacing='1' class='outer'>\n";
159
            echo '<tr><td class="odd">';
160
            echo "<a href='manage.php'><h4>" . _AM_MYIFRAME_CONFIG . '</h4></a>';
161
            echo _AM_MYIFRAME_ERROR_ADD_INDEX;
162
            echo "</td></tr></table>\n";
163
            include_once __DIR__ . '/admin_footer.php';
164
            xoops_cp_footer();
165
            exit();
166
        }
167
        break;
168
169
    case 'delete':