Code Duplication    Length = 5-5 lines in 2 locations

admin/validate_ads.php 1 location

@@ 95-99 (lines=5) @@
92
            $title    = $myts->htmlSpecialChars($title);
93
            $desctext = $myts->displayTarea($desctext, 1, 0, 1, 1, 1);
94
95
            if (strlen($desctext) >= 200) {
96
                $desctext = substr($desctext, 0, 199) . '...';
97
            } else {
98
                $desctext = $myts->displayTarea($desctext, 1, 1, 1);
99
            }
100
            $date2 = formatTimestamp($date, 's');
101
102
            if (is_int($rank / 2)) {

admin/view_ads.php 1 location

@@ 92-96 (lines=5) @@
89
            $title    = $myts->htmlSpecialChars($title);
90
            $desctext = $myts->displayTarea($desctext, 1, 0, 1, 1, 1);
91
92
            if (strlen($desctext) >= 200) {
93
                $desctext = substr($desctext, 0, 199) . '...';
94
            } else {
95
                $desctext = $myts->displayTarea($desctext, 1, 1, 1);
96
            }
97
            $date2 = formatTimestamp($date, 's');
98
99
            if (is_int($rank / 2)) {