#!/bin/bash ################################################################## # Author: Fred (support@qo-op.com) # Version: 0.1 # License: GPL (http://www.google.com/search?q=GPL) ################################################################## # Commande SMS: sms_ABO.sh # ABO "$SERVICE" "$YESNO" # Gère les Abonnements aux communications PUSH SMS ################################################################## # TODO: Create information Channels and moderate OPT IN/OUT source ./shell/init.sh source ./shell/functions.sh log "__SUB:sms_ABO.sh: START ($1=SERVICE, $2=YESNO)" SERVICE=$1 YESNO=$2 PARAMS=$3 case "$SERVICE" in MARCHE) log "Avertissement G1 marchés" # PARAMS could be "$distance" to Member GeoPoint... ;; GCHANGE) log "Création Alerte Annonce GCHANGE" # PARAMS could be "$distance#$keyword" to search gchange.fr near Member GeoPoint... ;; INFO) log "Abonnement Newsletter" # PARAMS could be "$distance#$keyword" to search gchange.fr near Member GeoPoint... ;; *) # AIDE : ABO GCHANGE 100#maison... log "Renvoyez AIDE..." sms_SEND "$PHONE" "Cette commande est inactive..." ;; esac