Rev 1647 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php
/**
* Contient les fonctions PHP communes à PictoFlora et IdentiPlante.
*
*/
function getUrlPageCourante() {
$cheminUrl = $_SERVER['REQUEST_URI'];
$positionIntero = strpos($_SERVER['REQUEST_URI'], '?');
if ($positionIntero !== false) {
$cheminUrl = substr($_SERVER['REQUEST_URI'], 0, $positionIntero);
}
// ATTENTION : gwt.codesvr est transformé par PHP en gwt_codesvr
if (array_key_exists('gwt_codesvr', $_GET)) {
$cheminUrl .= '?gwt.codesvr='.$_GET['gwt_codesvr'];
}
$url = 'http://'.$_SERVER['SERVER_NAME'].$cheminUrl;
return $url;
}
?>