From 85112ad22e65c4ce83171749d67e789688d59493 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 30 Aug 2005 14:15:28 +0000 Subject: [PATCH] Ajout fonction img_allow --- htdocs/lib/functions.inc.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/htdocs/lib/functions.inc.php b/htdocs/lib/functions.inc.php index 2b0807e8575..9c95155bad4 100644 --- a/htdocs/lib/functions.inc.php +++ b/htdocs/lib/functions.inc.php @@ -792,6 +792,25 @@ function img_tick($alt = "default") return ''.$alt.''; } +/** + \brief Affiche le logo tick si allow + \param allow Authorise ou non + \return string Retourne tag img +*/ +function img_allow($allow) +{ + global $conf,$langs; + if ($alt=="default") $alt=$langs->trans("Active"); + + if ($allow == 1) + { + return ''.$alt.''; + } + else + { + return "-"; + } +} /** \brief Affiche formulaire de login