mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-20 03:36:20 +02:00
cf5b117aa5
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@67 a1433add-5e2c-0410-b055-b7f2511e0802
50 lines
1.0 KiB
PHP
50 lines
1.0 KiB
PHP
<?php
|
|
//
|
|
// Postfix Admin
|
|
// by Mischa Peters <mischa at high5 dot net>
|
|
// Copyright (c) 2002 - 2005 High5!
|
|
// Licensed under GPL for more info check GPL-LICENSE.TXT
|
|
//
|
|
// File: list-admin.php
|
|
//
|
|
// Template File: list-admin.tpl
|
|
//
|
|
// Template Variables:
|
|
//
|
|
// -none-
|
|
//
|
|
// Form POST \ GET Variables:
|
|
//
|
|
// -none-
|
|
//
|
|
|
|
require_once("../common.php");
|
|
|
|
authentication_require_role('global-admin');
|
|
|
|
$list_admins = list_admins ();
|
|
if ((is_array ($list_admins) and sizeof ($list_admins) > 0))
|
|
{
|
|
for ($i = 0; $i < sizeof ($list_admins); $i++)
|
|
{
|
|
$admin_properties[$i] = get_admin_properties ($list_admins[$i]);
|
|
}
|
|
}
|
|
|
|
if ($_SERVER['REQUEST_METHOD'] == "GET")
|
|
{
|
|
include ("../templates/header.tpl");
|
|
include ("../templates/admin_menu.tpl");
|
|
include ("../templates/admin_list-admin.tpl");
|
|
include ("../templates/footer.tpl");
|
|
}
|
|
|
|
if ($_SERVER['REQUEST_METHOD'] == "POST")
|
|
{
|
|
include ("../templates/header.tpl");
|
|
include ("../templates/admin_menu.tpl");
|
|
include ("../templates/admin_list-admin.tpl");
|
|
include ("../templates/footer.tpl");
|
|
}
|
|
?>
|