Fix sms_abo memberid
This commit is contained in:
parent
fac3136524
commit
7c0d9977f6
|
@ -20,17 +20,13 @@ sms_INIT_ACCOUNT "$PHONE"
|
||||||
case "$SERVICE" in
|
case "$SERVICE" in
|
||||||
ON)
|
ON)
|
||||||
log "Abonnement Kalkun"
|
log "Abonnement Kalkun"
|
||||||
if [[ "$MEMBER" != "" ]]; then
|
add_contact $PHONE $MEMBER && log "${c_green}Contact has been added to database$c_" || log "${c_red}Contact can't be added to database$c_";
|
||||||
add_contact $PHONE $MEMBERUID && log "${c_green}Contact has been added to database$c_" || log "${c_red}Contact can't be added to database$c_";
|
|
||||||
sms_SEND "$PHONE" "$MEMBER votre inscription annuaire est active"
|
sms_SEND "$PHONE" "$MEMBER votre inscription annuaire est active"
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
OFF)
|
OFF)
|
||||||
log "Retrait Kalkun"
|
log "Retrait Kalkun"
|
||||||
if [[ $MEMBER ]]; then
|
rm_contact $PHONE $MEMBER && log "${c_green}Contact has been deleted from database$c_" || log "${c_red}Contact can't be deleted database$c_";
|
||||||
rm_contact $PHONE $MEMBERUID && log "${c_green}Contact has been deleted from database$c_" || log "${c_red}Contact can't be deleted database$c_";
|
|
||||||
sms_SEND "$PHONE" "$MEMBER retrait annuaire prise en compte..."
|
sms_SEND "$PHONE" "$MEMBER retrait annuaire prise en compte..."
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
MARCHE)
|
MARCHE)
|
||||||
|
|
Loading…
Reference in New Issue