This file is indexed.

/usr/share/postfixadmin/templates/editform.tpl is in postfixadmin 3.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
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
<div id="edit_form">
<form name="edit_{$table}" method="post" action="">
<input class="flat" type="hidden" name="table" value="{$table}" />
<input class="flat" type="hidden" name="token" value="{$smarty.session.PFA_token|escape:"url"}" />

<table>
	<tr>
		<th colspan="4">{$formtitle}</th>
	</tr>

{foreach key=key item=field from=$struct}
	{if $field.display_in_form == 1}

		{if $table == 'foo' && $key == 'bar'}
			<tr><td>Special handling (complete table row) for {$table} / {$key}</td></tr>
		{else}
			<tr>
				<td class="label">{$field.label}</td>
				<td>
				{if $field.editable == 0}
					{if $field.type == 'enma'}
						{$struct.{$key}.options.{$value_{$key}}}
					{else}
						{$value_{$key}}
					{/if}
				{else}
					{if $table == 'foo' && $key == 'bar'}
						Special handling (td content) for {$table} / {$key}
					{elseif $field.type == 'bool'}
						<input class="flat" type="checkbox" value='1' name="value[{$key}]"{if {$value_{$key}} == 1} checked="checked"{/if}/>
					{elseif $field.type == 'enum'}
						<select class="flat" name="value[{$key}]">
						{html_options output=$struct.{$key}.options values=$struct.{$key}.options selected=$value_{$key}}
						</select>
					{elseif $field.type == 'enma'}
						<select class="flat" name="value[{$key}]">
						{html_options options=$struct.{$key}.options selected=$value_{$key}}
						</select>
					{elseif $field.type == 'list'}
						<select class="flat" name="value[{$key}][]" size="10" multiple="multiple">
						{html_options output=$struct.{$key}.options values=$struct.{$key}.options selected=$value_{$key}}
						</select>

<!-- alternative: 
						<div style='max-height:30em; overflow:auto;'>
							{html_checkboxes name="value[{$key}]" output=$struct.{$key}.options values=$struct.{$key}.options selected=$value_{$key} separator="<br />"}
						</div>
-->
					{elseif $field.type == 'pass' || $field.type == 'b64p'}
						<input class="flat" type="password" name="value[{$key}]" />
					{elseif $field.type == 'txtl'}
						<textarea class="flat" rows="10" cols="35" name="value[{$key}]">{foreach key=key2 item=field2 from=$value_{$key}}{$field2}
{/foreach}</textarea>
					{else}
						<input class="flat" type="text" name="value[{$key}]" value="{$value_{$key}}" />
					{/if}
				{/if}	
				</td>
				<td>
					{if $table == 'foo' && $key == 'bar'}
						Special handling (td content) for {$table} / {$key}
					{else}
						{$field.desc}
					{/if}
				</td>
				<td class="error_msg">{$fielderror.{$key}}</td>
			</tr>
		{/if}

	{/if}
{/foreach}

	<tr>
		<td>&nbsp;</td>
		<td colspan="3"><input class="button" type="submit" name="submit" value="{$submitbutton}" /></td>
	</tr>
</table>

</form>
</div>