/usr/share/horde/wicked/templates/display/AttachedFiles.html.php is in php-horde-wicked 2.0.7-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 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 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | <h1 class="header">
<?php echo $this->pageName ?>: <a href="<?php echo $this->referrerLink ?>"><?php echo $this->referrer ?></a> <?php echo $this->refreshIcon ?>
</h1>
<br />
<table class="horde-table sortable" style="width:100%">
<thead>
<tr>
<th width="25%"><?php echo _("Attachment Name") ?></th>
<th width="1%"> </th>
<th width="4%"><?php echo _("Version") ?></th>
<th width="10%"><?php echo _("Author") ?></th>
<th width="20%"><?php echo _("Date") ?></th>
<th width="35%"><?php echo _("Change Log") ?></th>
<th width="5%" class="nowrap"><?php echo _("Downloads") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($this->attachments as $attachment): ?>
<tr>
<td><a href="<?php echo $attachment['url'] ?>"><?php echo $attachment['attachment_name'] ?></a></td>
<td>
<?php if ($attachment['delete_form']): ?>
<form method="post" action="<?php echo $this->formAction ?>">
<input type="hidden" name="cmd" value="delete" />
<input type="hidden" name="actionID" value="special" />
<input type="hidden" name="referrer" value="<?php echo $this->referrer ?>" />
<input type="hidden" name="filename" value="<?php echo $attachment['attachment_name'] ?>" />
<input type="hidden" name="version" value="<?php echo $attachment['attachment_version'] ?>" />
<input type="image" class="img" src="<?php echo $this->deleteButton ?>" />
</form>
<?php endif ?>
</td>
<td><?php echo $attachment['attachment_version'] ?></td>
<td><?php echo $this->h($attachment['change_author']) ?></td>
<td sortval="<?php echo $attachment['timestamp'] ?>"><?php echo $attachment['date'] ?></td>
<td><?php echo $this->h($attachment['change_log']) ?></td>
<td><?php echo $attachment['attachment_hits'] ?></td>
</tr>
<?php endforeach ?>
</tbody>
</table>
<?php if ($this->canAttach): ?>
<br />
<div class="horde-form">
<form method="post" action="<?php echo $this->formAction ?>" enctype="multipart/form-data" name="AttachedFiles">
<?php echo $this->formInput ?>
<input type="hidden" name="page" value="AttachedFiles" />
<input type="hidden" name="referrer" value="<?php echo $this->referrer ?>" />
<input type="hidden" name="actionID" value="special" />
<input type="hidden" name="is_update" value="0" />
<h1 class="header">
<?php echo _("Attach a New File") ?>
</h1>
<table>
<tr>
<td class="horde-form-label" width="15%">
<span class="form-error"><?php echo $this->requiredMarker ?></span>
<?php echo _("File to attach") ?>
</td>
<td>
<input type="file" size="30" name="attachment_file" />
</td>
</tr>
<tr>
<td class="horde-form-label">
<span class="form-error"></span>
<?php echo _("Name for this file") ?>
</td>
<td>
<input type="text" size="30" name="filename" /><br />
<?php echo _("If blank, will use the file's current name") ?>
</td>
</tr>
<tr>
<td class="horde-form-label">
<span class="form-error">
<?php if ($this->requireChangelog): ?>
<?php echo $this->requiredMarker ?>
<?php endif ?>
</span>
<?php echo _("Change log entry") ?>
</td>
<td>
<input type="text" size="50" name="change_log" />
</td>
</tr>
<tr>
<td class="horde-form-buttons" colspan="2">
<input class="horde-default" type="submit" name="submit" value="<?php echo _("Attach File") ?>" />
</td>
</tr>
</table>
</form>
</div>
<?php endif ?>
<?php if ($this->canUpdate): ?>
<br />
<div class="horde-form">
<form method="post" action="<?php echo $this->formAction ?>" enctype="multipart/form-data" name="AttachedFiles">
<?php echo $this->formInput ?>
<input type="hidden" name="page" value="AttachedFiles" />
<input type="hidden" name="referrer" value="<?php echo $this->referrer ?>" />
<input type="hidden" name="actionID" value="special" />
<input type="hidden" name="is_update" value="1" />
<h1 class="header">
<?php echo _("Update an Attachment") ?>
</h1>
<table>
<tr>
<td class="horde-form-label" width="15%">
<span class="form-error"><?php echo $this->requiredMarker ?></span>
<?php echo _("File to attach") ?>
</td>
<td>
<input type="file" size="30" name="attachment_file" />
</td>
</tr>
<tr>
<td class="horde-form-label">
<span class="form-error"><?php echo $this->requiredMarker ?></span>
<?php echo _("File to update") ?>
</td>
<td>
<select name="filename">
<option value=""><?php echo _("-- select --") ?></option>
<?php foreach ($this->files as $file): ?>
<option value="<?php echo $this->h($file) ?>"><?php echo $this->h($file) ?></option>
<?php endforeach ?>
</select>
</td>
</tr>
<tr>
<td class="horde-form-label">
<span class="form-error">
<?php if ($this->requireChangelog): ?>
<?php echo $this->requiredMarker ?>
<?php endif ?>
</span>
<?php echo _("Change log entry") ?>
</td>
<td>
<input type="text" size="50" name="change_log" />
</td>
</tr>
<tr>
<td class="horde-form-buttons" colspan="2">
<input class="horde-default" type="submit" name="submit" value="<?php echo _("Update File") ?>" />
</td>
</tr>
</table>
</form>
</div>
<?php endif ?>
|