0 && $level<4 && $tab_sms_activation[$level-1]==1) $ret=true; break; case 1 : if ($tab_sms_activation[3]==1) $ret=true; break; default : break; } } if ($ret) { $ret=false; $sms = sms_factory::make(); if (is_object($sms)) { $ret=$sms->send_sms($to_tel, $message); } } return $ret ; }