Code Duplication    Length = 14-14 lines in 2 locations

admin/main.php 2 locations

@@ 385-398 (lines=14) @@
382
    exit();
383
}
384
385
function ignoreBrokenLinks()
386
{
387
    global $xoopsDB;
388
389
    $bknrptid = MylinksUtility::mylinks_cleanVars($_POST, 'bknrptid', 0, 'int', array('min' => 0));
390
    $sql      = sprintf('DELETE FROM %s WHERE reportid = %u', $xoopsDB->prefix('mylinks_broken'), $bknrptid);
391
    $result   = $xoopsDB->queryF($sql);
392
    if (!result) {
393
        MylinksUtility::show_message(_MD_MYLINKS_NORECORDFOUND);
394
    } else {
395
        MylinksUtility::show_message(_MD_MYLINKS_BROKENDELETED);
396
    }
397
    exit();
398
}
399
400
function listModReq()
401
{
@@ 536-549 (lines=14) @@
533
    exit();
534
}
535
536
function ignoreModReq()
537
{
538
    global $xoopsDB;
539
540
    $requestid = MylinksUtility::mylinks_cleanVars($_POST, 'requestid', 0, 'int', array('min' => 0));
541
    $sql       = sprintf('DELETE FROM %s WHERE requestid = %u', $xoopsDB->prefix('mylinks_mod'), $requestid);
542
    $result    = $xoopsDB->query($sql);
543
    if (!result) {
544
        MylinksUtility::show_message(_MD_MYLINKS_DBNOTUPDATED);
545
    } else {
546
        MylinksUtility::show_message(_MD_MYLINKS_MODREQDELETED);
547
    }
548
    exit();
549
}
550
551
function modLinkS()
552
{