Code Duplication    Length = 5-5 lines in 2 locations

index.php 1 location

@@ 244-248 (lines=5) @@
241
            $xoops->tpl()->assign('user_admin', true);
242
243
            $xoops->tpl()->assign('admin_block', AlumniLocale::ADMIN_PANEL);
244
            if (0 == $moderate_rows) {
245
                $xoops->tpl()->assign('confirm_alumni', AlumniLocale::NO_LISTING_TO_APPROVE);
246
            } else {
247
                $xoops->tpl()->assign('confirm_alumni', AlumniLocale::THERE_ARE . " $moderate_rows  " . AlumniLocale::WAITING . '<br><a href="admin/alumni.php?op=list_moderated">' . constant($main_lang . '_SEEIT') . '</a>');
248
            }
249
            $xoops->tpl()->assign('total_confirm', AlumniLocale::THIS_AND . " $moderate_rows " . AlumniLocale::WAITING);
250
        }
251
    }

listing.php 1 location

@@ 138-142 (lines=5) @@
135
136
            $printA = '<a href="print.php?lid=' . addslashes($lid) . '" target="_blank"><img src="images/print.gif" border=0 alt="' . AlumniLocale::THIS_PRINT . '" width=15 height=11></a>&nbsp;';
137
            $mailA  = "<a href=\"sendfriend.php?op=SendFriend&amp;lid=$lid\"><img src=\"../{$moduleDirName}/images/friend.gif\" border=\"0\" alt=\"" . AlumniLocale::FRIENDSEND . '" width="15" height="11"></a>';
138
            if ($usid > 0) {
139
                $xoops->tpl()->assign('submitter', AlumniLocale::SUBMITTED_BY . "<a href='" . XOOPS_URL . '/userinfo.php?uid=' . addslashes($usid) . "'>$submitter</a>");
140
            } else {
141
                $xoops->tpl()->assign('submitter', AlumniLocale::SUBMITTED_BY . "$submitter");
142
            }
143
144
            $xoops->tpl()->assign('print', $printA);
145
            $xoops->tpl()->assign('sfriend', $mailA);