main typo

This commit is contained in:
mischa 2022-09-04 10:17:13 +00:00
parent bf2c7356d0
commit 1c13ff2b12
5 changed files with 18 additions and 22 deletions

View File

@ -37,7 +37,7 @@ if (DEBUG == 'true') {
//
function check_session() {
session_start();
if (!isset($_SESSION['sessid']['username'])) {
if (empty($_SESSION['sessid']['username'])) {
header("Location: login.php");
exit;
}
@ -47,7 +47,7 @@ function check_session() {
function check_user_session() {
session_start();
if (!isset($_SESSION['userid']['username'])) {
if (empty($_SESSION['userid']['username'])) {
header("Location: login.php");
exit;
}

View File

@ -5,9 +5,9 @@
// Copyright (c) 2022 High5!
// License Info: LICENSE.TXT
//
// File: overview.php
// File: list-domains.php
//
// Template File: overview.tpl
// Template File: list-domains.tpl
//
// Template variables:
//
@ -19,12 +19,12 @@
//
require_once './functions.inc.php';
include './languages/' . check_language() . '.lang';
include './templates/header.tpl';
include './templates/menu.tpl';
$SESSID_USERNAME = check_session();
$list_domains = list_domains($SESSID_USERNAME);
include './templates/header.tpl';
include './templates/menu.tpl';
include './templates/list-domains.tpl';
include './templates/footer.tpl';
?>

View File

@ -17,14 +17,13 @@
//
// -none-
//
require("./config.inc.php");
require("./functions.inc.php");
include("./languages/" . check_language() . ".lang");
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");
include './templates/header.tpl';
include './templates/menu.tpl';
include './templates/main.tpl';
include './templates/footer.tpl';
?>

View File

@ -11,26 +11,23 @@
//
// Template Variables:
//
// tAlias
// tDomain
// tMailbox
// tDisplay_back
// tDisplay_next
// alias
// domain
// mailbox
//
// Form POST \ GET Variables:
//
// domain
// fDomain
// limit
//
require_once './functions.inc.php';
include './languages/' . check_language() . '.lang';
include './templates/header.tpl';
include './templates/menu.tpl';
$SESSID_USERNAME = check_session();
$list_domains = list_domains($SESSID_USERNAME);
include './templates/header.tpl';
include './templates/menu.tpl';
include './templates/list-domains.tpl';
include './templates/footer.tpl';
?>

View File

@ -29,4 +29,4 @@
<td><?php echo $LANG['Main_logout']; ?></td>
</tr>
</table>
/div>
</div>