Code Duplication    Length = 15-17 lines in 2 locations

report-abuse.php 1 location

@@ 182-196 (lines=15) @@
179
$lid = Request::getInt('lid', 0);
180
$op  = Request::getString('op', '');
181
182
switch ($op) {
183
    case 'ReportAbuse':
184
        include XOOPS_ROOT_PATH . '/header.php';
185
        ReportAbuse($lid);
186
        include XOOPS_ROOT_PATH . '/footer.php';
187
        break;
188
189
    case 'MailAd':
190
        MailAd($lid, $yname, $ymail, $fname, $fmail);
191
        break;
192
193
    default:
194
        redirect_header('index.php', 1, _RETURNANN);
195
        break;
196
}
197

sendfriend.php 1 location

@@ 171-187 (lines=17) @@
168
$lid = Request::getInt('lid', 0);
169
$op  = Request::getString('op', '');
170
171
switch ($op) {
172
173
    case 'SendFriend':
174
        include XOOPS_ROOT_PATH . '/header.php';
175
        SendFriend($lid);
176
        include XOOPS_ROOT_PATH . '/footer.php';
177
        break;
178
179
    case 'MailAd':
180
        MailAd($lid, $yname, $ymail, $fname, $fmail);
181
        break;
182
183
    default:
184
        redirect_header('index.php', 1, ' ' . _RETURNANN . ' ');
185
        break;
186
187
}
188