This file is indexed.

/usr/share/horde/nag/lib/Form/Type/NagMethod.php is in php-horde-nag 4.2.7-1ubuntu1.

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
45
46
47
48
49
50
51
52
53
<?php
/**
 * The Horde_Form_Type_nag_method class provides a form field for editing
 * notification methods for a task alarm.
 *
 * @author  Alfonso Marin <almarin@um.es>
 * @package Nag
 */
class Nag_Form_Type_NagMethod extends Horde_Form_Type
{
    public function getInfo(&$vars, &$var, &$info)
    {
        $info = $var->getValue($vars);
        if (empty($info['on'])) {
            $info = array();
            return;
        }

        $types = $vars->get('task_alarms');
        $info = array();
        if (!empty($types)) {
            foreach ($types as $type) {
                $info[$type] = array();
                switch ($type){
                    case 'notify':
                        $info[$type]['sound'] = $vars->get('task_alarms_sound');
                        break;
                    case 'mail':
                        $info[$type]['email'] = $vars->get('task_alarms_email');
                        break;
                    case 'popup':
                        break;
                }
            }
        }
    }

    public function isValid(&$var, &$vars, $value, &$message)
    {
        $alarm = $vars->get('alarm');
        if ($value['on'] && !$alarm['on']){
            $message = _("An alarm must be set to specify a notification method");
            return false;
        }
        return true;
    }

    public function getTypeName()
    {
        return 'NagMethod';
    }

}