Finally got rid of admin/ :-)

- moved admin-only scripts from admin/ to /
- removed all merged files ("require('../$file')") from admin/
- changed include paths - no more admin/superadmin switching needed
- admin_menu.tpl is also gone
- removed all menu.tpl / admin_menu.tpl switches - no more needed
- admin/index.php still exists and redirects to /



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@168 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
Christian Boltz 17 years ago
parent eb7d2d5a9b
commit 1132b958e5

@ -1,3 +0,0 @@
<?php
require ("../create-alias.php");
?>

@ -1,3 +0,0 @@
<?php
require ("../create-mailbox.php");
?>

@ -1,3 +0,0 @@
<?php
require('../delete.php');
?>

@ -1,3 +0,0 @@
<?php
require("../edit-active.php");
?>

@ -1,3 +0,0 @@
<?php
require("../edit-alias.php");
?>

@ -1,3 +0,0 @@
<?php
require("../edit-mailbox.php");
?>

@ -1,3 +0,0 @@
<?php
require ("../edit-vacation.php");
?>

@ -1,4 +1,4 @@
<?php
header ("Location: list-admin.php");
header ("Location: ../login.php");
exit(0);
?>

@ -1,4 +0,0 @@
<?php
header ("Location: list-admin.php");
exit;
?>

