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() { function check_session() {
session_start(); session_start();
if (!isset($_SESSION['sessid']['username'])) { if (empty($_SESSION['sessid']['username'])) {
header("Location: login.php"); header("Location: login.php");
exit; exit;
} }
@ -47,7 +47,7 @@ function check_session() {
function check_user_session() { function check_user_session() {
session_start(); session_start();
if (!isset($_SESSION['userid']['username'])) { if (empty($_SESSION['userid']['username'])) {
header("Location: login.php"); header("Location: login.php");
exit; exit;
} }

View File

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

View File

@ -17,14 +17,13 @@
// //
// -none- // -none-
// //
require("./config.inc.php"); require_once './functions.inc.php';
require("./functions.inc.php"); include './languages/' . check_language() . '.lang';
include("./languages/" . check_language() . ".lang");
$SESSID_USERNAME = check_session(); $SESSID_USERNAME = check_session();
include("./templates/header.tpl"); include './templates/header.tpl';
include("./templates/menu.tpl"); include './templates/menu.tpl';
include("./templates/main.tpl"); include './templates/main.tpl';
include("./templates/footer.tpl"); include './templates/footer.tpl';
?> ?>

View File

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

View File

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