Client Portal can now be enabled or disabled in settings > Modules > Enable Client Portal, it is enabled by default

This commit is contained in:
johnnyq
2023-06-14 19:07:39 -04:00
parent 8085f7cd90
commit 25f85486d4
8 changed files with 42 additions and 12 deletions

View File

@@ -23,6 +23,12 @@ if (!isset($_SESSION)) {
session_start();
}
// Check to see if client portal is enabled
if($config_client_portal_enable == 0) {
echo "Client Portal is Disabled";
exit();
}
$ip = sanitizeInput(getIP());
$user_agent = sanitizeInput($_SERVER['HTTP_USER_AGENT']);

View File

@@ -14,6 +14,12 @@ if (empty($config_smtp_host)) {
exit();
}
// Check to see if client portal is enabled
if($config_client_portal_enable == 0) {
echo "Client Portal is Disabled";
exit();
}
if (!isset($_SESSION)) {
// HTTP Only cookies
ini_set("session.cookie_httponly", true);