This file is indexed.

/usr/share/horde/nag/templates/list.html.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<script type="text/javascript">

var PREFS_UPDATE_TIMEOUT;

function table_sortCallback(tableId, column, sortDown)
{
    if (typeof PREFS_UPDATE_TIMEOUT != "undefined") {
        window.clearTimeout(PREFS_UPDATE_TIMEOUT);
    }

    PREFS_UPDATE_TIMEOUT = window.setTimeout('doPrefsUpdate("' + column + '", "' + sortDown + '")', 300);
}

function doPrefsUpdate(column, sortDown)
{
    baseurl = '<?php echo $GLOBALS['registry']->getServiceLink('prefs', 'nag') ?>';
    try {
        new Ajax.Request(baseurl, { parameters: { pref: 'sortby', value: encodeURIComponent(column.substring(1)) } });
        new Ajax.Request(baseurl, { parameters: { pref: 'sortdir', value: encodeURIComponent(sortDown) } });
    } catch (e) {}
}

</script>
<div id="page">
  <?php echo $this->render('list/header'); ?>
  <?php echo $this->tabs; ?>
  <?php echo $this->browser; ?>
  <?php if (!$this->tasks->hasTasks()): ?>

    <p class="text"><em><?php echo _("There are no tasks matching the current criteria.") ?></em></p>

  <?php else: ?>

    <table id="tasks" class="horde-table sortable nowrap">
      <?php echo $this->render('list/task_headers'); ?>
      <tbody id="tasks-body">
        <?php while ($task = $this->tasks->each()):
            $due = $task->due ? $task->getNextDue() : null;
            if (!empty($task->completed)) {
                $style = 'linedRow closed';
            } elseif ($due && $due->before($_SERVER['REQUEST_TIME'])) {
                $style = 'linedRow overdue';
            } else {
                $style = '';
            }
            if ($task->tasklist == '**EXTERNAL**') {
                $share = $GLOBALS['nag_shares']->newShare($GLOBALS['registry']->getAuth(), '**EXTERNAL**', $task->tasklist_name);
                $owner = $task->tasklist_name;
            } else {
                try {
                    $share = $GLOBALS['nag_shares']->getShare($task->tasklist);
                    $owner = Nag::getLabel($share);
                } catch (Horde_Share_Exception $e) {
                    $owner = $task->tasklist;
                }
            }
            $locals = array(
              'style' => $style,
              'have_read' => $share->hasPermission($GLOBALS['registry']->getAuth(), Horde_Perms::READ),
              'have_edit' => $share->hasPermission($GLOBALS['registry']->getAuth(), Horde_Perms::EDIT),
              'owner' => $owner,
              'task' => $task,
              'due' => $due,
              'columns' => $this->columns,
              'dynamic_sort' => $this->dynamic_sort &= !$task->hasSubTasks(),
              'dateFormat' => $GLOBALS['prefs']->getValue('date_format')); ?>
            <?php echo $this->renderPartial('list/task', array('locals' => $locals)) ?>
        <?php endwhile; ?>
      </tbody>
    </table>
    <?php if ($this->dynamic_sort) $GLOBALS['page_output']->addScriptFile('tables.js', 'horde') ?>

  <?php endif; ?>

<div id="tasks_empty" style="display:none">
 <?php echo _("No tasks match") ?>
</div>
</div>