@ -1,180 +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://www.postfixadmin.com or http://postfixadmin.sf.net
*
* @version $Id$
* @license GNU GPL v2 or later.
*
* File: search.php
* Allows for search by e.g. name, mailbox name etc.
* Template File: search.tpl
*
* Template Variables:
*
* tAlias
* tMailbox
*
* Form POST \ GET Variables:
*
* search
* fDomain
* fGo
*/
require_once('../common.php');
require_once('../search.php');
/*
authentication_require_role('global-admin');
$tAlias = array();
$tMailbox = array();
$list_domains = list_domains ();
if ($_SERVER['REQUEST_METHOD'] == "GET")
{
if (isset ($_GET['search'])) $fSearch = escape_string ($_GET['search']);
if ($CONF['alias_control'] == "YES")
{
$query = "SELECT address,goto,modified,domain,active FROM $table_alias WHERE address LIKE '%$fSearch%' OR goto LIKE '%$fSearch%' ORDER BY address";
if ('pgsql'==$CONF['database_type'])
{
$query = "SELECT address,goto,extract (epoch from modified) as modified,domain,active FROM $table_alias WHERE address LIKE '%$fSearch%' OR goto LIKE '%$fSearch%' ORDER BY address";
}
}
else
{
$query = "SELECT $table_alias.address,$table_alias.goto,$table_alias.modified,$table_alias.domain,$table_alias.active FROM $table_alias LEFT JOIN $table_mailbox ON $table_alias.address=$table_mailbox.username WHERE $table_alias.address LIKE '%$fSearch%' AND $table_mailbox.maildir IS NULL ORDER BY $table_alias.address";
if ('pgsql'==$CONF['database_type'])
{
$query = "SELECT address,goto,extract(epoch from modified) as modified,domain,active FROM $table_alias WHERE address LIKE '%$fSearch%' AND NOT EXISTS(SELECT 1 FROM $table_mailbox WHERE username=$table_alias.address) ORDER BY address";
}
}
$result = db_query ("$query");
if ($result['rows'] > 0)
{
while ($row = db_array ($result['result']))
{
if ('pgsql'==$CONF['database_type'])
{
$row['modified'] = gmstrftime('%c %Z',$row['modified']);
$row['active']=('t'==$row['active']) ? 1 : 0;
}
$tAlias[] = $row;
}
}
$query = "SELECT * FROM $table_mailbox WHERE username LIKE '%$fSearch%' OR name LIKE '%$fSearch%' ORDER BY username";
if ('pgsql'==$CONF['database_type'])
{
$query = "SELECT *,extract(epoch from created) as uts_created,extract(epoch from modified) as uts_modified FROM $table_mailbox WHERE username LIKE '%$fSearch%' OR name LIKE '%$fSearch%' ORDER BY username";
}
$result = db_query ($query);
if ($result['rows'] > 0)
{
while ($row = db_array ($result['result']))
{
if ('pgsql'==$CONF['database_type'])
{
$row['created']=gmstrftime('%c %Z',$row['uts_created']);
$row['modified']=gmstrftime('%c %Z',$row['uts_modified']);
$row['active']=('t'==$row['active']) ? 1 : 0;
unset($row['uts_created']);
unset($row['uts_modified']);
}
$tMailbox[] = $row;
}
}
include ("../templates/header.tpl");
include ("../templates/admin_menu.tpl");
include ("../templates/search.tpl");
include ("../templates/footer.tpl");
}
if ($_SERVER['REQUEST_METHOD'] == "POST")
{
if (isset ($_POST['search'])) $fSearch = escape_string ($_POST['search']);
if (isset ($_POST['fGo'])) $fGo = escape_string ($_POST['fGo']);
if (isset ($_POST['fDomain'])) $fDomain = escape_string ($_POST['fDomain']);
if (empty ($fSearch) && !empty ($fGo))
{
header("Location: list-virtual.php?domain=" . $fDomain ) && exit;
}
if ($CONF['alias_control'] == "YES")
{
$query = "SELECT address,goto,modified,domain,active FROM $table_alias WHERE address LIKE '%$fSearch%' OR goto LIKE '%$fSearch%' ORDER BY address";
if ('pgsql'==$CONF['database_type'])
{
$query = "SELECT address,goto,extract (epoch from modified) as modified,domain,active FROM $table_alias WHERE address LIKE '%$fSearch%' OR goto LIKE '%$fSearch%' ORDER BY address";
}
}
else
{
$query = "SELECT $table_alias.address,$table_alias.goto,$table_alias.modified,$table_alias.domain,$table_alias.active FROM $table_alias LEFT JOIN $table_mailbox ON $table_alias.address=$table_mailbox.username WHERE $table_alias.address LIKE '%$fSearch%' AND $table_mailbox.maildir IS NULL ORDER BY $table_alias.address";
if ('pgsql'==$CONF['database_type'])
{
$query = "SELECT $table_alias.address,$table_alias.goto,extract(epoch from $table_alias.modified) as $table_modified,$table_alias.domain,$table_alias.active FROM $table_alias LEFT JOIN $table_mailbox ON $table_alias.address=$table_mailbox.username WHERE $table_alias.address LIKE '%$fSearch%' AND $table_mailbox.maildir IS NULL ORDER BY $table_alias.address";
}
}
$result = db_query ("$query");
if ($result['rows'] > 0)
{
while ($row = db_array ($result['result']))
{
if ('pgsql'==$CONF['database_type'])
{
$row['modified'] = gmstrftime('%c %Z',$row['modified']);
$row['active']=('t'==$row['active']) ? 1 : 0;
}
$tAlias[] = $row;
}
}
$query = "SELECT * FROM $table_mailbox WHERE username LIKE '%$fSearch%' OR name LIKE '%$fSearch%' ORDER BY username";
if ('pgsql'==$CONF['database_type'])
{
$query = "SELECT *,extract(epoch from created) as uts_created,extract(epoch from modified) as uts_modified FROM $table_mailbox WHERE username LIKE '%$fSearch%' OR name LIKE '%$fSearch%' ORDER BY username";
}
$result = db_query ("$query");
if ($result['rows'] > 0)
{
while ($row = db_array ($result['result']))
{
if ('pgsql'==$CONF['database_type'])
{
$row['created']=gmstrftime('%c %Z',$row['uts_created']);
$row['modified']=gmstrftime('%c %Z',$row['uts_modified']);
$row['active']=('t'==$row['active']) ? 1 : 0;
unset($row['uts_created']);
unset($row['uts_modified']);
}
$tMailbox[] = $row;
}
}
include ("../templates/header.tpl");
include ("../templates/admin_menu.tpl");
include ("../templates/search.tpl");
include ("../templates/footer.tpl");
}
*/
/* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */
?>

