/usr/share/postfixadmin/templates/admin_edit-admin.php is in postfixadmin 2.3.5-3.
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 | <?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
<div id="edit_form">
<form name="alias" method="post">
<table>
<tr>
<td colspan="3"><h3><?php print $PALANG['pAdminEdit_admin_welcome']; ?></h3></td></tr>
<tr>
<td><?php print $PALANG['pAdminEdit_admin_username']; ?>:</td>
<td><?php print $username; ?></td>
<td> </td>
</tr>
<tr>
<td><?php print $PALANG['pAdminEdit_admin_password']; ?>:</td>
<td><input class="flat" type="password" autocomplete="off" name="fPassword" value=""/></td>
<td><?php print $pAdminEdit_admin_password_text; ?></td>
</tr>
<tr>
<td><?php print $PALANG['pAdminEdit_admin_password2']; ?>:</td>
<td><input class="flat" type="password" name="fPassword2" value="" /></td>
<td> </td>
</tr>
<tr>
<td><?php print $PALANG['pAdminEdit_admin_active']; ?>:</td>
<td><input class="flat" type="checkbox" name="fActive" <?php print (!empty ($tActive)) ? 'checked' : ''; ?> /></td>
<td> </td>
</tr>
<tr>
<td><?php print $PALANG['pAdminEdit_admin_super_admin']; ?>:</td>
<td><input class="flat" type="checkbox" name="fSadmin" <?php print (!empty ($tSadmin)) ? 'checked' : ''; ?> /></td>
<td> </td>
</tr>
<tr>
<td colspan=3 align=center>
<select name="fDomains[]" size="10" multiple="multiple">
<?php
foreach($tAllDomains as $domain) {
// should escape $domain here to stop xss etc.
$selected = '';
if (in_array ($domain, $tDomains)) {
$selected = "selected='selected'";
}
print "<option value='$domain' $selected>$domain</option>\n";
}
?>
</select>
</td>
</tr>
<tr>
<td colspan="3" class="hlp_center"><input class="button" type="submit" name="submit" value="<?php print $PALANG['pAdminEdit_admin_button']; ?>" /></td>
</tr>
<tr>
<td colspan="3" class="standout"><?php print $tMessage; ?></td>
</tr>
</table>
</form>
</div>
|