Code Duplication    Length = 10-12 lines in 2 locations

ecrire/inc/utils.php 2 locations

@@ 1980-1991 (lines=12) @@
1977
		}
1978
	}
1979
1980
	if (!$GLOBALS['REQUEST_URI']) {
1981
		if (isset($_SERVER['REQUEST_URI'])) {
1982
			$GLOBALS['REQUEST_URI'] = $_SERVER['REQUEST_URI'];
1983
		} else {
1984
			$GLOBALS['REQUEST_URI'] = (php_sapi_name() !== 'cli') ? $_SERVER['PHP_SELF'] : '';
1985
			if (!empty($_SERVER['QUERY_STRING'])
1986
				and !strpos($_SERVER['REQUEST_URI'], '?')
1987
			) {
1988
				$GLOBALS['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
1989
			}
1990
		}
1991
	}
1992
1993
	$url[$profondeur] = url_de_($http, $host, $GLOBALS['REQUEST_URI'], $profondeur);
1994
@@ 2550-2559 (lines=10) @@
2547
2548
2549
	// Compatibilite avec serveurs ne fournissant pas $REQUEST_URI
2550
	if (isset($_SERVER['REQUEST_URI'])) {
2551
		$GLOBALS['REQUEST_URI'] = $_SERVER['REQUEST_URI'];
2552
	} else {
2553
		$GLOBALS['REQUEST_URI'] = (php_sapi_name() !== 'cli') ? $_SERVER['PHP_SELF'] : '';
2554
		if (!empty($_SERVER['QUERY_STRING'])
2555
			and !strpos($_SERVER['REQUEST_URI'], '?')
2556
		) {
2557
			$GLOBALS['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
2558
		}
2559
	}
2560
2561
	// Duree de validite de l'alea pour les cookies et ce qui s'ensuit.
2562
	if (!defined('_RENOUVELLE_ALEA')) {