This file is indexed.

/usr/share/doc/php-horde-rdo/examples/Task.php is in php-horde-rdo 2.0.2-2.

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
<?php
/**
 * @package Rdo
 */

@include './conf.php';
if (empty($conf)) {
    die('No configuration found.');
}

require_once 'Horde/Autoloader.php';

/**
 */
class Task extends Horde_Rdo_Base
{
}

/**
 */
class TaskMapper extends Horde_Rdo_Mapper
{
    protected $_table = 'nag_tasks';
}

$tm = new TaskMapper($conf['adapter']);

// Count all tasks.
$count = $tm->count();
echo "# tasks: $count\n";

// List all tasks.
echo "Looking for all tasks:\n";
foreach ($tm->find(Horde_Rdo::FIND_ALL) as $task) {
    echo "  " . $task->task_name . "\n";
}

// List all of Chuck's tasks.
$chuck = $tm->find(Horde_Rdo::FIND_ALL, array('task_owner' => 'chuck'));
echo "\nChuck's tasks:\n";
foreach ($chuck as $task) {
    echo "  " . $task->task_name . "\n";
}