Code Duplication    Length = 8-8 lines in 3 locations

files/webdav.php 1 location

@@ 33-40 (lines=8) @@
30
 * @param array &$account
31
 * @return int session-id
32
 */
33
function check_access(&$account)
34
{
35
	if (isset($_GET['auth']))
36
	{
37
		list($_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW']) = explode(':',base64_decode($_GET['auth']),2);
38
	}
39
	return Api\Header\Authenticate::autocreate_session_callback($account);
40
}
41
42
$GLOBALS['egw_info'] = array(
43
	'flags' => array(

remote.php 1 location

@@ 33-40 (lines=8) @@
30
 * @param array &$account
31
 * @return int session-id
32
 */
33
function check_access(&$account)
34
{
35
	if (isset($_GET['auth']))
36
	{
37
		list($_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW']) = explode(':',base64_decode($_GET['auth']),2);
38
	}
39
	return Api\Header\Authenticate::autocreate_session_callback($account);
40
}
41
42
$GLOBALS['egw_info'] = array(
43
	'flags' => array(

webdav.php 1 location

@@ 36-43 (lines=8) @@
33
 * @param array &$account
34
 * @return int session-id
35
 */
36
function check_access(&$account)
37
{
38
	if (isset($_GET['auth']))
39
	{
40
		list($_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW']) = explode(':',base64_decode($_GET['auth']),2);
41
	}
42
	return Api\Header\Authenticate::autocreate_session_callback($account);
43
}
44
45
$GLOBALS['egw_info'] = array(
46
	'flags' => array(