main typo
This commit is contained in:
parent
bf2c7356d0
commit
1c13ff2b12
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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';
|
||||||
?>
|
?>
|
||||||
|
|
13
main.php
13
main.php
|
@ -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';
|
||||||
?>
|
?>
|
||||||
|
|
13
overview.php
13
overview.php
|
@ -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';
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -29,4 +29,4 @@
|
||||||
<td><?php echo $LANG['Main_logout']; ?></td>
|
<td><?php echo $LANG['Main_logout']; ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
/div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue