/trunk/war/identiplante.php |
---|
1,13 → 1,5 |
<?php |
function getUrlPageCourante() { |
$cheminUrl = $_SERVER['REQUEST_URI']; |
$positionIntero = strpos($_SERVER['REQUEST_URI'], '?'); |
if ($positionIntero !== false) { |
$cheminUrl = substr($_SERVER['REQUEST_URI'], 0, $positionIntero); |
} |
$url = 'http://'.$_SERVER['SERVER_NAME'].$cheminUrl; |
return $url; |
} |
include_once __DIR__.DIRECTORY_SEPARATOR.'commun.php'; |
?> |
<!DOCTYPE html> |
<html> |
/trunk/war/pictoflora.php |
---|
1,13 → 1,5 |
<?php |
function getUrlPageCourante() { |
$cheminUrl = $_SERVER['REQUEST_URI']; |
$positionIntero = strpos($_SERVER['REQUEST_URI'], '?'); |
if ($positionIntero !== false) { |
$cheminUrl = substr($_SERVER['REQUEST_URI'], 0, $positionIntero); |
} |
$url = 'http://'.$_SERVER['SERVER_NAME'].$cheminUrl; |
return $url; |
} |
include_once __DIR__.DIRECTORY_SEPARATOR.'commun.php'; |
?> |
<!DOCTYPE html> |
<html> |
/trunk/war/commun.php |
---|
New file |
0,0 → 1,21 |
<?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; |
} |
?> |