Code Duplication    Length = 7-9 lines in 6 locations

admin/adsense.php 2 locations

@@ 60-68 (lines=9) @@
57
}
58
59
switch ($op) {
60
    case 'mod':
61
62
        $adsenseid = isset($_GET['adsenseid']) ? (int)$_GET['adsenseid'] : 0;
63
64
        smart_xoops_cp_header();
65
        echo $indexAdmin->addNavigation(basename(__FILE__));
66
67
        editclass(true, $adsenseid);
68
        break;
69
70
    case 'clone':
71
@@ 70-78 (lines=9) @@
67
        editclass(true, $adsenseid);
68
        break;
69
70
    case 'clone':
71
72
        $adsenseid = isset($_GET['adsenseid']) ? (int)$_GET['adsenseid'] : 0;
73
74
        smart_xoops_cp_header();
75
        echo $indexAdmin->addNavigation(basename(__FILE__));
76
77
        editclass(true, $adsenseid, true);
78
        break;
79
80
    case 'addadsense':
81
        if (@include_once SMARTOBJECT_ROOT_PATH . 'include/captcha/captcha.php') {

admin/currency.php 1 location

@@ 53-59 (lines=7) @@
50
}
51
52
switch ($op) {
53
    case 'mod':
54
        $currencyid = isset($_GET['currencyid']) ? (int)$_GET['currencyid'] : 0;
55
56
        smart_xoops_cp_header();
57
58
        editclass(true, $currencyid);
59
        break;
60
61
    case 'updateCurrencies':
62

admin/customtag.php 2 locations

@@ 62-70 (lines=9) @@
59
}
60
61
switch ($op) {
62
    case 'mod':
63
64
        $customtagid = isset($_GET['customtagid']) ? (int)$_GET['customtagid'] : 0;
65
66
        smart_xoops_cp_header();
67
        echo $indexAdmin->addNavigation(basename(__FILE__));
68
69
        editcustomtag(true, $customtagid);
70
        break;
71
72
    case 'clone':
73
@@ 72-80 (lines=9) @@
69
        editcustomtag(true, $customtagid);
70
        break;
71
72
    case 'clone':
73
74
        $customtagid = isset($_GET['customtagid']) ? (int)$_GET['customtagid'] : 0;
75
76
        smart_xoops_cp_header();
77
        echo $indexAdmin->addNavigation(basename(__FILE__));
78
79
        editcustomtag(true, $customtagid, true);
80
        break;
81
82
    case 'addcustomtag':
83
        include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php';

admin/rating.php 1 location

@@ 71-79 (lines=9) @@
68
69
switch ($op) {
70
    case 'mod':
71
    case 'changedField';
72
73
        $ratingid = isset($_GET['ratingid']) ? (int)$_GET['ratingid'] : 0;
74
75
        smart_xoops_cp_header();
76
        echo $indexAdmin->addNavigation(basename(__FILE__));
77
78
        editclass(true, $ratingid);
79
        break;
80
81
    case 'addrating':
82
        include_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php';