This file is indexed.

/usr/share/horde/ansel/lib/ImageGenerator/ShadowThumbStack.php is in php-horde-ansel 3.0.5+debian0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
 * ImageGenerator to create the gallery image stacks.
 *
 * @author Michael J. Rubinsky <mrubinsk@horde.org>
 * @package Ansel
 */
class Ansel_ImageGenerator_ShadowThumbStack extends Ansel_ImageGenerator
{
    public $need = array('PhotoStack');

    /**
     *
     * @return Horde_Image
     */
    protected function _create()
    {
        $imgobjs = $this->_getStackImages();
        $style = $this->_params['style'];
        $params = array('width' => 100,
                        'height' => 100,
                        'background' => $style->background);

        $baseImg = Ansel::getImageObject($params);
        try {
            $baseImg->addEffect(
                'PhotoStack',
                array('images' => $imgobjs,
                      'resize_height' => $GLOBALS['conf']['thumbnail']['height'],
                      'padding' => 0,
                      'background' => $style->background,
                      'type' => 'plain'));

            $baseImg->applyEffects();
            $baseImg->resize($GLOBALS['conf']['thumbnail']['width'],
                             $GLOBALS['conf']['thumbnail']['height']);
        } catch (Horde_Image_Exception $e) {
            throw new Ansel_Exception($e);
        }

        return $baseImg;
    }

}