mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-19 16:02:15 +00:00
adapt infoterminal page so that login can be forced
This commit is contained in:
@@ -38,6 +38,14 @@ require_once('../../include/authentication.class.php');
|
||||
require_once('../../include/addon.class.php');
|
||||
require_once('../../include/'.EXT_FKT_PATH.'/serviceterminal.inc.php');
|
||||
|
||||
// 2025-02-05 ma0080 add query parameter to force login e.g. when used in iframe in CIS4.0 begin
|
||||
if( isset($_GET['forcelogin']) && !isset($_SERVER['PHP_AUTH_USER']) ) {
|
||||
header('WWW-Authenticate: Basic Realm="' . AUTH_NAME . '"');
|
||||
http_response_code(401);
|
||||
die();
|
||||
}
|
||||
// 2025-02-05 ma0080 add query parameter to force login e.g. when used in iframe in CIS4.0 end
|
||||
|
||||
if (!$db = new basis_db())
|
||||
$db=false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user