Code Duplication    Length = 7-7 lines in 4 locations

admin/broken.php 1 location

@@ 33-39 (lines=7) @@
30
            echo $broken_admin->addNavigation('broken.php');
31
        }
32
        $criteria = new CriteriaCompo();
33
        if (isset($_REQUEST['limit'])) {
34
             $criteria->setLimit($_REQUEST['limit']);
35
             $limit = $_REQUEST['limit'];
36
         } else {
37
             $criteria->setLimit($xoopsModuleConfig['perpageadmin']);
38
             $limit = $xoopsModuleConfig['perpageadmin'];
39
         }
40
        if (isset($_REQUEST['start'])) {
41
            $criteria->setStart($_REQUEST['start']);
42
            $start = $_REQUEST['start'];

admin/modified.php 1 location

@@ 33-39 (lines=7) @@
30
            echo $modified_admin->addNavigation('modified.php');
31
        }
32
        $criteria = new CriteriaCompo();
33
        if (isset($_REQUEST['limit'])) {
34
             $criteria->setLimit($_REQUEST['limit']);
35
             $limit = $_REQUEST['limit'];
36
         } else {
37
             $criteria->setLimit($xoopsModuleConfig['perpageadmin']);
38
             $limit = $xoopsModuleConfig['perpageadmin'];
39
         }
40
        if (isset($_REQUEST['start'])) {
41
            $criteria->setStart($_REQUEST['start']);
42
            $start = $_REQUEST['start'];

viewcat.php 1 location

@@ 173-179 (lines=7) @@
170
    $xoopsTpl->assign('lang_thereare', sprintf(_MD_TDMDOWNLOADS_CAT_THEREARE,$numrows));
171
172
    // Pour un affichage sur plusieurs pages
173
    if (isset($_REQUEST['limit'])) {
174
        $criteria->setLimit($_REQUEST['limit']);
175
        $limit = $_REQUEST['limit'];
176
    } else {
177
        $criteria->setLimit($xoopsModuleConfig['perpage']);
178
        $limit = $xoopsModuleConfig['perpage'];
179
    }
180
    if (isset($_REQUEST['start'])) {
181
        $criteria->setStart($_REQUEST['start']);
182
        $start = $_REQUEST['start'];

search.php 1 location

@@ 190-196 (lines=7) @@
187
$criteria_2->setSort($tblsort[$sort]);
188
$criteria_2->setOrder($tblorder[$order]);
189
$numrows = $downloads_Handler->getCount($criteria_2);
190
if (isset($_REQUEST['limit'])) {
191
    $criteria_2->setLimit($_REQUEST['limit']);
192
    $limit = $_REQUEST['limit'];
193
} else {
194
    $criteria_2->setLimit($xoopsModuleConfig['perpageliste']);
195
    $limit = $xoopsModuleConfig['perpageliste'];
196
}
197
if (isset($_REQUEST['start'])) {
198
    $criteria_2->setStart($_REQUEST['start']);
199
    $start = $_REQUEST['start'];