Subversion Repositories eFlore/Applications.del

Rev

Rev 1554 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1554 jpm 1
<?php
2
/**
3
 * Contient les fonctions PHP communes à PictoFlora et IdentiPlante.
4
 *
5
 */
6
 
7
function getUrlPageCourante() {
8
	$cheminUrl = $_SERVER['REQUEST_URI'];
9
	$positionIntero = strpos($_SERVER['REQUEST_URI'], '?');
10
	if ($positionIntero !== false) {
11
		$cheminUrl = substr($_SERVER['REQUEST_URI'], 0, $positionIntero);
12
	}
13
 
14
	// ATTENTION : gwt.codesvr est transformé par PHP en gwt_codesvr
15
	if (array_key_exists('gwt_codesvr', $_GET)) {
16
		$cheminUrl .= '?gwt.codesvr='.$_GET['gwt_codesvr'];
17
	}
18
	$url = 'http://'.$_SERVER['SERVER_NAME'].$cheminUrl;
19
	return $url;
20
}
21
?>