Code Duplication    Length = 11-11 lines in 2 locations

index.php 1 location

@@ 79-89 (lines=11) @@
76
77
    ExpireAd();
78
79
    if ($xoopsUser) {
80
        $member_usid = $xoopsUser->getVar('uid');
81
        if ($usid = $member_usid) {
82
            $xoopsTpl->assign('istheirs', true);
83
84
            list($show_user) = $xoopsDB->fetchRow($xoopsDB->query('SELECT SQL_CACHE COUNT(*) FROM ' . $xoopsDB->prefix('adslight_listing') . ' WHERE usid=' . $member_usid . ''));
85
86
            $xoopsTpl->assign('show_user', $show_user);
87
            $xoopsTpl->assign('show_user_link', 'members.php?usid=' . $member_usid . '');
88
        }
89
    }
90
91
    $result = $xoopsDB->query('SELECT SQL_CACHE COUNT(*)  FROM ' . $xoopsDB->prefix('adslight_listing') . ' WHERE valid="No"');
92
    list($propo) = $xoopsDB->fetchRow($result);

viewcats.php 1 location

@@ 115-125 (lines=11) @@
112
113
    $xoopsTpl->assign('Feed_RSS_cat', '&nbsp;&nbsp;&nbsp;<a href="rss.php?cid=' . addslashes($cid) . '"><img border="0" alt="Feed RSS" src="assets/images/rssfeed_buttons.png" /></a>');
114
115
    if ($xoopsUser) {
116
        $member_usid = $xoopsUser->getVar('uid');
117
        if ($usid = $member_usid) {
118
            $xoopsTpl->assign('istheirs', true);
119
120
            list($show_user) = $xoopsDB->fetchRow($xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('adslight_listing') . ' WHERE usid=' . $member_usid . ''));
121
122
            $xoopsTpl->assign('show_user', $show_user);
123
            $xoopsTpl->assign('show_user_link', 'members.php?usid=' . $member_usid . '');
124
        }
125
    }
126
127
    $default_sort = $xoopsModuleConfig['adslight_lsort_order'];
128