7 * Printemps 2007 - 2012
8 * $Id: abomailmans_fonctions.php 92967 2015-11-16 14:24:09Z teddy.spip@gmail.com $
11 if (!defined('_ECRIRE_INC_VERSION')) {
15 function nettoie_chemin($chemin)
17 $liste = explode('/', $chemin);
18 $dernier = count($liste) - 1;
19 $chemin = str_replace('.html', '', $liste[$dernier]);
20 $liste2 = explode('&', $chemin);
26 function noextension($chemin)
28 return str_replace('.html', '', $chemin);
31 function recup_param($chemin)
33 $a = explode('&', $chemin);
36 while ($i < count($a)) {
37 $retour .= '&'.htmlspecialchars(urldecode($a[$i]));
44 function array_param($params)
46 parse_str($params, $output);
51 function moins30($date)
53 $moins30 = date('Y-m-d h:m:s', time() - 24 * 3600 * 30);