Code Duplication    Length = 7-7 lines in 2 locations

lib/includes/loader.webdav.auth.php 1 location

@@ 77-83 (lines=7) @@
74
		setcookie($cookiename,$cookie, 0, '/', false, $https, true);
75
	}
76
77
	function ldGenerateSessionKeyCheck() {
78
	global $ARCurrent;
79
		$session_key = $ARCurrent->session->get('ARSessionKey', true);
80
		$ARUserDir   = $ARCurrent->session->get('ARUserDir', true);
81
		$login       = $ARCurrent->session->get('ARLogin');
82
		return "{".md5($login.$ARUserDir.$session_key)."}";
83
	}
84
85
	function ldGetCredentials() {
86
		debug("ldGetCredentials()","object");

lib/includes/loader.web.auth.php 1 location

@@ 205-211 (lines=7) @@
202
203
	}
204
205
	function ldGenerateSessionKeyCheck() {
206
	global $ARCurrent;
207
		$session_key = $ARCurrent->session->get('ARSessionKey', true);
208
		$ARUserDir   = $ARCurrent->session->get('ARUserDir', true);
209
		$login       = $ARCurrent->session->get('ARLogin');
210
		return "{".md5($login.$ARUserDir.$session_key)."}";
211
	}
212
213
	function ldGetCredentials() {
214
		debug("ldGetCredentials()","object");