[PLUGINS] +set de base
[lhc/web/www.git] / www / plugins / abomailmans / abomailmans_fonctions.php
1 <?php
2 /*
3 * Abomailmans
4 * MaZiaR - NetAktiv
5 * tech@netaktiv.com
6 * Printemps 2007 - 2012
7 * $Id: abomailmans_fonctions.php 58718 2012-02-20 13:00:39Z root $
8 */
9
10 if (!defined("_ECRIRE_INC_VERSION")) return;
11
12 function nettoie_chemin($chemin){
13 $liste = explode ("/", $chemin);
14 $dernier=count($liste)-1;
15 $chemin = str_replace('.html','',$liste[$dernier]);
16 $liste2 = explode('&',$chemin);
17 $chemin = $liste2[0];
18 return $chemin;
19 }
20
21 function noextension($chemin){
22 return str_replace('.html','',$chemin);
23 }
24
25 function recup_param($chemin){
26 $a = explode('&', $chemin);
27 $i = 1;
28 while ($i < count($a)) {
29 $retour.= "&".htmlspecialchars(urldecode($a[$i]));
30 $i++;
31 }
32 return $retour;
33 }
34
35 function array_param($params){
36 parse_str($params,$output);
37 return $output;
38 }
39
40 function moins30($date) {
41 $moins30 = date('Y-m-d h:m:s', time()-24*3600*30);
42 return $moins30;
43 }
44
45 ?>