From 6134c536a8a5cd586ea8fefbf4b57cdd69526c8b Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 18 Feb 2005 15:11:11 +0000 Subject: [PATCH] Ajoute la fonction get_exdir --- htdocs/lib/functions.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/htdocs/lib/functions.inc.php b/htdocs/lib/functions.inc.php index 1a2fdbedea4..73c72d09875 100644 --- a/htdocs/lib/functions.inc.php +++ b/htdocs/lib/functions.inc.php @@ -1373,5 +1373,10 @@ function departement_rowid($db,$code, $pays_id) } } +function get_exdir($num) +{ + $num = substr("000".$num, -3); + return substr($num, 0,1).'/'.substr($num, 1,1).'/'.substr($num, 2,1).'/'; +} ?>