Code Duplication    Length = 27-27 lines in 2 locations

admin/validate_ads.php 1 location

@@ 824-850 (lines=27) @@
821
    $op = '';
822
}
823
824
switch ($op) {
825
826
    case 'IndexView':
827
        indexView($lid);
828
        break;
829
830
    case 'ListingDel':
831
        listingDel($lid, $photo);
832
        break;
833
834
    case 'ListingValid':
835
        listingValid($lid, $cid, $title, $status, $expire, $type, $desctext, $tel, $price, $typeprice, $typeusure, $date, $email, $submitter, $town, $country, $contactby, $premium, $valid, $photo);
836
        break;
837
838
    case 'ModifyAds':
839
        modifyAds($lid);
840
        break;
841
842
    case 'ModifyAdsS':
843
        modifyAdsS($lid, $cid, $title, $status, $expire, $type, $desctext, $tel, $price, $typeprice, $typeusure, $date, $email, $submitter, $town, $country, $contactby, $premium, $valid, $photo);
844
        break;
845
846
    default:
847
        index();
848
        break;
849
850
}
851

admin/view_ads.php 1 location

@@ 796-822 (lines=27) @@
793
    $op = '';
794
}
795
796
switch ($op) {
797
798
    case 'IndexView':
799
        indexView($lid);
800
        break;
801
802
    case 'ListingDel':
803
        listingDel($lid, $photo);
804
        break;
805
806
    case 'ListingValid':
807
        listingValid($lid, $cid, $title, $status, $expire, $type, $desctext, $tel, $price, $typeprice, $typeusure, $date, $email, $submitter, $town, $country, $contactby, $premium, $valid, $photo);
808
        break;
809
810
    case 'ModifyAds':
811
        modifyAds($lid);
812
        break;
813
814
    case 'ModifyAdsS':
815
        modifyAdsS($lid, $cid, $title, $status, $expire, $type, $desctext, $tel, $price, $typeprice, $typeusure, $date, $email, $submitter, $town, $country, $contactby, $premium, $valid, $photo);
816
        break;
817
818
    default:
819
        index();
820
        break;
821
822
}
823