Code Duplication    Length = 4-4 lines in 2 locations

advancedsearch.php 2 locations

@@ 184-187 (lines=4) @@
181
        $searchnum  = uniqid(mt_rand(), 1);
182
        $pages_text .= '' . _MD_PAGES . '<a href="advancedsearch.php?ref=' . $searchnum . '&page=1&dirid=' . $get_dirid . '">1</a>';
183
    }
184
    for ($i = 1; $i < $count_pages; ++$i) {
185
        $page       = $i + 1;
186
        $pages_text .= ' - <a href="advancedsearch.php?ref=' . $searchnum . '&page=' . $page . '&dirid=' . $get_dirid . '">' . $page . '</a>';
187
    }
188
    $pages_text     .= sprintf(_MD_NEW_SEARCH_ADV, $get_dirid);
189
    $pages_top_text = sprintf(_MD_PAGE_OF_PAGES, $get_page, $count_pages) . '<br><br>';
190
@@ 285-288 (lines=4) @@
282
    if ($count_pages >= 2) {
283
        $pages_text .= '' . _MD_PAGES . '<a href="advancedsearch.php?ref=' . $get_searchnum . '&page=1&dirid=' . $get_dirid . '">1</a>';
284
    }
285
    for ($i = 1; $i < $count_pages; ++$i) {
286
        $page       = $i + 1;
287
        $pages_text .= ' - <a href="advancedsearch.php?ref=' . $get_searchnum . '&page=' . $page . '&dirid=' . $get_dirid . '">' . $page . '</a><br>';
288
    }
289
    ob_start();
290
    printf(_MD_NEW_SEARCH_ADV, $get_dirid);
291
    $pages_text .= ob_get_contents();