Code Duplication    Length = 13-13 lines in 2 locations

lib/includes/loader.soap.php 1 location

@@ 205-217 (lines=13) @@
202
		debug("ldSetCache::not implemented\n");
203
	}
204
205
	function ldMkDir($dir) {
206
	global $store;
207
208
		debug("ldMkDir($dir)","object");
209
		$dir=strtok($dir, "/");
210
		$curr=$store->get_config("files");
211
		while ($dir) {
212
			$curr.=$dir."/";
213
			debug("ldMkDir: $curr","all");
214
			@mkdir($curr, 0755);
215
			$dir=strtok("/");
216
		}
217
	}
218
219
	function ldGetCredentials() {
220
		return false;

lib/includes/loader.webdav.php 1 location

@@ 241-253 (lines=13) @@
238
		}
239
	}
240
241
	function ldMkDir($dir) {
242
	global $store;
243
244
		debug("ldMkDir($dir)","object");
245
		$dir=strtok($dir, "/");
246
		$curr=$store->get_config("files");
247
		while ($dir) {
248
			$curr.=$dir."/";
249
			debug("ldMkDir: $curr","all");
250
			@mkdir($curr, 0755);
251
			$dir=strtok("/");
252
		}
253
	}
254
255
	function ldGetUserCookie($cookiename="ARUserCookie") {
256