@ -1,3 +0,0 @@
<?php
require("../viewlog.php");
?>

@ -21,7 +21,7 @@
* Form POST \ GET Variables: -none-
*/
require_once('../common.php');
require_once('common.php');
authentication_require_role('global-admin');
@ -63,10 +63,10 @@ if ($_SERVER['REQUEST_METHOD'] == "GET")
if (!$fh = fopen ($backup, 'w'))
{
$tMessage = "<div class=\"error_msg\">Cannot open file ($backup)</div>";
include ("../templates/header.tpl");
include ("../templates/admin_menu.tpl");
include ("../templates/message.tpl");
include ("../templates/footer.tpl");
include ("templates/header.tpl");
include ("templates/menu.tpl");
include ("templates/message.tpl");
include ("templates/footer.tpl");
}
else
{

@ -26,7 +26,7 @@
* message
*/
require_once('../common.php');
require_once('common.php');
authentication_require_role('global-admin');
@ -73,19 +73,19 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
}
}
}
include ("../templates/header.tpl");
include ("../templates/admin_menu.tpl");
include ("templates/header.tpl");
include ("templates/menu.tpl");
echo '<p>'.$PALANG['pBroadcast_success'].'</p>';
include ("../templates/footer.tpl");
include ("templates/footer.tpl");
}
}
if ($_SERVER['REQUEST_METHOD'] == "GET" || $error == 1)
{
include ("../templates/header.tpl");
include ("../templates/admin_menu.tpl");
include ("../templates/broadcast-message.tpl");
include ("../templates/footer.tpl");
include ("templates/header.tpl");
include ("templates/menu.tpl");
include ("templates/broadcast-message.tpl");
include ("templates/footer.tpl");
}
/* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */

@ -31,7 +31,7 @@
* fDomains
*/
require_once('../common.php');
require_once('common.php');
authentication_require_role('global-admin');
@ -42,11 +42,6 @@ if ($_SERVER['REQUEST_METHOD'] == "GET")
{
$pAdminCreate_admin_username_text = $PALANG['pAdminCreate_admin_username_text'];
$tDomains = array ();
include ("../templates/header.tpl");
include ("../templates/admin_menu.tpl");
include ("../templates/admin_create-admin.tpl");
include ("../templates/footer.tpl");
}
if ($_SERVER['REQUEST_METHOD'] == "POST")
@ -63,11 +58,12 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
if (isset ($_POST['fUsername'])) $tUsername = escape_string ($_POST['fUsername']);
if (isset ($_POST['fDomains'])) $tDomains = $_POST['fDomains'];
}
include ("../templates/header.tpl");
include ("../templates/admin_menu.tpl");
include ("../templates/admin_create-admin.tpl");
include ("../templates/footer.tpl");
}
include ("templates/header.tpl");
include ("templates/menu.tpl");
include ("templates/admin_create-admin.tpl");
include ("templates/footer.tpl");
/* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */
?>

@ -153,13 +153,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
}
include ("$incpath/templates/header.tpl");
if (authentication_has_role('global-admin')) {
include ("$incpath/templates/admin_menu.tpl");
} else {
include ("$incpath/templates/menu.tpl");
}
include ("$incpath/templates/menu.tpl");
include ("$incpath/templates/create-alias.tpl");
include ("$incpath/templates/footer.tpl");
?>

@ -36,7 +36,7 @@
* fDefaultaliases
*/
require_once('../common.php');
require_once('common.php');
authentication_require_role('global-admin');
@ -47,11 +47,6 @@ if ($_SERVER['REQUEST_METHOD'] == "GET")
$tMailboxes = $CONF['mailboxes'];
$tMaxquota = $CONF['maxquota'];
$tTransport = $CONF['transport_default'];
include ("../templates/header.tpl");
include ("../templates/admin_menu.tpl");
include ("../templates/admin_create-domain.tpl");
include ("../templates/footer.tpl");
}
if ($_SERVER['REQUEST_METHOD'] == "POST")
@ -119,11 +114,12 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
$tMessage = $PALANG['pAdminCreate_domain_result_success'] . "<br />($fDomain)</br />";
}
}
}
include ("templates/header.tpl");
include ("templates/menu.tpl");
include ("templates/admin_create-domain.tpl");
include ("templates/footer.tpl");
include ("../templates/header.tpl");
include ("../templates/admin_menu.tpl");
include ("../templates/admin_create-domain.tpl");
include ("../templates/footer.tpl");
/* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */
}
?>

