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