$varname=$param[0]; global $$varname; if ($$varname==$param[1]) $ret=$param[2]; else $ret=$param[3]; return $ret; } function aff_if_logged($param) { if ($_SESSION['id_empr_session']) { $ret = $param[0]; }else { if($param[1]) $ret = $param[1]; else $ret =""; } return $ret; } function aff_if_logged_lang($param) { global $lang; if ($lang==$param[2]) { if ($_SESSION['id_empr_session']) { $ret = $param[0]; }else { if($param[1]) $ret = $param[1]; else $ret =""; } } else $ret=""; return $ret; } function aff_message_lang($param) { global $lang; if ($lang==$param[1]) return $param[0]; else return ""; } function aff_perio_a2z($param) { global $base_path; global $opac_perio_a2z_abc_search,$opac_perio_a2z_max_per_onglet; require_once($base_path."/classes/perio_a2z.class.php"); $a2z=new perio_a2z(0,$opac_perio_a2z_abc_search,$opac_perio_a2z_max_per_onglet); return $perio_a2z=$a2z->get_form(); } ?>