Code Duplication    Length = 5-5 lines in 2 locations

xfcreate.php 1 location

@@ 60-64 (lines=5) @@
57
$badip = in_array($_SERVER['REMOTE_ADDR'], xfgb_get_badips()) ? true : false;
58
59
switch ($op) {
60
    case 'cancel':
61
        $photos_dir     = XOOPS_UPLOAD_PATH . '/' . $xoopsModule->getVar('dirname');
62
        $nb_removed_tmp = xfgb_clear_tmp_files($photos_dir);
63
        redirect_header('index.php', 0);
64
        break;
65
66
    case 'preview':
67
        $ts                                      = MyTextSanitizer::getInstance();

index.php 1 location

@@ 343-347 (lines=5) @@
340
        }
341
        break;
342
343
    case 'cancel':
344
        $photos_dir     = XOOPS_UPLOAD_PATH . '/' . $xoopsModule->getVar('dirname');
345
        $nb_removed_tmp = xfgb_clear_tmp_files($photos_dir);
346
        redirect_header('index.php', 0);
347
        break;
348
}
349
$sql = $xoopsDB->query('SELECT * FROM ' . $xoopsDB->prefix('xfguestbook_country') . ' ORDER BY country_name ASC');
350