Code Duplication    Length = 10-12 lines in 2 locations

ecrire/inc/utils.php 2 locations

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