Code Duplication    Length = 3-3 lines in 4 locations

admin/validate_ads.php 1 location

@@ 819-821 (lines=3) @@
816
817
$pa = Request::getInt('pa', '', 'GET');
818
819
if (!Request::hasVar('lid', 'POST') && Request::hasVar('lid', 'GET')) {
820
    $lid = Request::getInt('lid', 0, 'GET');
821
}
822
823
if (!Request::hasVar('op', 'POST') && Request::hasVar('op', 'GET')) {
824
    $op = Request::getString('op', '', 'GET');

admin/view_ads.php 1 location

@@ 751-753 (lines=3) @@
748
749
$pa  = Request::getInt('pa', '', 'GET');
750
$lid = 0;
751
if (!Request::hasVar('lid', 'POST') && Request::hasVar('lid', 'GET')) {
752
    $lid = Request::getInt('lid', 0, 'GET');
753
}
754
755
if (!Request::hasVar('op', 'POST') && Request::hasVar('op', 'GET')) {
756
    $op = Request::getString('op', '', 'GET');

modify.php 2 locations

@@ 423-425 (lines=3) @@
420
}
421
$ok = Request::getString('ok', '', 'GET');
422
423
if (!Request::hasVar('lid', 'POST') && Request::hasVar('lid', 'GET')) {
424
    $lid = Request::getInt('lid', 0, 'GET');
425
}
426
if (!Request::hasVar('r_lid', 'POST') && Request::hasVar('r_lid', 'GET')) {
427
    $r_lid = Request::getInt('r_lid', '', 'GET');
428
}
@@ 426-428 (lines=3) @@
423
if (!Request::hasVar('lid', 'POST') && Request::hasVar('lid', 'GET')) {
424
    $lid = Request::getInt('lid', 0, 'GET');
425
}
426
if (!Request::hasVar('r_lid', 'POST') && Request::hasVar('r_lid', 'GET')) {
427
    $r_lid = Request::getInt('r_lid', '', 'GET');
428
}
429
if (!Request::hasVar('op', 'POST') && Request::hasVar('op', 'GET')) {
430
    $op = Request::getString('op', '', 'GET');
431
}