0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-20 03:36:20 +02:00
postfixadmin/templates/fetchmail.tpl
Christian Boltz 1a79b2798e delete.php:
- require token for CSRF protection, see
  https://sourceforge.net/p/postfixadmin/bugs/269/

login.php, users/login.php:
- create token and store it in $_SESSION

templates/*:
- add token to all delete.php links

templates/list-virtual_alias_domain.tpl:
- change delete confirmation dialog to contain "from->target"


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1564 a1433add-5e2c-0410-b055-b7f2511e0802
2013-11-10 21:17:17 +00:00

52 lines
2.0 KiB
Smarty

{if $edit || $new}
<div id="edit_form">
<form name="fetchmail" method="post" action="">
{$fetchmail_edit_row}
{else}
{assign var="colspan" value=$headers|@count}
<div id="overview">
<form name="frmOverview" method="post" action="">
<table id="log_table" border="0">
<tr>
<th colspan="{$colspan+2}">{$PALANG.pFetchmail_welcome}{$user_domains}</th>
</tr>
{#tr_header#}
{foreach from=$headers item=header}
<td>{$header}</td>
{/foreach}
<td colspan="2">&nbsp;</td>
</tr>
{if $tFmail}
{foreach from=$tFmail item=row}
{#tr_hilightoff#}
<td nowrap="nowrap">{$row.mailbox}&nbsp;</td>
<td nowrap="nowrap">{$row.src_server}&nbsp;</td>
<td nowrap="nowrap">{$row.src_auth}&nbsp;</td>
<td nowrap="nowrap">{$row.src_user}&nbsp;</td>
<td nowrap="nowrap">{$row.src_folder}&nbsp;</td>
<td nowrap="nowrap">{$row.poll_time}&nbsp;</td>
<td nowrap="nowrap">{$row.fetchall}&nbsp;</td>
<td nowrap="nowrap">{$row.keep}&nbsp;</td>
<td nowrap="nowrap">{$row.protocol}&nbsp;</td>
<td nowrap="nowrap">{$row.usessl}&nbsp;</td>
<td nowrap="nowrap">{$row.sslcertck}&nbsp;</td>
{if $extra_options}
<td nowrap="nowrap">{$row.sslcertpath}&nbsp;</td>
<td nowrap="nowrap">{$row.sslfingerprint}&nbsp;</td>
<td nowrap="nowrap">{$row.extra_options}&nbsp;</td>
<td nowrap="nowrap">{$row.mda}&nbsp;</td>
{/if}
<td nowrap="nowrap">{$row.date}&nbsp;</td>
<td nowrap="nowrap">{$row.returned_text}--x--&nbsp;</td> <!-- Inhalt mit if auswerten! -->
<td><a href="fetchmail.php?edit={$row.id|escape:"url"}">{$PALANG.edit}</a></td>
<td><a href="fetchmail.php?delete={$row.id|escape:"url"}&amp;token={$smarty.session.PFA_token|escape:"url"}"
onclick="return confirm('{$PALANG.confirm}{$PALANG.pMenu_fetchmail}:{$row.src_user}@{$row.src_server}')">{$PALANG.del}</a></td>
</tr>
{/foreach}
{/if}
</table>
</form>
</div>
<br /><a href='?new=1' class="button">{$PALANG.pFetchmail_new_entry}</a><br />
{/if}