Code Duplication    Length = 3-3 lines in 2 locations

public-upload-extended.php 1 location

@@ 25-27 (lines=3) @@
22
include XOOPS_ROOT_PATH . '/header.php';
23
24
$permHandler = ExtgalleryPublicPermHandler::getInstance();
25
if (count($permHandler->getAuthorizedPublicCat($GLOBALS['xoopsUser'], 'public_upload')) < 1) {
26
    redirect_header('index.php', 3, _MD_EXTGALLERY_NOPERM);
27
}
28
29
//echo "<pre>";print_r($xoopsModuleConfig);echo "</pre>";
30
$_SESSION['juvar.tmpsize'] = 0;

public-upload.php 1 location

@@ 30-32 (lines=3) @@
27
}
28
29
$permHandler = ExtgalleryPublicPermHandler::getInstance();
30
if (count($permHandler->getAuthorizedPublicCat($GLOBALS['xoopsUser'], 'public_upload')) < 1) {
31
    redirect_header('index.php', 3, _MD_EXTGALLERY_NOPERM);
32
}
33
34
$moduleDirName = basename(__DIR__);
35
$utilityClass  = ucfirst($moduleDirName) . 'Utility';