Completed
Push — master ( db26d9...e5ef44 )
by Auke
15s
created

lib/templates/pobject/system.login.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
	if ($this->CheckConfig()) {
3
		$hideSession = $AR->hideSessionIDfromURL;
4
		$AR->hideSessionIDfromURL = false;
5
		global $auth_config;
6
			$auth_class = "mod_auth_".$auth_config["method"];
7
			$mod_auth = new $auth_class($auth_config);
8
			$result = $mod_auth->checkLogin($username, $password, $path);
9
		$keyCheck = ldGenerateSessionKeyCheck();
10
		$arResult = $this->make_local_url().'?ARSessionKeyCheck='.RawURLEncode($keyCheck);
11
		$AR->hideSessionIDfromURL = $hideSession;
12
	} else {
13
		$arResult = false;
14
	}
15
?>
0 ignored issues
show
It is not recommended to use PHP's closing tag ?> in files other than templates.

Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.

A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.

Loading history...
16