PHP
45
Global include file for every PHP page
Guest on 25th April 2022 01:24:54 AM
<?php
//
// ------------------------------------------------------------------------------------
// Copyright (c) HOMEMEETING INC. All rights reserved.
// ------------------------------------------------------------------------------------
// This source file is subject to HomeMeeting license,
// that is bundled with this package in the file "license.txt".
// ------------------------------------------------------------------------------------
//
//
// Global include file for every PHP page
//
header("Access-Control-Allow-Origin: *");
// declare $_mcuApiMMC to TRUE to enable code block of assignments in "include_mcu/mcu_api.php"
$_mcuApiMMC = true;
require_once("config.php");
require_once("log.php");
require_once("decl.php");
require_once("url.php");
require_once("error.php");
require_once("message.php");
require_once("role.php");
require_once("login.php");
require_once("datetime.php");
require_once("entry.php");
if ($_appConfig->productionMode) {
}
/*
* assign value to the variable $_loginCheckType, before including this file, to change Login Check Type
* default Login Check Type is 0 and function loginRedirect() will be called
* other values are negative (-1) for not checking at all, or positive (1) for calling loginVerify()
*/
if (empty($_loginCheckType)) {
loginRedirect();
} else {
if ($_loginCheckType > 0) {
loginVerify();
}
}
errorSetMsg();
loginGetUser();
?>