@ -339,13 +339,7 @@ TODO: this is the end of /create-mailbox.php code segment
}
include ("$incpath/templates/header.tpl");
if (authentication_has_role('global-admin')) {
include ("$incpath/templates/admin_menu.tpl");
} else {
include ("$incpath/templates/menu.tpl");
}
include ("$incpath/templates/menu.tpl");
include ("$incpath/templates/create-mailbox.tpl");
include ("$incpath/templates/footer.tpl");

@ -167,13 +167,7 @@ else
include ("$incpath/templates/header.tpl");
if (authentication_has_role('global-admin')) {
include ("$incpath/templates/admin_menu.tpl");
} else {
include ("$incpath/templates/menu.tpl");
}
include ("$incpath/templates/menu.tpl");
include ("$incpath/templates/message.tpl");
include ("$incpath/templates/footer.tpl");

@ -26,7 +26,7 @@
* fUsername
*/
require_once('../common.php');
require_once('common.php');
authentication_require_role('global-admin');
@ -49,20 +49,12 @@ if ($_SERVER['REQUEST_METHOD'] == "GET")
header ("Location: list-admin.php");
exit;
}
include ("../templates/header.tpl");
include ("../templates/admin_menu.tpl");
include ("../templates/message.tpl");
include ("../templates/footer.tpl");
}
if ($_SERVER['REQUEST_METHOD'] == "POST")
{
include ("../templates/header.tpl");
include ("../templates/admin_menu.tpl");
include ("../templates/message.tpl");
include ("../templates/footer.tpl");
}
include ("templates/header.tpl");
include ("templates/menu.tpl");
include ("templates/message.tpl");
include ("templates/footer.tpl");
/* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */

@ -25,7 +25,7 @@
* fDomain
*/
require_once('../common.php');
require_once('common.php');
authentication_require_role('global-admin');
@ -48,20 +48,12 @@ if ($_SERVER['REQUEST_METHOD'] == "GET")
header ("Location: list-domain.php");
exit;
}
include ("../templates/header.tpl");
include ("../templates/admin_menu.tpl");
include ("../templates/message.tpl");
include ("../templates/footer.tpl");
}
if ($_SERVER['REQUEST_METHOD'] == "POST")
{
include ("../templates/header.tpl");
include ("../templates/admin_menu.tpl");
include ("../templates/message.tpl");
include ("../templates/footer.tpl");
}
include ("templates/header.tpl");
include ("templates/menu.tpl");
include ("templates/message.tpl");
include ("templates/footer.tpl");
/* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */
?>

@ -97,13 +97,7 @@ if ($_SERVER['REQUEST_METHOD'] == "GET")
}
include ("$incpath/templates/header.tpl");
if (authentication_has_role('global-admin')) {
include ("$incpath/templates/admin_menu.tpl");
} else {
include ("$incpath/templates/menu.tpl");
}
include ("$incpath/templates/menu.tpl");
include ("$incpath/templates/message.tpl");
include ("$incpath/templates/footer.tpl");
/* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */

@ -33,7 +33,7 @@
* fActive
*/
require_once('../common.php');
require_once('common.php');
authentication_require_role('global-admin');
@ -146,7 +146,7 @@ if ($result['rows'] >= 1) {
}
}
include ("../templates/header.tpl");
include ("../templates/admin_menu.tpl");
include ("../templates/admin_edit-admin.tpl");
include ("../templates/footer.tpl");
include ("templates/header.tpl");
include ("templates/menu.tpl");
include ("templates/admin_edit-admin.tpl");
include ("templates/footer.tpl");

