Code Duplication    Length = 6-7 lines in 2 locations

ecrire/auth/spip.php 1 location

@@ 396-401 (lines=6) @@
393
		// Cette variable de configuration peut etre posee par un plugin
394
		// par exemple acces_restreint ;
395
		// si .htaccess existe, outrepasser spip_meta
396
		if ((!isset($GLOBALS['meta']['creer_htpasswd']) or ($GLOBALS['meta']['creer_htpasswd'] != 'oui'))
397
			and !@file_exists($htaccess)
398
		) {
399
			spip_unlink($htpasswd);
400
			spip_unlink($htpasswd . "-admin");
401
402
			return;
403
		}
404

ecrire/inc/acces.php 1 location

@@ 297-303 (lines=7) @@
294
	// Cette variable de configuration peut etre posee par un plugin
295
	// par exemple acces_restreint ;
296
	// si .htaccess existe, outrepasser spip_meta
297
	if ((!isset($GLOBALS['meta']['creer_htpasswd'])
298
			or ($GLOBALS['meta']['creer_htpasswd'] != 'oui'))
299
		and !@file_exists($htaccess)
300
	) {
301
		spip_unlink($htpasswd);
302
		spip_unlink($htpasswd . '-admin');
303
		return;
304
	}
305
306
	# remarque : ici on laisse passer les "nouveau" de maniere a leur permettre