Code Duplication    Length = 10-12 lines in 2 locations

ecrire/inc/utils.php 2 locations

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