Code Duplication    Length = 10-12 lines in 2 locations

ecrire/inc/utils.php 2 locations

@@ 2011-2022 (lines=12) @@
2008
		}
2009
	}
2010
2011
	if (!$GLOBALS['REQUEST_URI']) {
2012
		if (isset($_SERVER['REQUEST_URI'])) {
2013
			$GLOBALS['REQUEST_URI'] = $_SERVER['REQUEST_URI'];
2014
		} else {
2015
			$GLOBALS['REQUEST_URI'] = (php_sapi_name() !== 'cli') ? $_SERVER['PHP_SELF'] : '';
2016
			if (!empty($_SERVER['QUERY_STRING'])
2017
				and !strpos($_SERVER['REQUEST_URI'], '?')
2018
			) {
2019
				$GLOBALS['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
2020
			}
2021
		}
2022
	}
2023
2024
	$url[$profondeur] = url_de_($http, $host, $GLOBALS['REQUEST_URI'], $profondeur);
2025
@@ 2581-2590 (lines=10) @@
2578
2579
2580
	// Compatibilite avec serveurs ne fournissant pas $REQUEST_URI
2581
	if (isset($_SERVER['REQUEST_URI'])) {
2582
		$GLOBALS['REQUEST_URI'] = $_SERVER['REQUEST_URI'];
2583
	} else {
2584
		$GLOBALS['REQUEST_URI'] = (php_sapi_name() !== 'cli') ? $_SERVER['PHP_SELF'] : '';
2585
		if (!empty($_SERVER['QUERY_STRING'])
2586
			and !strpos($_SERVER['REQUEST_URI'], '?')
2587
		) {
2588
			$GLOBALS['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
2589
		}
2590
	}
2591
2592
	// Duree de validite de l'alea pour les cookies et ce qui s'ensuit.
2593
	if (!defined('_RENOUVELLE_ALEA')) {