Code Duplication    Length = 13-13 lines in 2 locations

blocks/adslight_add.php 1 location

@@ 26-38 (lines=13) @@
23
/**
24
 * @return mixed
25
 */
26
function b_adslight_add()
27
{
28
    global $xoopsDB;
29
30
    $xt   = new XoopsTree($xoopsDB->prefix('adslight_categories'), 'cid', 'pid');
31
    $jump = XOOPS_URL . '/modules/adslight/addlisting.php?cid=';
32
    ob_start();
33
    $xt->makeMySelBox('title', 'title', 0, 1, 'pid', "location=\"" . $jump . "\"+this.options[this.selectedIndex].value");
34
    $block['selectbox'] = ob_get_contents();
35
    ob_end_clean();
36
37
    return $block;
38
}
39

include/functions.php 1 location

@@ 733-745 (lines=13) @@
730
/**
731
 * @return mixed
732
 */
733
function adslight_gocategory()
734
{
735
    global $xoopsDB;
736
737
    $xt   = new XoopsTree($xoopsDB->prefix('adslight_categories'), 'cid', 'pid');
738
    $jump = XOOPS_URL . '/modules/adslight/viewcats.php?cid=';
739
    ob_start();
740
    $xt->makeMySelBox('title', 'title', 0, 1, 'pid', "location=\"" . $jump . "\"+this.options[this.selectedIndex].value");
741
    $block['selectbox'] = ob_get_contents();
742
    ob_end_clean();
743
744
    return $block;
745
}
746
747
// ADSLIGHT Version 2 //
748
// Fonction rss.php RSS par categories