Code Duplication    Length = 4-4 lines in 2 locations

thumbs/phpThumb.config.php 1 location

@@ 14-17 (lines=4) @@
11
//////////////////////////////////////////////////////////////
12
//require_once __DIR__ . '/../../header.php';
13
ob_start();
14
if (!file_exists(__DIR__ . '/phpthumb.functions.php') || !require_once __DIR__ . '/phpthumb.functions.php') {
15
    ob_end_flush();
16
    die('failed to include_once(phpthumb.functions.php) - realpath="' . realpath(__DIR__ . '/phpthumb.functions.php') . '"');
17
}
18
ob_end_clean();
19
20
include_once XOOPS_ROOT_PATH . '/modules/publisher/include/common.php';

thumbs/phpThumb.php 1 location

@@ 126-129 (lines=4) @@
123
124
// instantiate a new phpThumb() object
125
ob_start();
126
if (!require_once __DIR__ . '/phpthumb.class.php') {
127
    ob_end_flush();
128
    die('failed to include_once("' . realpath(__DIR__ . '/phpthumb.class.php') . '")');
129
}
130
ob_end_clean();
131
$phpThumb = new phpThumb();
132
$phpThumb->DebugTimingMessage('phpThumb.php start', __FILE__, __LINE__, $starttime);