@ -129,13 +129,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
}
include ("$incpath/templates/header.tpl");
if (authentication_has_role('global-admin')) {
include ("$incpath/templates/admin_menu.tpl");
} else {
include ("$incpath/templates/menu.tpl");
}
include ("$incpath/templates/menu.tpl");
include ("$incpath/templates/edit-alias.tpl");
include ("$incpath/templates/footer.tpl");
?>

@ -33,7 +33,7 @@
* fActive
*/
require_once('../common.php');
require_once('common.php');
authentication_require_role('global-admin');
@ -52,11 +52,6 @@ if ($_SERVER['REQUEST_METHOD'] == "GET")
$tBackupmx = $domain_properties['backupmx'];
$tActive = $domain_properties['active'];
}
include ("../templates/header.tpl");
include ("../templates/admin_menu.tpl");
include ("../templates/admin_edit-domain.tpl");
include ("../templates/footer.tpl");
}
if ($_SERVER['REQUEST_METHOD'] == "POST")
@ -107,12 +102,12 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
{
$tMessage = $PALANG['pAdminEdit_domain_result_error'];
}
include ("../templates/header.tpl");
include ("../templates/admin_menu.tpl");
include ("../templates/admin_edit-domain.tpl");
include ("../templates/footer.tpl");
}
include ("templates/header.tpl");
include ("templates/menu.tpl");
include ("templates/admin_edit-domain.tpl");
include ("templates/footer.tpl");
/* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */
?>

@ -155,13 +155,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
}
include ("$incpath/templates/header.tpl");
if (authentication_has_role('global-admin')) {
include ("$incpath/templates/admin_menu.tpl");
} else {
include ("$incpath/templates/menu.tpl");
}
include ("$incpath/templates/menu.tpl");
include ("$incpath/templates/edit-mailbox.tpl");
include ("$incpath/templates/footer.tpl");
/* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */

@ -38,7 +38,7 @@
require_once('common.php');
if($CONF['vacation'] == 'NO') {
header("Location: " . $CONF['postfix_admin_url'] . "/main.php");
header("Location: " . $CONF['postfix_admin_url'] . "/main.php"); # TODO
exit(0);
}
@ -60,7 +60,7 @@ $vacation_domain = $CONF['vacation_domain'];
$vacation_goto = preg_replace('/@/', '#', $fUsername);
$vacation_goto = $vacation_goto . '@' . $vacation_domain;
$fCanceltarget = $CONF['postfix_admin_url'] . '/main.php';
$fCanceltarget = $CONF['postfix_admin_url'] . '/main.php'; # TODO
if ($_SERVER['REQUEST_METHOD'] == "GET")
{
@ -190,11 +190,7 @@ else {
}
include ("$incpath/templates/header.tpl");
if (authentication_has_role('global-admin')) {
include ("$incpath/templates/admin_menu.tpl");
} else {
include ("$incpath/templates/menu.tpl");
}
include ("$incpath/templates/menu.tpl");
include ("$incpath/templates/edit-vacation.tpl");
include ("$incpath/templates/footer.tpl");
/* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */

@ -21,7 +21,7 @@
* Form POST \ GET Variables: -none-
*/
require_once("../common.php");
require_once("common.php");
authentication_require_role('global-admin');
@ -32,19 +32,9 @@ if ((is_array ($list_admins) and sizeof ($list_admins) > 0)) {
}
}
if ($_SERVER['REQUEST_METHOD'] == "GET")
{
include ("../templates/header.tpl");
include ("../templates/admin_menu.tpl");
include ("../templates/admin_list-admin.tpl");
include ("../templates/footer.tpl");
}
include ("templates/header.tpl");
include ("templates/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");
}
?>

