Code Duplication    Length = 8-8 lines in 2 locations

admin/myblocksadmin.php 1 location

@@ 354-361 (lines=8) @@
351
    echo '</div>';
352
}
353
354
if (!empty($_POST['submit'])) {
355
    if (!$xoopsGTicket->check(true, 'myblocksadmin')) {
356
        redirect_header(XOOPS_URL . '/', 3, $xoopsGTicket->getErrors());
357
    }
358
359
    include __DIR__ . '/mygroupperm.php';
360
    redirect_header(XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/admin/myblocksadmin.php$query4redirect", 1, _MD_AM_DBUPDATED);
361
}
362
363
xoops_cp_header();
364
include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->dirname() . '/admin/functions.php';

admin/myblocksadmin2.php 1 location

@@ 350-357 (lines=8) @@
347
    echo $form->render();
348
}
349
350
if (!empty($_POST['submit'])) {
351
    if (!$xoopsGTicket->check(true, 'myblocksadmin')) {
352
        redirect_header(XOOPS_URL . '/', 3, $xoopsGTicket->getErrors());
353
    }
354
355
    include __DIR__ . '/mygroupperm.php';
356
    redirect_header(XOOPS_URL . '/modules/' . $xoopsModule->dirname() . "/admin/myblocksadmin.php$query4redirect", 1, _MD_AM_DBUPDATED);
357
}
358
359
xoops_cp_header();
360
//if( file_exists( './mymenu.php' ) ) include( './mymenu.php' ) ;