remove main

This commit is contained in:
mischa 2022-09-05 06:20:02 +00:00
parent e662375651
commit aa61fb993c
7 changed files with 3 additions and 116 deletions

View File

@ -46,7 +46,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
if (empty($message)) { if (empty($message)) {
session_start(); session_start();
$_SESSION['sessid']['username'] = $username; $_SESSION['sessid']['username'] = $username;
header("Location: main.php"); header("Location: list-domain.php");
exit; exit;
} }
} }

View File

@ -1,29 +0,0 @@
<?php
//
// OpenSMTPD Admin
// by Mischa Peters <mischa at high5 dot nl>
// Copyright (c) 2022 High5!
// License Info: LICENSE.TXT
//
// File: main.php
//
// Template File: main.tpl
//
// Template Variables:
//
// -none-
//
// Form POST / GET Variables:
//
// -none-
//
require_once './functions.inc.php';
include './languages/' . check_language() . '.lang';
$SESSID_USERNAME = check_session();
include './templates/header.tpl';
include './templates/menu.tpl';
include './templates/main.tpl';
include './templates/footer.tpl';
?>

View File

@ -1,32 +0,0 @@
<div id="main_menu">
<table>
<tr>
<td nowrap><a target="_top" href="list-domain.php"><?php echo $LANG['Menu_overview']; ?></a></td>
<td><?php echo $LANG['Main_overview']; ?></td>
</tr>
<tr>
<td nowrap><a target="_top" href="add-alias.php"><?php echo $LANG['Menu_create_alias']; ?></a></td>
<td><?php echo $LANG['Main_create_alias']; ?></td>
</tr>
<tr>
<td nowrap><a target="_top" href="add-mailbox.php"><?php echo $LANG['Menu_create_mailbox']; ?></a></td>
<td><?php echo $LANG['Main_create_mailbox']; ?></td>
</tr>
<tr>
<td nowrap><a target="_top" href="sendmail.php"><?php echo $LANG['Menu_sendmail']; ?></a></td>
<td><?php echo $LANG['Main_sendmail']; ?></td>
</tr>
<tr>
<td nowrap><a target="_top" href="password.php"><?php echo $LANG['Menu_password']; ?></a></td>
<td><?php echo $LANG['Main_password']; ?></td>
</tr>
<tr>
<td nowrap><a target="_top" href="viewlog.php"><?php echo $LANG['Menu_viewlog']; ?></a></td>
<td><?php echo $LANG['Main_viewlog']; ?></td>
</tr>
<tr>
<td nowrap><a target="_top" href="logout.php"><?php echo $LANG['Menu_logout']; ?></a></td>
<td><?php echo $LANG['Main_logout']; ?></td>
</tr>
</table>
</div>

View File

@ -1,22 +0,0 @@
<div id="main_menu">
<table>
<tr>
<td>&nbsp;</td>
<td><?php echo $_SESSION['userid']['username']; ?></td>
</tr>
<?php if (VACATION == 'YES') { ?>
<tr>
<td nowrap><a target="_top" href="vacation.php"><?php echo $LANG['UsersMenu_vacation']; ?></a></td>
<td><?php echo $LANG['UsersMain_vacation']; ?></td>
</tr>
<?php } ?>
<tr>
<td nowrap><a target="_top" href="password.php"><?php echo $LANG['UsersMenu_password']; ?></a></td>
<td><?php echo $LANG['UsersMain_password']; ?></td>
</tr>
<tr>
<td nowrap><a target="_top" href="logout.php"><?php echo $LANG['Menu_logout']; ?></a></td>
<td><?php echo $LANG['Main_logout']; ?></td>
</tr>
</table>
</div>

View File

@ -1,9 +1,9 @@
<div id="menu"> <div id="menu">
<ul> <ul>
<li><a target="_top" href="password.php"><?php echo $LANG['UsersMenu_password']; ?></a></li>
<?php if (VACATION == "YES") { ?> <?php if (VACATION == "YES") { ?>
<li><a target="_top" href="vacation.php"><?php echo $LANG['UsersMenu_vacation']; ?></a></li> <li><a target="_top" href="vacation.php"><?php echo $LANG['UsersMenu_vacation']; ?></a></li>
<?php } ?> <?php } ?>
<li><a target="_top" href="password.php"><?php echo $LANG['UsersMenu_password']; ?></a></li>
<li><a target="_top" href="logout.php"><?php echo $LANG['Menu_logout']; ?></a></li> <li><a target="_top" href="logout.php"><?php echo $LANG['Menu_logout']; ?></a></li>
</ul> </ul>
</div> </div>

View File

@ -45,7 +45,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
if (empty($message)) { if (empty($message)) {
session_start(); session_start();
$_SESSION['userid']['username'] = $username; $_SESSION['userid']['username'] = $username;
header("Location: main.php"); header("Location: password.php");
exit; exit;
} }
} }

View File

@ -1,30 +0,0 @@
<?php
//
// OpenSMTPD Admin
// by Mischa Peters <mischa at high5 dot nl>
// Copyright (c) 2022 High5!
// License Info: LICENSE.TXT
//
// File: main.php
//
// Template File: main.tpl
//
// Template Variables:
//
// -none-
//
// Form POST / GET Variables:
//
// -none-
//
require_once '../functions.inc.php';
include '../languages/' . check_language() . '.lang';
$SESSID_USERNAME = check_session('userid');
include '../templates/header.tpl';
include '../templates/users_menu.tpl';
include '../templates/users_main.tpl';
include '../templates/footer.tpl';
?>