@ -25,7 +25,7 @@
* fUsername
*/
require_once('../common.php');
require_once('common.php');
authentication_require_role('global-admin');
@ -52,11 +52,6 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") {
$domain_properties[$i] = get_domain_properties ($list_domains[$i]);
}
}
include ("../templates/header.tpl");
include ("../templates/admin_menu.tpl");
include ("../templates/admin_list-domain.tpl");
include ("../templates/footer.tpl");
}
if ($_SERVER['REQUEST_METHOD'] == "POST")
@ -74,10 +69,10 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
$domain_properties[$i] = get_domain_properties ($list_domains[$i]);
}
}
include ("../templates/header.tpl");
include ("../templates/admin_menu.tpl");
include ("../templates/admin_list-domain.tpl");
include ("../templates/footer.tpl");
}
include ("templates/header.tpl");
include ("templates/menu.tpl");
include ("templates/admin_list-domain.tpl");
include ("templates/footer.tpl");
?>

@ -29,7 +29,7 @@
* fDisplay
*/
require_once('../common.php');
require_once('common.php');
authentication_require_role('global-admin');
@ -155,10 +155,10 @@ if (isset ($limit)) {
}
include ("../templates/header.tpl");
include ("../templates/admin_menu.tpl");
include ("../templates/overview.tpl");
include ("../templates/footer.tpl");
include ("templates/header.tpl");
include ("templates/menu.tpl");
include ("templates/overview.tpl");
include ("templates/footer.tpl");
/* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */
?>

@ -87,8 +87,8 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
if ($result['rows'] == 1)
{
$_SESSION['sessid']['roles'][] = 'global-admin';
header("Location: admin/list-admin.php");
exit(0);
# header("Location: admin/list-admin.php");
# exit(0);
}
header("Location: main.php");
exit(0);

@ -140,13 +140,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
}
include ("$incpath/templates/header.tpl");
if (authentication_has_role('global-admin')) {
include ("$incpath/templates/admin_menu.tpl");
} else {
include ("$incpath/templates/menu.tpl");
}
include ("$incpath/templates/menu.tpl");
include ("$incpath/templates/search.tpl");
include ("$incpath/templates/footer.tpl");

@ -1,27 +0,0 @@
<div id="menu">
<ul>
<li><a target="_top" href="list-admin.php"><?php print $PALANG['pAdminMenu_list_admin']; ?></a></li>
<li><a target="_top" href="list-domain.php"><?php print $PALANG['pAdminMenu_list_domain']; ?></a></li>
<li><a target="_top" href="list-virtual.php"><?php print $PALANG['pAdminMenu_list_virtual']; ?></a></li>
<li><a target="_top" href="viewlog.php"><?php print $PALANG['pAdminMenu_viewlog']; ?></a></li>
<?php if ('pgsql'!=$CONF['database_type'] and $CONF['backup'] == 'YES') { ?>
<li><a target="_top" href="backup.php"><?php print $PALANG['pAdminMenu_backup']; ?></a></li>
<?php } ?>
<li><a target="_top" href="create-domain.php"><?php print $PALANG['pAdminMenu_create_domain']; ?></a></li>
<li><a target="_top" href="create-admin.php"><?php print $PALANG['pAdminMenu_create_admin']; ?></a></li>
<?php $url = "create-alias.php"; if (isset ($_GET['domain'])) $url .= "?domain=" . $_GET['domain']; ?>
<li><a target="_top" href="<?php print $url; ?>"><?php print $PALANG['pAdminMenu_create_alias']; ?></a></li>
<li><a target="_top" href="broadcast-message.php"><?php print $PALANG['pAdminMenu_broadcast_message']; ?></a></li>
<li><a target="_top" href="../logout.php"><?php print $PALANG['pMenu_logout']; ?></a></li>
</ul>
</div>
<?php
if (file_exists (realpath ("../motd-admin.txt")))
{
print "<div id=\"motd\">\n";
include ("../motd-admin.txt");
print "</div>";
}
/* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */
?>

@ -75,13 +75,7 @@ if ($error != 1)
}
include ("$incpath/templates/header.tpl");
if (authentication_has_role('global-admin')) {
include ("$incpath/templates/admin_menu.tpl");
} else {
include ("$incpath/templates/menu.tpl");
}
include ("$incpath/templates/menu.tpl");
include ("$incpath/templates/viewlog.tpl");
include ("$incpath/templates/footer.tpl");

Loading…
Cancel
Save