Code Duplication    Length = 3-5 lines in 2 locations

print.php 1 location

@@ 85-87 (lines=3) @@
82
      <td>' . _ADSLIGHT_CLASSIFIED . " (No. $lid ) <br>" . _ADSLIGHT_FROM . " $submitter <br><br>";
83
84
    echo " <strong>$type :</strong> <i>$title</i><br>";
85
    if ($price > 0) {
86
        echo '<strong>' . _ADSLIGHT_PRICE2 . "</strong> $price " . $GLOBALS['xoopsModuleConfig']['adslight_currency_symbol'] . "  - $typeprice<br>";
87
    }
88
    if ($photo) {
89
        echo "<tr><td><div style='text-align:left'><img class=\"thumb\" src=\"" . XOOPS_URL . "/uploads/AdsLight/$url\" width=\"130px\" border=0 ></div>";
90
    }

contact.php 1 location

@@ 71-75 (lines=5) @@
68
    while (list($email, $submitter, $title, $type, $desctext, $price, $typeprice) = $xoopsDB->fetchRow($result)) {
69
        $teles = Request::getString('tele', '', 'POST');
70
71
        if ($price) {
72
            $price = '' . _ADSLIGHT_PRICE . ' ' . $GLOBALS['xoopsModuleConfig']['adslight_currency_symbol'] . " $price";
73
        } else {
74
            $price = '';
75
        }
76
77
        $date   = time();
78
        $r_usid = $GLOBALS['xoopsUser']->getVar('uid', 'E');