Code Duplication    Length = 3-3 lines in 2 locations

include/functions.php 2 locations

@@ 1061-1063 (lines=3) @@
1058
        && $published['offline'] == 0
1059
    ) {
1060
        $published_status = $xtubeImageArray['online'];
1061
    } elseif (($published['expired'] && $published['expired'] < time()) && $published['offline'] == 0) {
1062
        $published_status = $xtubeImageArray['expired'];
1063
    } else {
1064
        $published_status = ($published['published'] == 0) ? '<a href="newvideos.php">' . $xtubeImageArray['offline'] . '</a>' : $xtubeImageArray['offline'];
1065
    }
1066
@@ 1178-1180 (lines=3) @@
1175
//        $published_status = $xtubeImageArray['online'];
1176
        $published_status = '<a href="main.php?op=toggle&amp;lid=' . $lid . '&amp;offline=' . $published['offline'] . '"><img src="' . $pathIcon16 . '/1.png' . '" /></a>';
1177
1178
    } elseif (($published['expired'] && $published['expired'] < time()) && $published['offline'] == 0) {
1179
        $published_status = $xtubeImageArray['expired'];
1180
    } else {
1181
        $published_status = ($published['published'] == 0) ? '<a href="newvideos.php">' . $xtubeImageArray['offline'] . '</a>'
1182
            : '<a href="main.php?op=toggle&amp;lid=' . $lid . '&amp;offline=' . $published['offline'] . '"><img src="' . $pathIcon16 . '/0.png' . '" /></a>';
1183
    }