commit 1c13ff2b12092956689def0707df754f50090a17 from: mischa date: Sun Sep 04 10:17:13 2022 UTC main typo commit - bf2c7356d0a434a37989c3496e5c0b9d969316e2 commit + 1c13ff2b12092956689def0707df754f50090a17 blob - 6c5ec0a45f6797f3dccae5d19a442852b56ff1e6 blob + 6254bf4042eadd963878f716a34cb59dea2eab67 --- functions.inc.php +++ 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; } blob - 04bfc12e9fe74e52db8e56903980de0e45a15200 blob + 7df5602026b21c5491bb0f36c8ea88e15120b056 --- list-domains.php +++ 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'; ?> blob - e92daaf53493bf97e523c1803b3aff8af2a24eb9 blob + a1952da4221fee642c75c2e0056bdd465d58be1c --- main.php +++ 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'; ?> blob - a40318394ac407ade924f5a853f29beaffe5f577 blob + 5d47211c5ee7004ac4891439dc2a06bee03d056d --- overview.php +++ 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'; ?> blob - be9515ce6565997db08c4460e11acf6172b38c5f blob + 8ee12b0ca66c22f057802eff876c8c0f8a90abd2 --- templates/main.tpl +++ templates/main.tpl @@ -29,4 +29,4 @@ -/div> +