Code Duplication    Length = 10-12 lines in 2 locations

ecrire/inc/utils.php 2 locations

@@ 1911-1922 (lines=12) @@
1908
		}
1909
	}
1910
1911
	if (!$GLOBALS['REQUEST_URI']) {
1912
		if (isset($_SERVER['REQUEST_URI'])) {
1913
			$GLOBALS['REQUEST_URI'] = $_SERVER['REQUEST_URI'];
1914
		} else {
1915
			$GLOBALS['REQUEST_URI'] = (php_sapi_name() !== 'cli') ? $_SERVER['PHP_SELF'] : '';
1916
			if (!empty($_SERVER['QUERY_STRING'])
1917
				and !strpos($_SERVER['REQUEST_URI'], '?')
1918
			) {
1919
				$GLOBALS['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
1920
			}
1921
		}
1922
	}
1923
1924
	$url[$profondeur] = url_de_($http, $host, $GLOBALS['REQUEST_URI'], $profondeur);
1925
@@ 2521-2530 (lines=10) @@
2518
2519
2520
	// Compatibilite avec serveurs ne fournissant pas $REQUEST_URI
2521
	if (isset($_SERVER['REQUEST_URI'])) {
2522
		$GLOBALS['REQUEST_URI'] = $_SERVER['REQUEST_URI'];
2523
	} else {
2524
		$GLOBALS['REQUEST_URI'] = (php_sapi_name() !== 'cli') ? $_SERVER['PHP_SELF'] : '';
2525
		if (!empty($_SERVER['QUERY_STRING'])
2526
			and !strpos($_SERVER['REQUEST_URI'], '?')
2527
		) {
2528
			$GLOBALS['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
2529
		}
2530
	}
2531
2532
	// Duree de validite de l'alea pour les cookies et ce qui s'ensuit.
2533
	if (!defined('_RENOUVELLE_ALEA')) {