Code Duplication    Length = 25-25 lines in 2 locations

admin/validate_ads.php 1 location

@@ 591-615 (lines=25) @@
588
 * @param $valid
589
 * @param $photo
590
 */
591
function modifyAdsS(
592
    $lid,
593
    $cat,
594
    $title,
595
    $status,
596
    $expire,
597
    $type,
598
    $desctext,
599
    $tel,
600
    $price,
601
    $typeprice,
602
    $typeusure,
603
    $date,
604
    $email,
605
    $submitter,
606
    $town,
607
    $country,
608
    $contactby,
609
    $premium,
610
    $valid,
611
    $photo
612
) {
613
    global $xoopsDB, $xoopsConfig, $myts, $moduleDirName, $admin_lang;
614
615
    $title     = $myts->htmlSpecialChars($title);
616
    $status    = $myts->htmlSpecialChars($status);
617
    $expire    = $myts->htmlSpecialChars($expire);
618
    $type      = $myts->htmlSpecialChars($type);

admin/view_ads.php 1 location

@@ 563-587 (lines=25) @@
560
 * @param $valid
561
 * @param $photo
562
 */
563
function modifyAdsS(
564
    $lid,
565
    $cat,
566
    $title,
567
    $status,
568
    $expire,
569
    $type,
570
    $desctext,
571
    $tel,
572
    $price,
573
    $typeprice,
574
    $typeusure,
575
    $date,
576
    $email,
577
    $submitter,
578
    $town,
579
    $country,
580
    $contactby,
581
    $premium,
582
    $valid,
583
    $photo
584
) {
585
    global $xoopsDB, $xoopsConfig, $myts, $moduleDirName, $admin_lang;
586
587
    $title     = $myts->htmlSpecialChars($title);
588
    $status    = $myts->htmlSpecialChars($status);
589
    $expire    = $myts->htmlSpecialChars($expire);
590
    $type      = $myts->htmlSpecialChars($type);