delete list-domain.php and its templates

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1747 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 10 years ago
parent a154c65c47
commit 6e82a41121

@ -1,53 +0,0 @@
<?php /**
* Postfix Admin
*
* LICENSE
* This source file is subject to the GPL license that is bundled with
* this package in the file LICENSE.TXT.
*
* Further details on the project are available at http://postfixadmin.sf.net
*
* @version $Id$
* @license GNU GPL v2 or later.
*
* File: list-domain.php
* List all domains as a quick overview.
*
*/
require_once('common.php');
authentication_require_role('admin');
# default: domain admin restrictions
$admin_username = authentication_get_username();
$list_admins = array(authentication_get_username());
$is_superadmin = 0;
$fUsername = "";
if (authentication_has_role('global-admin')) { # more permissions? Fine!
$list_admins = array_keys(list_admins());
$is_superadmin = 1;
$fUsername = safepost('fUsername', safeget('username', authentication_get_username())); # prefer POST over GET variable
if ($fUsername != "") {
$admin_username = $fUsername;
}
}
$handler = new DomainHandler(0, $admin_username);
$handler->getList('');
$domain_properties = $handler->result();
$smarty->assign ('domain_properties', $domain_properties);
$smarty->assign ('select_options', select_options($list_admins, array ($fUsername)), false);
if ($is_superadmin) {
$smarty->assign('smarty_template', 'adminlistdomain');
} else {
$smarty->assign ('smarty_template', 'overview-get');
}
$smarty->display ('index.tpl');
/* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */
?>

@ -1,44 +0,0 @@
<div id="overview">
<form name="frmOverview" method="post" action="">
<select name="fUsername" onchange="this.form.submit();">
{$select_options}
</select>
<input class="button" type="submit" name="go" value="{$PALANG.go}" />
</form>
{#form_search#}
</div>
{if $domain_properties}
<table id="admin_table">
{#tr_header#}
<td>{$PALANG.domain}</td>
<td>{$PALANG.description}</td>
<td>{$PALANG.aliases}</td>
<td>{$PALANG.mailboxes}</td>
{if $CONF.quota==YES}<td>{$PALANG.pOverview_get_quota}</td>{/if}
{if $CONF.domain_quota==YES}<td>{$PALANG.pAdminList_domain_quota}</td>{/if}
{if $CONF.transport==YES}<td>{$PALANG.transport}</td>{/if}
<td>{$PALANG.pAdminList_domain_backupmx}</td>
<td>{$PALANG.last_modified}</td>
<td>{$PALANG.active}</td>
<td colspan="2">&nbsp;</td>
</tr>
{foreach from=$domain_properties item=domain}
{#tr_hilightoff#}
<td><a href="{#url_list_virtual#}?domain={$domain.domain|escape:"url"}">{$domain.domain}</a></td>
<td>{$domain.description}</td>
<td>{$domain.alias_count} / {$domain.aliases}</td>
<td>{$domain.mailbox_count} / {$domain.mailboxes}</td>
{if $CONF.quota==YES}<td>{$domain.maxquota}</td>{/if}
{if $CONF.domain_quota===YES}<td>{$domain.total_quota} / {$domain.quota}</td>{/if}
{if $CONF.transport==YES}<td>{$domain.transport}</td>{/if}
<td>{$domain._backupmx}</td>
<td>{$domain.modified}</td>
<td><a href="{#url_editactive#}domain&amp;id={$domain.domain|escape:"url"}&amp;active={if ($domain.active==0)}1{else}0{/if}&amp;token={$smarty.session.PFA_token|escape:"url"}">{$domain._active}</a></td>
<td><a href="{#url_edit_domain#}&amp;edit={$domain.domain|escape:"url"}">{$PALANG.edit}</a></td>
<td><a href="{#url_delete#}?table=domain&amp;delete={$domain.domain|escape:"url"}&amp;token={$smarty.session.PFA_token|escape:"url"}"
onclick="return confirm ('{$PALANG.confirm_domain}{$PALANG.domain}: {$domain.domain}')">{$PALANG.del}</a></td>
</tr>
{/foreach}
</table>
{/if}
<br /><a href="{#url_edit_domain#}" class="button">{$PALANG.pAdminMenu_create_domain}</a><br />

@ -1,30 +0,0 @@
<div id="overview">
<form name="frmOverview" method="get" action="">
<select name="domain" onchange="this.form.submit();">
{$select_options}
</select>
<input class="button" type="submit" name="go" value="{$PALANG.go}" />
</form>
{#form_search#}
</div>
<table id="overview_table">
<tr>
<th colspan="5">{$PALANG.pOverview_title}</th>
</tr>
{#tr_header#}
<td>{$PALANG.domain}</td>
<td>{$PALANG.aliases}</td>
<td>{$PALANG.mailboxes}</td>
{if $CONF.quota===YES}<td>{$PALANG.pOverview_get_quota}</td>{/if}
{if $CONF.domain_quota===YES}<td>{$PALANG.pAdminList_domain_quota}</td>{/if}
</tr>
{foreach from=$domain_properties item=domain}
{#tr_hilightoff#}
<td><a href="{#url_list_virtual#}?domain={$domain.domain|escape:"url"}">{$domain.domain}</a></td>
<td>{$domain.alias_count} / {$domain.aliases}</td>
<td>{$domain.mailbox_count} / {$domain.mailboxes}</td>
{if $CONF.quota===YES}<td>{$domain.maxquota}</td>{/if}
{if $CONF.domain_quota===YES}<td>{$domain.total_quota} / {$domain.quota}</td>{/if}
</tr>
{/foreach}
</table>
Loading…
Cancel
Save