This file is indexed.

/usr/share/horde/whups/lib/Scheduler.php is in php-horde-whups 3.0.9-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
<?php
/**
 * Send reminders for tickets based on the reminders configuration file.
 *
 * @package Horde_Scheduler
 */
class Whups_Scheduler extends Horde_Scheduler
{
    protected $_reminders;
    protected $_runtime;
    protected $_filestamp = 0;

    public function run()
    {
        $this->_runtime = time();

        // See if we need to include the reminders config file.
        if (filemtime(WHUPS_BASE . '/config/reminders.php') > $this->_filestamp) {
            $this->_filestamp = $this->_runtime;
            $this->_reminders = Horde::loadConfiguration('reminders.php', 'reminders', 'whups');
        }

        foreach ($this->_reminders as $reminder) {
            $ds = new Horde_Scheduler_Cron_Date($reminder['frequency']);
            if ($ds->scheduledAt($this->_runtime)) {
                if (!empty($reminder['server_name'])) {
                    $GLOBALS['conf']['server']['name'] = $reminder['server_name'];
                }
                $vars = new Horde_Variables($reminder);
                Whups::sendReminders($vars);
            }
        }
    }

}