delete list-admin.php and its template, use list.php instead
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1754 a1433add-5e2c-0410-b055-b7f2511e0802pull/2/head
parent
add12b9fb4
commit
dd43f12e9b
@ -1,34 +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-admin.php
|
||||
* Lists all administrators
|
||||
* Template File: list-admin.tpl
|
||||
*
|
||||
* Template Variables: -none-
|
||||
*
|
||||
* Form POST \ GET Variables: -none-
|
||||
*/
|
||||
|
||||
require_once("common.php");
|
||||
|
||||
authentication_require_role('global-admin');
|
||||
|
||||
$admin_properties = list_admins();
|
||||
|
||||
$smarty->assign ('admin_properties', $admin_properties);
|
||||
$smarty->assign ('smarty_template', 'adminlistadmin');
|
||||
$smarty->display ('index.tpl');
|
||||
|
||||
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */
|
||||
?>
|
@ -1,29 +0,0 @@
|
||||
{if $admin_properties}
|
||||
<table id="admin_table">
|
||||
{#tr_header#}
|
||||
<td>{$PALANG.admin}</td>
|
||||
<td>{$PALANG.pAdminList_admin_count}</td>
|
||||
<td>{$PALANG.last_modified}</td>
|
||||
<td>{$PALANG.active}</td>
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
{foreach from=$admin_properties item=admin}
|
||||
{#tr_hilightoff#}
|
||||
<td><a href="list.php?table=domain&username={$admin.username|escape:"url"}">{$admin.username}</a></td>
|
||||
<td>
|
||||
{if $admin.superadmin == 1}
|
||||
{$PALANG.super_admin}
|
||||
{else}
|
||||
{$admin.domain_count}
|
||||
{/if}
|
||||
</td>
|
||||
<td>{$admin.modified}</td>
|
||||
<td><a href="{#url_editactive#}admin&id={$admin.username|escape:"url"}&active={if ($admin.active==0)}1{else}0{/if}&token={$smarty.session.PFA_token|escape:"url"}">{$admin._active}</a></td>
|
||||
<td><a href="{#url_edit_admin#}&edit={$admin.username|escape:"url"}">{$PALANG.edit}</a></td>
|
||||
<td><a href="{#url_delete#}?table=admin&delete={$admin.username|escape:"url"}&token={$smarty.session.PFA_token|escape:"url"}"
|
||||
onclick="return confirm ('{$PALANG.confirm}{$PALANG.admin}: {$admin.username}');">{$PALANG.del}</a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<br /><a href="{#url_create_admin#}" class="button">{$PALANG.pAdminMenu_create_admin}</a><br />
|
||||
{/if}
|
Loading…
Reference in New Issue