Code Duplication    Length = 7-7 lines in 2 locations

thumbs/phpthumb.class.php 2 locations

@@ 1473-1479 (lines=7) @@
1470
                                            . '", but the correct filename ('
1471
                                            . $AbsoluteFilename
1472
                                            . ') seems to have been resolved with $this->realPathSafe($filename)', __FILE__, __LINE__);
1473
                    } elseif (is_dir(dirname($AbsoluteFilename))) {
1474
                        $this->DebugMessage('phpthumb_functions::ApacheLookupURIarray() failed for "'
1475
                                            . dirname($filename)
1476
                                            . '", but the correct directory ('
1477
                                            . dirname($AbsoluteFilename)
1478
                                            . ') seems to have been resolved with $this->realPathSafe(.)', __FILE__, __LINE__);
1479
                    } else {
1480
                        return $this->ErrorImage('phpthumb_functions::ApacheLookupURIarray() failed for "'
1481
                                                 . $filename
1482
                                                 . '". This has been known to fail on Apache2 - try using the absolute filename for the source image (ex: "/home/user/httpdocs/image.jpg" instead of "/~user/image.jpg")');
@@ 1524-1530 (lines=7) @@
1521
                                            . '", but the correct filename ('
1522
                                            . $AbsoluteFilename
1523
                                            . ') seems to have been resolved with $this->realPathSafe(.)/$filename', __FILE__, __LINE__);
1524
                    } elseif (is_dir(dirname($AbsoluteFilename))) {
1525
                        $this->DebugMessage('phpthumb_functions::ApacheLookupURIarray() failed for "'
1526
                                            . dirname(@$_SERVER['PHP_SELF'])
1527
                                            . '", but the correct directory ('
1528
                                            . dirname($AbsoluteFilename)
1529
                                            . ') seems to have been resolved with $this->realPathSafe(.)', __FILE__, __LINE__);
1530
                    } else {
1531
                        return $this->ErrorImage('phpthumb_functions::ApacheLookupURIarray() failed for "'
1532
                                                 . dirname(@$_SERVER['PHP_SELF'])
1533
                                                 . '". This has been known to fail on Apache2 - try using the absolute filename for the source image');