From 1c13ff2b12092956689def0707df754f50090a17 Mon Sep 17 00:00:00 2001 From: mischa Date: Sun, 4 Sep 2022 10:17:13 +0000 Subject: [PATCH] main typo --- functions.inc.php | 4 ++-- list-domains.php | 8 ++++---- main.php | 13 ++++++------- overview.php | 13 +++++-------- templates/main.tpl | 2 +- 5 files changed, 18 insertions(+), 22 deletions(-) diff --git a/functions.inc.php b/functions.inc.php index 6c5ec0a..6254bf4 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -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; } diff --git a/list-domains.php b/list-domains.php index 04bfc12..7df5602 100644 --- a/list-domains.php +++ b/list-domains.php @@ -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'; ?> diff --git a/main.php b/main.php index e92daaf..a1952da 100644 --- a/main.php +++ b/main.php @@ -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'; ?> diff --git a/overview.php b/overview.php index a403183..5d47211 100644 --- a/overview.php +++ b/overview.php @@ -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'; ?> diff --git a/templates/main.tpl b/templates/main.tpl index be9515c..8ee12b0 100644 --- a/templates/main.tpl +++ b/templates/main.tpl @@ -29,4 +29,4 @@ -/div> +