Code Duplication    Length = 18-18 lines in 2 locations

htdocs/modules/wflinks/admin/main.php 1 location

@@ 477-494 (lines=18) @@
474
        $keywords = $wfmyts -> addslashes( trim(substr($_POST["keywords"], 0, $xoopsModuleConfig['keywordlength']) ) );
475
        $item_tag = $wfmyts -> addslashes( trim( $_POST["item_tag"] ) );
476
        $forumid = ( isset( $_POST["forumid"] ) && $_POST["forumid"] > 0 ) ? intval( $_POST["forumid"] ) : 0;
477
        if ($xoopsModuleConfig['useaddress']) {
478
           $googlemap = ( $_POST["googlemap"] != "http://maps.google.com" ) ? $wfmyts -> addslashes( $_POST["googlemap"] ) : '';
479
           $yahoomap = ( $_POST["yahoomap"] != "http://maps.yahoo.com" ) ? $wfmyts -> addslashes( $_POST["yahoomap"] ) : '';
480
           $multimap = ( $_POST["multimap"] != "http://www.multimap.com" ) ? $wfmyts -> addslashes( $_POST["multimap"] ) : '';
481
           $street1 = $wfmyts -> addslashes( trim( $_POST["street1"] ) );
482
           $street2 = $wfmyts -> addslashes( trim( $_POST["street2"] ) );
483
           $town = $wfmyts -> addslashes( trim( $_POST["town"] ) );
484
           $state = $wfmyts -> addslashes( trim( $_POST["state"] ) );
485
           $zip = $wfmyts -> addslashes( trim( $_POST["zip"] ) );
486
           $tel = $wfmyts -> addslashes( trim( $_POST["tel"] ) );
487
           $fax = $wfmyts -> addslashes( trim( $_POST["fax"] ) );
488
           $voip = $wfmyts -> addslashes( trim( $_POST["voip"] ) );
489
           $mobile = $wfmyts -> addslashes( trim( $_POST["mobile"] ) );
490
           $email = emailcnvrt($wfmyts -> addslashes( trim( $_POST["email"] ) ));
491
           $vat = $wfmyts -> addslashes( trim( $_POST["vat"] ) );
492
        } else {
493
           $googlemap = $yahoomap = $multimap = $street1 = $street2 = $town = $state = $zip = $tel = $fax = $voip = $mobile = $email = $vat = '';
494
        }
495
496
        $submitter = $xoopsUser -> uid();
497
        $publisher = $wfmyts -> addslashes( trim( $_POST["publisher"] ) );

htdocs/modules/wflinks/submit.php 1 location

@@ 53-70 (lines=18) @@
50
          $item_tag = '';
51
        }
52
53
        if ($xoopsModuleConfig['useaddress']) {
54
        $googlemap = ( $_POST["googlemap"] != "http://maps.google.com" ) ? $wfmyts -> addslashes( $_POST["googlemap"] ) : '';
55
        $yahoomap = ( $_POST["yahoomap"] != "http://maps.yahoo.com" ) ? $wfmyts -> addslashes( $_POST["yahoomap"] ) : '';
56
        $multimap = ( $_POST["multimap"] != "http://www.multimap.com" ) ? $wfmyts -> addslashes( $_POST["multimap"] ) : '';
57
        $street1 = $wfmyts -> addslashes( ltrim( $_REQUEST["street1"] ) );
58
        $street2 = $wfmyts -> addslashes( ltrim( $_REQUEST["street2"] ) );
59
        $town = $wfmyts -> addslashes( ltrim( $_REQUEST["town"] ) );
60
        $state = $wfmyts -> addslashes( ltrim( $_REQUEST["state"] ) );
61
        $zip = $wfmyts -> addslashes( ltrim( $_REQUEST["zip"] ) );
62
        $tel = $wfmyts -> addslashes( ltrim( $_REQUEST["tel"] ) );
63
        $fax = $wfmyts -> addslashes( ltrim( $_REQUEST["fax"] ) );
64
        $voip = $wfmyts -> addslashes( ltrim( $_REQUEST["voip"] ) );
65
        $mobile = $wfmyts -> addslashes( ltrim( $_REQUEST["mobile"] ) );
66
        $email = emailcnvrt( $wfmyts -> addslashes( ltrim( $_REQUEST["email"] ) ) );
67
        $vat = $wfmyts -> addslashes( ltrim( $_REQUEST["vat"] ) );
68
        } else {
69
          $googlemap = $yahoomap = $multimap = $street1 = $street2 = $town = $state = $zip = $tel = $fax = $voip = $mobile = $email = $vat = '';
70
        }
71
72
        $country = $wfmyts -> addslashes( ltrim( $_REQUEST["country"] ) );
73